aboutsummaryrefslogtreecommitdiff
path: root/makefile.after
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-08-07 12:33:59 +0000
committermarha <marha@users.sourceforge.net>2009-08-07 12:33:59 +0000
commite7e9a66629ada359ad6a35cdb12e0e35b49e889c (patch)
treea93f38125aee1970e8a41bd23f4abc9162deeaee /makefile.after
parent527d85e0327133858ddb86169f2840f305c192b3 (diff)
downloadvcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.gz
vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.tar.bz2
vcxsrv-e7e9a66629ada359ad6a35cdb12e0e35b49e889c.zip
Added plink tool (version without console, except if output is generated)
Added possibility to build console application or windows application in makefile.after
Diffstat (limited to 'makefile.after')
-rw-r--r--makefile.after14
1 files changed, 10 insertions, 4 deletions
diff --git a/makefile.after b/makefile.after
index 18b1d6f25..5324decca 100644
--- a/makefile.after
+++ b/makefile.after
@@ -21,12 +21,18 @@ $(LIBRARY_DIR) : $(OBJS)
endif # End static library stuff
-### WINAPP stuff ###
+### WINAPP/TTYAPP stuff ###
+ifeq (1,$(call OR, $(call NE,$(WINAPP)_,_) $(call NE,$(TTYAPP)_,_)))
+
ifdef WINAPP
EXE := $(WINAPP:%=$(OBJDIR)\%.exe)
-PDB := $(EXE:%.exe=%.pdb)
+LINKFLAGS += /SUBSYSTEM:WINDOWS
+else
+EXE := $(TTYAPP:%=$(OBJDIR)\%.exe)
+LINKFLAGS += /SUBSYSTEM:CONSOLE
+endif
-#LINKFLAGS += /SUBSYSTEM:WINDOWS
+PDB := $(EXE:%.exe=%.pdb)
MANIFESTFILE:=$(OBJDIR)\runtime.manifest
@@ -39,7 +45,7 @@ $(EXE) : $(OBJS) $(INCLUDELIBFILES) $(RESOBJS) $(MANIFESTFILE)
$(LINK) $(LINKFLAGS) /MANIFEST:NO /OUT:$(relpath $@) $(INCLUDELIBFILES) $(SYSTEMLIBS) $(LINKLIBS) $(OBJS) $(RESOBJS)
mt -nologo -manifest $(MANIFESTFILE) -outputresource:$(relpath $@);\#1
-endif # End WINAPP stuff
+endif # End WINAPP or TTYAPP stuff
ifeq ($(DEBUG),1)
COMMONCFLAGS += $(DEFINES:%=-D%) $(INCLUDES:%=-I"%") -Fo"$(relpath $@)" -Fd"$(PDB)" "$<"