Wrote basic makefile, wrote tests, and then fixed them

This commit is contained in:
Dan Hirsch 2012-04-29 01:45:52 +01:00
parent 7adae0da7c
commit faab7b7cf8
11 changed files with 137 additions and 11 deletions

14
common.mk Normal file
View file

@ -0,0 +1,14 @@
CFLAGS := $(shell pkg-config --cflags glib-2.0)
LDFLAGS := $(shell pkg-config --libs glib-2.0)
CC := gcc
CFLAGS += -DINCLUDE_TESTS
.SUFFIX:
%.a:
-rm -f $@
ar crv $@ $^
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<