Makefile
changeset 147 f9015072361f
parent 145 63a5269fb113
child 155 a54dcc86addb
equal deleted inserted replaced
146:0ffa20c26b2d 147:f9015072361f
    67 TARGET += pipe
    67 TARGET += pipe
    68 TARGET += compliteral
    68 TARGET += compliteral
    69 TARGET += getbits
    69 TARGET += getbits
    70 TARGET += fun
    70 TARGET += fun
    71 TARGET += sts
    71 TARGET += sts
       
    72 TARGET += berkdb
    72 
    73 
    73 # needs ncursesw
    74 # needs ncursesw
    74 TARGET  += ncurses
    75 TARGET  += ncurses
    75 
    76 
    76 #needs xpat
    77 #needs xpat
   247 	@echo Linking $< ...
   248 	@echo Linking $< ...
   248 	@$(CC) $(LDFLAGS) -o $@ mem2swap.o set_limit.o
   249 	@$(CC) $(LDFLAGS) -o $@ mem2swap.o set_limit.o
   249 
   250 
   250 prog_limit: prog_limit.o set_limit.o
   251 prog_limit: prog_limit.o set_limit.o
   251 	@echo Linking $< ...
   252 	@echo Linking $< ...
   252 	@$(CC) $(LDFLAGS) -o $@ prog_limit.o set_limit.o
   253 	@$(CC) $(LDFLAGS) -o $@ $?
   253 
   254 
   254 database: database.c
   255 database: database.c
   255 	@echo Compiling $< ...
   256 	@echo Compiling $< ...
   256 	@$(CC) -c -I$(shell pg_config --includedir) $<
   257 	@$(CC) -c -I$(shell pg_config --includedir) $<
   257 	@echo Linking $< ...
   258 	@echo Linking $< ...
   358 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
   359 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
   359 
   360 
   360 sts: sts.o
   361 sts: sts.o
   361 	@echo Linking $<...
   362 	@echo Linking $<...
   362 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
   363 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@
       
   364 
       
   365 berkdb: berkdb.o
       
   366 	@echo Linking $<...
       
   367 	@$(CC) -Wall -O2 -g -ggdb $(LDFLAGS) $< -o $@ -ldb
   363 
   368 
   364 .PHONY: beauty clean uninstall
   369 .PHONY: beauty clean uninstall
   365 
   370 
   366 clean:
   371 clean:
   367 ifdef FIND
   372 ifdef FIND