Makefile
changeset 0 8b659bd91d0b
child 6 0110bdfbd7d2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Tue Jan 16 22:15:00 2018 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +include Makefile.conf
     1.5 +-include local.conf
     1.6 +
     1.7 +TARGET?=libpEpAdapter.a
     1.8 +PEPENGINE_IN?=$(HOME)
     1.9 +
    1.10 +CXXFLAGS += -I$(HOME)/include -std=c++14
    1.11 +
    1.12 +SOURCE=$(wildcard *.cc)
    1.13 +OBJECTS=$(subst .cc,.o,$(SOURCE))
    1.14 +
    1.15 +all: $(TARGET)
    1.16 +
    1.17 +%.o: %.cc %.hh
    1.18 +	$(CXX) $(CXXFLAGS) -c $<
    1.19 +
    1.20 +$(TARGET): $(OBJECTS)
    1.21 +	ar -rc $@ $^
    1.22 +
    1.23 +.PHONY: clean
    1.24 +
    1.25 +clean:
    1.26 +	rm -f $(TARGET) $(OBJECTS)