Makefile
changeset 51 a03372ef9714
parent 45 7197576fedcf
child 56 966ad681f25d
equal deleted inserted replaced
50:a38f102556e5 51:a03372ef9714
    46 	sort \
    46 	sort \
    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 
    53 
    53 .SUFFIXES: .c .cc .asm
    54 .SUFFIXES: .c .cc .asm
    54 
    55 
    55 .c.o:
    56 .c.o:
    56 	@echo Compiling $< ...
    57 	@echo Compiling $< ...
   258 
   259 
   259 vector: vector.o
   260 vector: vector.o
   260 	@echo Linking $< ...
   261 	@echo Linking $< ...
   261 	@$(CPP) -o $@ $<
   262 	@$(CPP) -o $@ $<
   262 
   263 
       
   264 base10: base10.o
       
   265 	@echo Linking $< ...
       
   266 	@$(CC) -lm -o $@ $<
       
   267 
   263 .PHONY: clean uninstall
   268 .PHONY: clean uninstall
   264 
   269 
   265 clean:
   270 clean:
   266 	rm -f *.o *~
   271 	rm -f *.o *~
   267 	rm -f $(TARGET)
   272 	rm -f $(TARGET)