Makefile
changeset 25 6cf883f9c506
parent 24 9cdad6c45b47
child 26 d227047a3e88
equal deleted inserted replaced
24:9cdad6c45b47 25:6cf883f9c506
    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 	function_pointers \
       
    45 	sort
    45 
    46 
    46 .SUFFIXES: .c .cc .asm
    47 .SUFFIXES: .c .cc .asm
    47 
    48 
    48 .c.o:
    49 .c.o:
    49 	@echo Compiling $< ...
    50 	@echo Compiling $< ...
   223 
   224 
   224 function_pointers: function_pointers.o
   225 function_pointers: function_pointers.o
   225 	@echo Linking $< ...
   226 	@echo Linking $< ...
   226 	@$(CC) -o $@ $<
   227 	@$(CC) -o $@ $<
   227 
   228 
       
   229 sort: sort.o
       
   230 	@echo Linking $< ...
       
   231 	@$(CC) -o $@ $<
       
   232 
   228 .PHONY: clean uninstall
   233 .PHONY: clean uninstall
   229 
   234 
   230 clean:
   235 clean:
   231 	rm -f *.o *~
   236 	rm -f *.o *~
   232 	rm -f $(TARGET)
   237 	rm -f $(TARGET)