Makefile 702 Bytes
Newer Older
1 2 3
lima-objs := ../common/src/Common.o \
	     ../hardware/src/Hw.o \
	     ../control/src/Ct.o \
4
	     ../camera/simulator/src/Simu.o
5

6 7 8 9
include ../config.inc

ifneq ($(COMPILE_ESPIA),0)
lima-objs += ../camera/common/espia/src/Espia.o
10
include ../camera/common/espia/include/espia.inc
11 12 13 14 15 16 17 18 19 20 21
LDLIBS += -lespia
LDFLAGS += -L$(ESPIA_DRV_LIB)
endif

ifneq ($(COMPILE_FRELON),0)
lima-objs += ../camera/frelon/src/Frelon.o
endif

ifneq ($(COMPILE_MAXIPIX),0)
lima-objs += ../camera/maxipix/src/Maxipix.o
endif
22

23 24
LDFLAGS += -L../third-party/Processlib/build
LDLIBS += -lprocesslib
25

26 27 28 29 30
src:		liblima.so

test:
	@true

31 32
liblima.so:	$(lima-objs)
	$(CXX) -shared -o $@ -fPIC $+ $(LDFLAGS) $(LDLIBS)
kirov's avatar
kirov committed
33 34 35

clean:
	rm -f *.o liblima.so