Makefile 699 Bytes
Newer Older
1
andor-objs = AndorCamera.o AndorInterface.o AndorDetInfoCtrlObj.o AndorSyncCtrlObj.o AndorShutterCtrlObj.o AndorBinCtrlObj.o AndorRoiCtrlObj.o
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

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

CXXFLAGS += -I../include -I../../../hardware/include -I../../../common/include \
			-I/usr/local/include \
			-Wall -pthread -fPIC -g

all:	Andor.o

Andor.o:	$(andor-objs)
	$(LD) -o $@ -r $+

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)
25 26 27 28

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