Makefile

changeset 1
34a5e235d16e
parent 0
518bfd1cc1e8
child 3
510d6b198dde
--- a/Makefile	Mon May 23 16:42:44 2011 +0200
+++ b/Makefile	Mon May 23 16:43:13 2011 +0200
@@ -1,4 +1,8 @@
 CC = gcc
+OBJ = cline.o v2.o
 
-cline: cline.c
-	${CC} -o cline -std=c99 cline.c
+cline: ${OBJ}
+	${CC} -o cline ${OBJ}
+
+%.o: %.c
+	${CC} -c -std=c99 $<

mercurial