Last change
on this file since 273 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 |
|
---|
5 | CC = g++ # Compiler to use
|
---|
6 |
|
---|
7 | SOURCES = ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc Feedback.cc ../Evidence/Evidence.cc
|
---|
8 | OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
|
---|
9 | INCDIRS = -I. -I../pixelmap -I../Evidence -I$(DIMDIR)/dim
|
---|
10 |
|
---|
11 | REVISION = $(shell svnversion -n)
|
---|
12 |
|
---|
13 | CPPFLAGS = -DREVISION='"$(REVISION)"' -O3 -Wall
|
---|
14 | LIBS = -lstdc++ -lz -lpthread -lutil -lfl -lreadline -ltermcap $(DIMDIR)/linux/libdim.a
|
---|
15 |
|
---|
16 | Feedback: $(OBJECTS)
|
---|
17 | $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
---|
18 |
|
---|
19 | clean:
|
---|
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.