Makefile
changeset 24 9cdad6c45b47
parent 11 0a8be4eac87e
child 25 6cf883f9c506
equal deleted inserted replaced
23:7acfc5eda7ed 24:9cdad6c45b47
    38 	database \
    38 	database \
    39 	gauss \
    39 	gauss \
    40 	mem2swap \
    40 	mem2swap \
    41 	prog_limit \
    41 	prog_limit \
    42 	connection \
    42 	connection \
    43 	copy
    43 	copy \
       
    44 	function_pointers
    44 
    45 
    45 .SUFFIXES: .c .cc .asm
    46 .SUFFIXES: .c .cc .asm
    46 
    47 
    47 .c.o:
    48 .c.o:
    48 	@echo Compiling $< ...
    49 	@echo Compiling $< ...
   218 
   219 
   219 copy: copy.o
   220 copy: copy.o
   220 	@echo Linking $< ...
   221 	@echo Linking $< ...
   221 	@$(CPP) -o $@ $<
   222 	@$(CPP) -o $@ $<
   222 
   223 
       
   224 function_pointers: function_pointers.o
       
   225 	@echo Linking $< ...
       
   226 	@$(CC) -o $@ $<
       
   227 
   223 .PHONY: clean uninstall
   228 .PHONY: clean uninstall
   224 
   229 
   225 clean:
   230 clean:
   226 	rm -f *.o *~
   231 	rm -f *.o *~
   227 	rm -f $(TARGET)
   232 	rm -f $(TARGET)