source: Feedback/Makefile@ 1121

Last change on this file since 1121 was 269, checked in by ogrimm, 14 years ago
First commit of separated Feedback program
File size: 872 bytes
Line 
1#
2# Makefile for Feedback server
3#
4
5CC = g++ # Compiler to use
6
7SOURCES = ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc Feedback.cc ../Evidence/Evidence.cc
8OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
9INCDIRS = -I. -I../pixelmap -I../Evidence -I$(DIMDIR)/dim
10
11REVISION = $(shell svnversion -n)
12
13CPPFLAGS = -DREVISION='"$(REVISION)"' -O3 -Wall
14LIBS = -lstdc++ -lz -lpthread -lutil -lfl -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
15
16Feedback: $(OBJECTS)
17 $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
18
19clean:
20 @rm -f $(OBJECTS)
21 @rm -f *.d
22 @rm -f *~
23
24-include Dep.d
25
26# Implicit rules
27
28%.o : %.c
29 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
30%.o : %.cc
31 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
32%.o : %.cpp
33 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
34%.d :
35 @echo "Generating dependencies" $@
36 @$(CC) -MM $(SOURCES) $(INCDIRS) \
37 | sed 's/^\(.*\).o:/$@ \1.o:/' > $@
Note: See TracBrowser for help on using the repository browser.