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
|
|
@ -11,4 +11,7 @@ CFLAGS += -DINCLUDE_TESTS
|
||||||
ar crv $@ $^
|
ar crv $@ $^
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f $(OUTPUTS)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
include ../common.mk
|
include ../common.mk
|
||||||
|
|
||||||
|
OUTPUTS := \
|
||||||
|
allocator.o
|
||||||
|
|
||||||
all: allocator.o
|
all: allocator.o
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue