From f5c78bd4fd799c87ba4adfc4475d6b37311a8665 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sat, 30 Jan 2010 11:52:01 +0000 Subject: [PATCH] Added a gnumake 'target-specfic variable' to add the C preprocessor define necessary for clean DLL linkage. --- platform/win32/Makefile.win32 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/win32/Makefile.win32 b/platform/win32/Makefile.win32 index 616a8c35d..291858dc6 100644 --- a/platform/win32/Makefile.win32 +++ b/platform/win32/Makefile.win32 @@ -30,7 +30,7 @@ # # Author: Oliver Schmidt # -# $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 @@ -55,6 +55,10 @@ ifdef PLATFORM_BUILD -u _cfs_open -u _cfs_opendir -u _uiplib_ipaddrconv 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 define prg_template $(1).prg: $${addprefix $$(OBJECTDIR)/,$$($(2)_src:.c=.o)}