That should fix the build on Ubuntu; also, it should add a clean target

This commit is contained in:
Dan Hirsch 2012-04-30 02:20:49 +01:00
parent faab7b7cf8
commit 6dd36f9acd
3 changed files with 12 additions and 2 deletions

View file

@ -12,3 +12,6 @@ CFLAGS += -DINCLUDE_TESTS
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
clean:
-rm -f $(OUTPUTS)

View file

@ -1,4 +1,7 @@
include ../common.mk include ../common.mk
OUTPUTS := \
allocator.o
all: allocator.o all: allocator.o

View file

@ -1,9 +1,13 @@
-include ../common.mk -include ../common.mk
OUTPUTS := bitreader.o \
libhammer.a \
test_suite
all: libhammer.a test_suite all: libhammer.a test_suite
test_suite: test_suite.o libhammer.a test_suite: test_suite.o libhammer.a
$(CC) $(LDFLAGS) -o $@ $^ $(CC) -o $@ $^ $(LDFLAGS)
libhammer.a: bitreader.o libhammer.a: bitreader.o