summaryrefslogtreecommitdiff
path: root/src/03/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/03/Makefile')
-rw-r--r--src/03/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/03/Makefile b/src/03/Makefile
index c3aae26..5c796a1 100644
--- a/src/03/Makefile
+++ b/src/03/Makefile
@@ -2,18 +2,18 @@
SHELL=/bin/sh
CC=clang
-TEST_LIBS = -lcgreen
+TEST_LIBS = -lcgreen -lm
BUILDDIR := build
-OBJS := $(addprefix $(BUILDDIR)/,avl_tree.o rb_tree.o sort.o graph.o matrix.o meldable_heap.o)
-TEST_OBJS := $(addprefix $(BUILDDIR)/,avl_tree_test.o rb_tree_test.o sort_test.o graph_test.o matrix_test.o meldable_heap_test.o)
+OBJS := $(addprefix $(BUILDDIR)/,avl_tree.o rb_tree.o sort.o graph.o matrix.o meldable_heap.o btree.o)
+TEST_OBJS := $(addprefix $(BUILDDIR)/,avl_tree_test.o rb_tree_test.o sort_test.o graph_test.o matrix_test.o meldable_heap_test.o btree_test.o)
$(BUILDDIR)/%.o : %.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
.PHONY: all
all: $(OBJS) $(BUILDDIR)/main.o
- $(CC) $(OBJS) $(BUILDDIR)/main.o -o $(BUILDDIR)/program
+ $(CC) $(OBJS) $(BUILDDIR)/main.o $(TEST_LIBS) -o $(BUILDDIR)/program
.PHONY: test
test: $(OBJS) $(TEST_OBJS)