[or-cvs] r14730: Improvements on the Makefile (torbrowser/trunk/src/RelativeLink)

ioerror at seul.org ioerror at seul.org
Sun May 25 10:36:19 UTC 2008


Author: ioerror
Date: 2008-05-25 06:36:19 -0400 (Sun, 25 May 2008)
New Revision: 14730

Modified:
   torbrowser/trunk/src/RelativeLink/Makefile
Log:
Improvements on the Makefile


Modified: torbrowser/trunk/src/RelativeLink/Makefile
===================================================================
--- torbrowser/trunk/src/RelativeLink/Makefile	2008-05-25 08:47:57 UTC (rev 14729)
+++ torbrowser/trunk/src/RelativeLink/Makefile	2008-05-25 10:36:19 UTC (rev 14730)
@@ -1,19 +1,23 @@
 # A simple Makefile to automate building the RelativeLink program
-APPNAME=StartTorBrowserBundle
+APPNAME = StartTorBrowserBundle
+OBJECTS = RelativeLink-res.rc.o RelativeLink.o
+CFLAGS = -Wall -mwindows
 
 all: RelativeLink
 
-RelativeLinkIcon:
-	windres.exe RelativeLink-res.rc RelativeLink-res.rc.o
+RelativeLink: $(OBJECTS) 
+	$(CC) $(OBJECTS) $(CFLAGS) -o $(APPNAME)
 
-RelativeLink: RelativeLinkIcon
-	gcc -Wall -mwindows -o $(APPNAME) RelativeLink.c RelativeLink-res.rc.o
+RelativeLink.o: RelativeLink.c
 
+RelativeLink-res.rc.o: RelativeLink-res.rc
+
 clean:
 	rm -rf *.exe
 	rm -rf *.o
 
 .rc.o:
 		windres.exe $^ -o $@
+
 %.o : %.rc
 		windres.exe $^ -o $@



More information about the tor-commits mailing list