Makefile
changeset 3 820ed7fb9314
parent 2 97beb75e5ac7
child 8 96d16dfe787a
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,12 @@
 	concatenation \
 	alpha_beta \
 	life \
-	bad_alloc
+	bad_alloc \
+	lotto \
+	database \
+	gauss \
+	mem2swap \
+	prog_limit
 
 .SUFFIXES: .c .cc .asm
 
@@ -183,6 +188,27 @@
 	@echo Linking $< ...
 	@$(CPP) -o $@ $<
 
+lotto: lotto.o
+	@echo Linking $< ...
+	@$(CPP) -o $@ $<
+
+mem2swap: mem2swap.o set_limit.o
+	@echo Linking $< ...
+	@$(CPP) -o $@ mem2swap.o set_limit.o
+
+prog_limit: prog_limit.o set_limit.o
+	@echo Linking $< ...
+	@$(CPP) -o $@ prog_limit.o set_limit.o
+
+database: database.c
+	$(CC) -c -I$(shell pg_config --includedir) $<
+	@echo Linking $< ...
+	$(CC) -lpq -o $@ $@.o
+
+gauss: gauss.o
+	@echo Linking $< ...
+	@$(CPP) -o $@ $<
+
 .PHONY: clean uninstall
 
 clean: