Commits

Matt Bone committed 08980ff

more fun with make

Comments (0)

Files changed (1)

 CFLAGS=-g -Wall -O3 -std=gnu11
+#CFLAGS=`pkg-config --cflags apophenia glib-2.0` -g -wall -std=gnu11 -O3
 #LDLIBS=`pkg-config --libs apophenia glib-2.0`
 
-regex_driver: regex.o
+PROGRAM=regex_driver
+OBJECTS=regex.o
+
+$(PROGRAM): $(OBJECTS)
+
+#regex_driver: $(OBJECTS)
 
 clean:
-	rm *.o
-	rm regex_driver
+	rm -f $(OBJECTS)
+	rm -f $(PROGRAM)