aboutsummaryrefslogtreecommitdiff
path: root/makefile.after
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-05 17:54:55 +0000
committermarha <marha@users.sourceforge.net>2009-11-05 17:54:55 +0000
commit17cd2280a71d7ae609961734b0aa750919147529 (patch)
treecffbeeecaafa816fefab27d75b85d88bcd255c93 /makefile.after
parentf5e3ac8167abd20db9f19c8f8794d9c68596e284 (diff)
downloadvcxsrv-17cd2280a71d7ae609961734b0aa750919147529.tar.gz
vcxsrv-17cd2280a71d7ae609961734b0aa750919147529.tar.bz2
vcxsrv-17cd2280a71d7ae609961734b0aa750919147529.zip
Move WinMain to seperate library.
Diffstat (limited to 'makefile.after')
-rw-r--r--makefile.after8
1 files changed, 6 insertions, 2 deletions
diff --git a/makefile.after b/makefile.after
index 600343e3e..4ceba2047 100644
--- a/makefile.after
+++ b/makefile.after
@@ -25,6 +25,10 @@ endif # End static library stuff
ifeq (1,$(call OR, $(call NE,$(WINAPP)_,_) $(call NE,$(TTYAPP)_,_)))
ifdef WINAPP
+
+load_makefile $(MHMAKECONF)\libwinmain\makefile MAKESERVER=$(MAKESERVER) DEBUG=$(DEBUG)
+EXTRALIB := $(MHMAKECONF)\libwinmain\$(OBJDIR)\libwinmain.lib
+
EXE := $(WINAPP:%=$(OBJDIR)\%.exe)
LINKFLAGS += /SUBSYSTEM:WINDOWS
else
@@ -41,8 +45,8 @@ all: $(EXE)
$(MANIFESTFILE):
$(MHMAKECONF)/tools/genruntimemanifest $@ $(DEBUG)
-$(EXE) : $(OBJS) $(INCLUDELIBFILES) $(RESOBJS) $(MANIFESTFILE)
- $(LINK) $(LINKFLAGS) /MANIFEST:NO /OUT:$(relpath $@) $(INCLUDELIBFILES) $(SYSTEMLIBS) $(LINKLIBS) $(OBJS) $(RESOBJS)
+$(EXE) : $(OBJS) $(INCLUDELIBFILES) $(RESOBJS) $(MANIFESTFILE) $(EXTRALIB)
+ $(LINK) $(LINKFLAGS) /MANIFEST:NO /OUT:$(relpath $@) $(INCLUDELIBFILES) $(SYSTEMLIBS) $(LINKLIBS) $(EXTRALIB) $(OBJS) $(RESOBJS)
mt -nologo -manifest $(MANIFESTFILE) -outputresource:$(relpath $@);\#1
endif # End WINAPP or TTYAPP stuff