Makefile 681 Bytes
Newer Older
1
pilatus-objs = PilatusCamera.o PilatusInterface.o PilatusSaving.o
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
2
3
4
5

SRCS = $(pilatus-objs:.o=.cpp) 

CXXFLAGS += -I../include -I../../../hardware/include -I../../../common/include \
6
	-I../../../third-party/CBFLib/include -Wall -pthread -fPIC -g
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
7
8
9
10

all:	Pilatus.o

Pilatus.o:	$(pilatus-objs)
11
	$(LD) -o $@ -r $+ ../../../third-party/CBFLib/lib/libcbf.a
Sebastien Petitdemange's avatar
Sebastien Petitdemange committed
12
13
14
15
16
17
18
19
20
21
22
23

clean:
	rm -f *.o *.P

%.o : %.cpp
	$(COMPILE.cpp) -MD $(CXXFLAGS) -o $@ $<
	@cp $*.d $*.P; \
	sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
	-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
	rm -f $*.d

-include $(SRCS:.cpp=.P)
24
25
26
27

.PHONY: check-syntax
check-syntax:
	$(CXX) -Wall -Wextra -fsyntax-only $(CXXFLAGS) $(CHK_SOURCES)