Skip to content
Snippets Groups Projects
Commit 6dd36f9a authored by Dan Hirsch's avatar Dan Hirsch
Browse files

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

parent faab7b7c
No related branches found
No related tags found
No related merge requests found
...@@ -11,4 +11,7 @@ CFLAGS += -DINCLUDE_TESTS ...@@ -11,4 +11,7 @@ CFLAGS += -DINCLUDE_TESTS
ar crv $@ $^ ar crv $@ $^
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) -c -o $@ $< $(CC) $(CFLAGS) -c -o $@ $<
\ No newline at end of file
clean:
-rm -f $(OUTPUTS)
include ../common.mk include ../common.mk
OUTPUTS := \
allocator.o
all: allocator.o all: allocator.o
-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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment