1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #------
- # Name of program or plugin
- #------
- TARGET_NAME = sensorycancel
- TARGET=$(TARGET_NAME)
- SRC=$(wildcard *.cpp)
- OBJS=$(addsuffix .o, $(basename $(SRC)))
- OUT=.
- CXX=g++ -O3
- LINK=$(CXX)
- RM=rm -rf
- LDIR=$(HOME)/prog/lib
- IDIR=$(HOME)/prog/include
- LCSIMDIR=../src
- LCSIMDIR=../src
- CXXFLAGS := -I. -I$(LCSIMDIR) -I$(IDIR) -Wno-deprecated
- LFLAGS= -L$(LCSIMDIR) -L$(LDIR) -lcsim -lanyoption -lvector -lgsl -lgslcblas -lidl_rpc
- DO.EXE = $(LINK) $(LFLAGS) -o $@ $^
- DO.TARGET = $(DO.EXE)
-
- #------
- # Rules
- #------
- .PHONY: all depend clean
- .SUFFIXES:
- .SUFFIXES: .cpp .o .h
- all: $(TARGET)
- $(TARGET).o: $(TARGET).cpp $(LCSIMDIR)/libcsim.a $(LDIR)/libvector.a $(LDIR)/libanyoption.a
- $(CXX) $(CXXFLAGS) -o $@ -c $<
- $(TARGET): $(TARGET).o
- $(DO.TARGET)
-
- clean:
- $(RM) $(TARGET) $(TARGET).o
-
|