Makefile
changeset 147 f9015072361f
parent 145 63a5269fb113
child 155 a54dcc86addb
--- a/Makefile
+++ b/Makefile
@@ -69,6 +69,7 @@
 TARGET += getbits
 TARGET += fun
 TARGET += sts
+TARGET += berkdb
 
 # needs ncursesw
 TARGET  += ncurses
@@ -249,7 +250,7 @@
 
 prog_limit: prog_limit.o set_limit.o
 	@echo Linking $< ...
-	@$(CC) $(LDFLAGS) -o $@ prog_limit.o set_limit.o
+	@$(CC) $(LDFLAGS) -o $@ $?
 
 database: database.c
 	@echo Compiling $< ...
@@ -361,6 +362,10 @@
 	@echo Linking $<...
 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
 
+berkdb: berkdb.o
+	@echo Linking $<...
+	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ -ldb
+
 .PHONY: beauty clean uninstall
 
 clean: