OSFLAGS = -DOS_LINUX -Dextname CFLAGS = -g -O2 -fPIC -Wall -Wno-unused-function -I$(MIDASSYS)/include CXXFLAGS = -std=c++11 $(CFLAGS) LIBS = -lm -lz -lutil -lnsl -lpthread -lrt MIDASLIBS = $(MIDASSYS)/lib/libmidas.a MFE = $(MIDASSYS)/lib/mfe.o all:: fedummy.exe fedummy.exe: %.exe: fedummy.cxx $(MIDASLIBS) $(MFE) $(CXX) -o $@ $(CXXFLAGS) $(OSFLAGS) $^ $(MIDASLIBS) $(LIBS) -DFE_NAME=\"fedummy\" -DEQ_NAME=\"FeDummy\" -DEQ_EVID=1 %.o: %.cxx $(CXX) $(CXXFLAGS) $(OSFLAGS) -c $< %.d: %.cxx $(CXX) -MM -MD $(CXXFLAGS) $(OSFLAGS) -c $< depend: -include *.d clean:: -rm -f *.o *.exe -rm -f *.d