diff --git a/Makefile b/Makefile --- 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: