source: hvcontrol/Makefile@ 57

Last change on this file since 57 was 46, checked in by lstark, 15 years ago
path of pixel map integrated in config file
File size: 1.0 KB
Line 
1#
2# Makefile example
3#
4
5SOURCES = hvcontrol.cpp src/CCCommand.cc src/ConsoleCommand.cc src/HV.cc src/HVConfig.cc src/HVCalib.cc src/HVMonitor.cc src/HVStatus.cc src/Log.cc src/ProcessIO.cc src/ReadCard.cc src/Utilities.cc ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc
6
7OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
8
9INCDIRS = -I. -I../pixelmap -I./src
10
11CFLAGS = -pipe -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX
12CPPFLAGS = -pipe -fPIC -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX $(VMECTRL)
13LIBS = -lstdc++ -lz -lpthread -lutil -lfl -lusb -lftdi -L/usr/lib -L/sw/lib
14
15hvcontrol: $(OBJECTS)
16 $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
17
18clean:
19 @rm -f $(OBJECTS) $(SOBJECTS).so
20 @rm -f *.d
21 @rm -f *~
22
23-include Dep.d
24
25# Implicit rules
26
27%.o : %.c
28 $(CC) $(CFLAGS) $(INCDIRS) -c -o $@ $<
29%.o : %.cc
30 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
31%.o : %.cpp
32 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
33%.d :
34 @echo "Generating dependencies" $@
35 @$(CC) -MM $(SOURCES) $(INCDIRS) \
36 | sed 's/^\(.*\).o:/$@ \1.o:/' > $@
37
Note: See TracBrowser for help on using the repository browser.