[ros-diffs] [peterw] 29835: - Make the makefile work again, and add 'clean' to it.

peterw at svn.reactos.org peterw at svn.reactos.org
Tue Oct 23 23:06:48 CEST 2007


Author: peterw
Date: Wed Oct 24 01:06:47 2007
New Revision: 29835

URL: http://svn.reactos.org/svn/reactos?rev=29835&view=rev
Log:
- Make the makefile work again, and add 'clean' to it.

Modified:
    trunk/tools/RosBE-Windows/Tools/makefile

Modified: trunk/tools/RosBE-Windows/Tools/makefile
URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/makefile?rev=29835&r1=29834&r2=29835&view=diff
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/makefile (original)
+++ trunk/tools/RosBE-Windows/Tools/makefile Wed Oct 24 01:06:47 2007
@@ -1,28 +1,28 @@
 # makefile - Simple makefile to build the various RosBE tools.
 
-CC = gcc
-CFLAGS := $(HOST_CFLAGS) -Wall -O2 -o
+.PHONY: all clean
+
+CC := gcc
+CFLAGS := ${HOST_CFLAGS} -Wall -O2 -o
 LFLAGS := -s
 WINVER := 0x502
 
+all: buildtime cpucount echoh flash getdate
+
 buildtime:  buildtime.c
-	$(CC) $(CFLAGS) buildtime buildtime.c
+	${CC} ${CFLAGS} buildtime buildtime.c
 
 cpucount:  cpucount.c
-	$(CC) $(CFLAGS) cpucount cpucount.c
+	${CC} ${CFLAGS} cpucount cpucount.c
 
 echoh:  echoh.c
-	$(CC) $(CFLAGS) echoh echoh.c
+	${CC} ${CFLAGS} echoh echoh.c
 
 flash:  flash.c
-	$(CC) -DWINVER=$(WINVER) -D_WIN32_WINNT=0x$(WINVER) $(CFLAGS) flash flash.c
+	${CC} -DWINVER=${WINVER} -D_WIN32_WINNT=${WINVER} ${CFLAGS} flash flash.c
 
 getdate:  getdate.c
-	$(CC) $(CFLAGS) getdate getdate.c
+	${CC} ${CFLAGS} getdate getdate.c
 
-all:  buildtime.c cpucount.c echoh.c flash.c getdate.c
-	$(CC) $(CFLAGS) buildtime buildtime.c
-	$(CC) $(CFLAGS) cpucount cpucount.c
-	$(CC) $(CFLAGS) echoh echoh.c
-	$(CC) -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) $(CFLAGS) flash flash.c
-	$(CC) $(CFLAGS) getdate getdate.c
+clean:  getdate.c
+	del buildtime.exe cpucount.exe echoh.exe flash.exe getdate.exe




More information about the Ros-diffs mailing list