Line | |
---|
1 | #
|
---|
2 | # Makefile hvcontrol
|
---|
3 | #
|
---|
4 |
|
---|
5 | SOURCES = 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 |
|
---|
7 | OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
|
---|
8 |
|
---|
9 | INCDIRS = -I. -I../pixelmap -I./src
|
---|
10 |
|
---|
11 | CFLAGS = -pipe -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX
|
---|
12 | CPPFLAGS = -pipe -fPIC -fthread-jumps -funroll-all-loops -O3 -Wall -DOS_LINUX $(VMECTRL)
|
---|
13 | LIBS = -lstdc++ -lz -lpthread -lutil -lfl -lusb -lftdi -L/usr/lib -L/sw/lib
|
---|
14 |
|
---|
15 | hvcontrol: $(OBJECTS)
|
---|
16 | $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
|
---|
17 |
|
---|
18 | clean:
|
---|
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.