[Ttssh2-commit] [3622] Makefile の書き方を変更

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 9月 19日 (土) 23:21:06 JST


Revision: 3622
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3622
Author:   maya
Date:     2009-09-19 23:21:06 +0900 (Sat, 19 Sep 2009)

Log Message:
-----------
Makefile の書き方を変更
  動作は変更していません

Modified Paths:
--------------
    trunk/cygterm/Makefile


-------------- next part --------------
Modified: trunk/cygterm/Makefile
===================================================================
--- trunk/cygterm/Makefile	2009-09-16 14:01:44 UTC (rev 3621)
+++ trunk/cygterm/Makefile	2009-09-19 14:21:06 UTC (rev 3622)
@@ -5,9 +5,10 @@
 CC = gcc
 CFLAGS = -O2 -fno-exceptions
 #CFLAGS = -g -fno-exceptions
-LIBS = -mwindows
+LDFLAGS = -mwindows
 
 LAUNCH = cyglaunch.exe
+LAUNCH_SRC = cyglaunch.c
 EXE = cygterm.exe
 SRC = $(EXE:.exe=.cc)
 CFG = $(EXE:.exe=.cfg)
@@ -19,20 +20,20 @@
 
 $(EXE) : $(SRC) $(RES)
   ifeq (0, $(shell nm /usr/lib/crt0.o | grep -c WinMainCRTStartup))
-	$(CC) $(CFLAGS) -DNO_WIN_MAIN -o $(EXE) $(SRC) $(RES) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -DNO_WIN_MAIN -o $(EXE) $(SRC) $(RES)
   else
-	$(CC) $(CFLAGS) -o $(EXE) $(SRC) $(RES) $(LIBS)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(SRC) $(RES)
   endif
 	strip $(EXE)
 
-$(LAUNCH) : cyglaunch.c $(RES)
-	cc -mno-cygwin -mwindows -o cyglaunch cyglaunch.c $(RES)
+$(LAUNCH) : $(LAUNCH_SRC) $(RES)
+	$(CC) $(CFLAGS) $(LDFLAGS) -mno-cygwin -o $(LAUNCH) $(LAUNCH_SRC) $(RES)
 	strip $(LAUNCH)
 
 $(RC):
 	echo 'icon ICON $(ICO)' > $(RC)
 
-$(RES):	$(ICO) $(RC)
+$(RES): $(ICO) $(RC)
 	windres -O coff -o $(RES) $(RC)
 
 clean :
@@ -49,4 +50,4 @@
 	rm -f $(BINDIR)/$(CFG)
 
 src :
-	tar cf - $(SRC) $(ICO) $(CFG) cyglaunch.c README README-j Makefile | gzip > cygterm+.tar.gz
+	tar cf - $(SRC) $(ICO) $(CFG) $(LAUNCH_SRC) README README-j Makefile | gzip > cygterm+.tar.gz



Ttssh2-commit メーリングリストの案内
Back to archive index