That should fix the build on Ubuntu; also, it should add a clean target
This commit is contained in:
parent
faab7b7cf8
commit
6dd36f9acd
3 changed files with 12 additions and 2 deletions
|
|
@ -12,3 +12,6 @@ CFLAGS += -DINCLUDE_TESTS
|
|||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
clean:
|
||||
-rm -f $(OUTPUTS)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
include ../common.mk
|
||||
|
||||
OUTPUTS := \
|
||||
allocator.o
|
||||
|
||||
all: allocator.o
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,13 @@
|
|||
-include ../common.mk
|
||||
|
||||
OUTPUTS := bitreader.o \
|
||||
libhammer.a \
|
||||
test_suite
|
||||
|
||||
all: libhammer.a test_suite
|
||||
|
||||
test_suite: test_suite.o libhammer.a
|
||||
$(CC) $(LDFLAGS) -o $@ $^
|
||||
$(CC) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
libhammer.a: bitreader.o
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue