shithub: rgbds

Download patch

ref: 1a98f20535a5007c3266d2731edd95b14aa3facd
parent: 322a0b05d8dcc850d194eb7e69b11194a000ba74
author: Vegard Nossum <[email protected]>
date: Thu Jun 11 03:10:44 EDT 2009

rgbfix: improve Makefile

Make object filename explicit and add "clean" target.

Signed-off-by: Vegard Nossum <[email protected]>

--- a/src/rgbfix/Makefile
+++ b/src/rgbfix/Makefile
@@ -1,8 +1,13 @@
+obj := \
+	main.o
+
 all: rgbfix
 
-.c.o:
-	gcc -Wall -I. -I.. -Iinclude -g -c -o $@ $<
+clean:
+	rm -rf rgbfix $(obj)
 
-rgbfix: $(patsubst %.c,%.o,$(wildcard *.c))
+rgbfix: $(obj)
 	gcc -Wall -o $@ $^
 
+.c.o:
+	gcc -Wall -I. -I.. -Iinclude -g -c -o $@ $<