Added a gnumake 'target-specfic variable' to add the C preprocessor define necessary for clean DLL linkage.
This commit is contained in:
parent
76749a382d
commit
f5c78bd4fd
|
@ -30,7 +30,7 @@
|
||||||
#
|
#
|
||||||
# Author: Oliver Schmidt <ol.sc@web.de>
|
# Author: Oliver Schmidt <ol.sc@web.de>
|
||||||
#
|
#
|
||||||
# $Id: Makefile.win32,v 1.18 2010/01/28 12:46:16 oliverschmidt Exp $
|
# $Id: Makefile.win32,v 1.19 2010/01/30 11:52:01 oliverschmidt Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
||||||
|
@ -55,6 +55,10 @@ ifdef PLATFORM_BUILD
|
||||||
-u _cfs_open -u _cfs_opendir -u _uiplib_ipaddrconv
|
-u _cfs_open -u _cfs_opendir -u _uiplib_ipaddrconv
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
### Set a target-specific variable value
|
||||||
|
${foreach PRG,$(PRGS),${addprefix $(OBJECTDIR)/, \
|
||||||
|
$(${call appname,$(PRG)_src:.c=.o})}}: CFLAGS += -D_USRDLL
|
||||||
|
|
||||||
### Generate the module-link prerequisites
|
### Generate the module-link prerequisites
|
||||||
define prg_template
|
define prg_template
|
||||||
$(1).prg: $${addprefix $$(OBJECTDIR)/,$$($(2)_src:.c=.o)}
|
$(1).prg: $${addprefix $$(OBJECTDIR)/,$$($(2)_src:.c=.o)}
|
||||||
|
|
Loading…
Reference in a new issue