source: hvcontrol/Makefile@ 39

Last change on this file since 39 was 39, checked in by lstark, 16 years ago
several bugs fixed, higher precision reached
File size: 1.1 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 ../fact_repos.svn/pixelmap/Pixel.cc ../fact_repos.svn/pixelmap/PixelMap.cc
6
7OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
8
9#INCDIRS = -I. -IDRS -I../pixelmap
10INCDIRS = -I. -I../pixelmap -I./src
11
12CFLAGS = -pipe -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX
13CPPFLAGS = -pipe -fPIC -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX $(VMECTRL)
14LIBS = -lstdc++ -lz -lpthread -lutil -lfl -lusb -lftdi -L/usr/lib -L/sw/lib
15
16hvcontrol: $(OBJECTS)
17 $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
18
19clean:
20 @rm -f $(OBJECTS) $(SOBJECTS).so
21 @rm -f *.d
22 @rm -f *~
23
24-include Dep.d
25
26# Implicit rules
27
28%.o : %.c
29 $(CC) $(CFLAGS) $(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:/' > $@
38
Note: See TracBrowser for help on using the repository browser.