CXX := g++ CXX_FLAGS:= -m32 ifdef ANAGATE CXX_FLAGS += -DANAGATE INC_DIR += -I. -IincludeAnaGate/ LIBS := libAnaGate/libCANDLL-1.8.so.0 libAnaGate/libAnaCommon-1.0.12.so.0 -lm -lcrypt #LIB_DIR += -L/usr/local/lib -L./libAnaGate/ #LIB_DIR += -L/home/dwbennet/newBaseControl/libAnaGate64/ #LIBS += /home/dwbennet/newBaseControl/libAnaGate64/libCANDLLRelease64.so /home/dwbennet/newBaseControl/libAnaGate64/libAnaGateRelease.so /home/dwbennet/newBaseControl/libAnaGate64/libAnaGateExtRelease.so /home/dwbennet/newBaseControl/libAnaGate64/libAPIRelease64.so else PEAK:= libPCAN/ INC_DIR := -I. -IincludePCAN/ LIBS := libPCAN/libpcan.so.0.6 endif .PHONY: default default: baseControl gluex_Canlib.o: gluex_Canlib.cxx gluex_Canlib.h $(CXX) $(CXX_FLAGS) $(INC_DIR) -c gluex_Canlib.cxx baseControl: baseControl.cxx gluex_Canlib.o $(CXX) $(CXX_FLAGS) $(INC_DIR) -c baseControl.cxx g++ $(CXX_FLAGS) gluex_Canlib.o baseControl.o $(LIBS) -o baseControl clean: rm -f *.o *~ baseControl