Wrote basic makefile, wrote tests, and then fixed them
This commit is contained in:
parent
7adae0da7c
commit
faab7b7cf8
11 changed files with 137 additions and 11 deletions
14
common.mk
Normal file
14
common.mk
Normal 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 $@ $<
|
||||
Loading…
Add table
Add a link
Reference in a new issue