Makefile
changeset 56 966ad681f25d
parent 51 a03372ef9714
child 58 9609c54a54d3
equal deleted inserted replaced
55:2a20d0184041 56:966ad681f25d
    47 	min2time \
    47 	min2time \
    48 	recursive_compiler \
    48 	recursive_compiler \
    49 	getpwnam_error \
    49 	getpwnam_error \
    50 	xmlparser \
    50 	xmlparser \
    51 	vector \
    51 	vector \
    52 	base10
    52 	base10 \
       
    53 	files \
       
    54 	fork \
       
    55 	duff
    53 
    56 
    54 .SUFFIXES: .c .cc .asm
    57 .SUFFIXES: .c .cc .asm
    55 
    58 
    56 .c.o:
    59 .c.o:
    57 	@echo Compiling $< ...
    60 	@echo Compiling $< ...
   263 
   266 
   264 base10: base10.o
   267 base10: base10.o
   265 	@echo Linking $< ...
   268 	@echo Linking $< ...
   266 	@$(CC) -lm -o $@ $<
   269 	@$(CC) -lm -o $@ $<
   267 
   270 
       
   271 files: files.o
       
   272 	@echo Linking $< ...
       
   273 	@$(CC) -o $@ $<
       
   274 
       
   275 fork: fork.o
       
   276 	@echo Linking $< ...
       
   277 	@$(CC) -o $@ $<
       
   278 
       
   279 duff: duff.o
       
   280 	@echo Linking $< ...
       
   281 	@$(CC) -o $@ $<
       
   282 
   268 .PHONY: clean uninstall
   283 .PHONY: clean uninstall
   269 
   284 
   270 clean:
   285 clean:
   271 	rm -f *.o *~
   286 	rm -f *.o *~
   272 	rm -f $(TARGET)
   287 	rm -f $(TARGET)