Makefile
changeset 8 96d16dfe787a
parent 3 820ed7fb9314
child 10 f19f44e2e863
equal deleted inserted replaced
7:a1aa30f0f904 8:96d16dfe787a
   199 prog_limit: prog_limit.o set_limit.o
   199 prog_limit: prog_limit.o set_limit.o
   200 	@echo Linking $< ...
   200 	@echo Linking $< ...
   201 	@$(CPP) -o $@ prog_limit.o set_limit.o
   201 	@$(CPP) -o $@ prog_limit.o set_limit.o
   202 
   202 
   203 database: database.c
   203 database: database.c
   204 	$(CC) -c -I$(shell pg_config --includedir) $<
   204 	@echo Compiling $< ...
   205 	@echo Linking $< ...
   205 	@$(CC) -c -I$(shell pg_config --includedir) $<
   206 	$(CC) -lpq -o $@ $@.o
   206 	@echo Linking $< ...
       
   207 	@$(CC) -lpq -o $@ $@.o
   207 
   208 
   208 gauss: gauss.o
   209 gauss: gauss.o
   209 	@echo Linking $< ...
   210 	@echo Linking $< ...
   210 	@$(CPP) -o $@ $<
   211 	@$(CPP) -o $@ $<
   211 
   212