source: fact/Feedback/Makefile@ 15063

Last change on this file since 15063 was 11205, checked in by ogrimm, 13 years ago
Adaptions to allow compilation on Ubuntu
File size: 887 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 = -L /usr/lib/termcap -lstdc++ -lz -lpthread -lutil -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.