mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 17:01:18 +00:00
Add DLL flags
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9323 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4d09f9ecc4
commit
35283f4055
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2001-03-10 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* objc.make (WITH_DLL): Add DLL defs when WITH_DLL=yes
|
||||
|
||||
2001-03-08 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* clean_cpu.sh: Make all alpha variants the same.
|
||||
|
|
18
objc.make
18
objc.make
|
@ -69,6 +69,24 @@ ALL_OBJC_LIBS := \
|
|||
debug=$(debug) profile=$(profile) shared=$(shared) libext=$(LIBEXT) \
|
||||
shared_libext=$(SHARED_LIBEXT))
|
||||
|
||||
ifeq ($(WITH_DLL),yes)
|
||||
TTMP_LIBS := $(ALL_TOOL_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
|
||||
|
||||
#
|
||||
# Internal targets
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue