source: hvcontrol/Makefile@ 91

Last change on this file since 91 was 90, checked in by ogrimm, 15 years ago
Removed ftdi libraries, streamlined program, slightly expanded command interface
File size: 717 bytes
Line 
1#
2# Makefile hvcontrol
3#
4
5SOURCES = hvcontrol.cpp src/HV.cc src/HVConfig.cc src/HVCalib.cc src/ProcessIO.cc ../pixelmap/Pixel.cc ../pixelmap/PixelMap.cc
6OBJECTS = $(addsuffix .o, $(basename $(SOURCES)))
7INCDIRS = -I. -I../pixelmap -I./src
8
9CPPFLAGS = -O3 -Wall -DOS_LINUX
10LIBS = -lstdc++ -lpthread -lfl -lreadline -ltermcap
11
12hvcontrol: $(OBJECTS)
13 $(CC) $(CPPFLAGS) -o $@ $(OBJECTS) $(LIBS)
14
15clean:
16 @rm -f $(OBJECTS) $(SOBJECTS).so
17 @rm -f *.d
18 @rm -f *~
19
20-include Dep.d
21
22# Implicit rules
23
24%.o : %.cc
25 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
26%.o : %.cpp
27 $(CC) $(CPPFLAGS) $(INCDIRS) -c -o $@ $<
28%.d :
29 @echo "Generating dependencies" $@
30 @$(CC) -MM $(SOURCES) $(INCDIRS) \
31 | sed 's/^\(.*\).o:/$@ \1.o:/' > $@
32
Note: See TracBrowser for help on using the repository browser.