mirror of
https://github.com/gnustep/tools-make.git
synced 2025-06-01 09:42:00 +00:00
Added DLL code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13264 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
831f317486
commit
01e6caf6c9
1 changed files with 19 additions and 0 deletions
|
@ -57,6 +57,25 @@ ALL_GUI_LIBS = \
|
|||
debug=$(debug) profile=$(profile) shared=$(shared) \
|
||||
libext=$(LIBEXT) shared_libext=$(SHARED_LIBEXT))
|
||||
|
||||
ifeq ($(WITH_DLL),yes)
|
||||
TTMP_LIBS := $(ALL_GUI_LIBS)
|
||||
TTMP_LIBS := $(filter -l%, $(TTMP_LIBS))
|
||||
# filter all non-static libs (static libs are those ending in _ds, _s,
|
||||
_ps..)
|
||||
TTMP_LIBS := $(filter-out -l%_ds, $(TTMP_LIBS))
|
||||
TTMP_LIBS := $(filter-out -l%_s, $(TTMP_LIBS))
|
||||
TTMP_LIBS := $(filter-out -l%_dps,$(TTMP_LIBS))
|
||||
TTMP_LIBS := $(filter-out -l%_ps, $(TTMP_LIBS))
|
||||
# strip away -l, _p and _d ..
|
||||
TTMP_LIBS := $(TTMP_LIBS:-l%=%)
|
||||
TTMP_LIBS := $(TTMP_LIBS:%_d=%)
|
||||
TTMP_LIBS := $(TTMP_LIBS:%_p=%)
|
||||
TTMP_LIBS := $(TTMP_LIBS:%_dp=%)
|
||||
TTMP_LIBS := $(shell echo $(TTMP_LIBS)|tr '-' '_')
|
||||
TTMP_LIBS := $(TTMP_LIBS:%=-Dlib%_ISDLL=1)
|
||||
ALL_CPPFLAGS += $(TTMP_LIBS)
|
||||
endif # WITH_DLL
|
||||
|
||||
APP_DIR_NAME = $(GNUSTEP_INSTANCE:=.$(APP_EXTENSION))
|
||||
|
||||
GNUSTEP_SHARED_INSTANCE_BUNDLE_RESOURCE_PATH = $(APP_DIR_NAME)/Resources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue