Makefile
changeset 107 244356bc3a20
parent 104 b59f1c9895db
child 108 d6a52e0152fb
equal deleted inserted replaced
106:a540a842ddef 107:244356bc3a20
     1      CC = gcc -g -ggdb $(PROF)
     1      CC = gcc -g -ggdb $(PROF)
     2     CPP = g++ -g -ggdb $(PROF)
     2     CPP = g++ -g -ggdb $(PROF)
     3  CFLAGS = -Wall -O2 -Iinclude -ansi
     3  CFLAGS = -Wall -O2 -Iinclude #-ansi
     4      RM = rm -f
     4      RM = rm -f
     5    FIND = find
     5    FIND = find
     6 
     6 
     7 ifeq ("$(PROFILER)", "linux")
     7 ifeq ("$(PROFILER)", "linux")
     8    PROF = -fprofile-arcs -ftest-coverage -pg
     8    PROF = -fprofile-arcs -ftest-coverage -pg
    65 TARGET += clplaner
    65 TARGET += clplaner
    66 TARGET += daemon
    66 TARGET += daemon
    67 TARGET += numbers
    67 TARGET += numbers
    68 TARGET += nearest
    68 TARGET += nearest
    69 TARGET += cppdatabase
    69 TARGET += cppdatabase
       
    70 TARGET += pipe
    70 
    71 
    71 .SUFFIXES: .c .cc .asm
    72 .SUFFIXES: .c .cc .asm
    72 
    73 
    73 .c.o:
    74 .c.o:
    74 	@echo Compiling $< ...
    75 	@echo Compiling $< ...
   319 	@$(CPP) -Wall -O2 -g -ggdb $< -o $@
   320 	@$(CPP) -Wall -O2 -g -ggdb $< -o $@
   320 
   321 
   321 cppdatabase: cppdatabase.o
   322 cppdatabase: cppdatabase.o
   322 	@echo Linking $<...
   323 	@echo Linking $<...
   323 	@$(CPP) -Wall -O2 -g -ggdb $< -o $@
   324 	@$(CPP) -Wall -O2 -g -ggdb $< -o $@
       
   325 
       
   326 pipe: pipe.o
       
   327 	@echo Linking $<...
       
   328 	@$(CC) -Wall -O2 -g -ggdb $< -o $@
       
   329 
   324 
   330 
   325 .PHONY: beauty clean uninstall
   331 .PHONY: beauty clean uninstall
   326 
   332 
   327 clean:
   333 clean:
   328 ifdef FIND
   334 ifdef FIND