Makefile
changeset 19 913dbffb1746
parent 18 3fd21a5f82b2
child 20 a37d30b60a38
     1.1 --- a/Makefile	Thu Oct 04 17:52:01 2018 +0200
     1.2 +++ b/Makefile	Thu Oct 04 18:05:51 2018 +0200
     1.3 @@ -3,12 +3,10 @@
     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 -O0 -g
    1.11  
    1.12  SOURCE=$(wildcard *.cc)
    1.13 +HEADERS=$(wildcard *.hh)
    1.14  OBJECTS=$(subst .cc,.o,$(SOURCE))
    1.15  WITHOUT_TESTS=$(patsubst test%.o,,$(OBJECTS))
    1.16  
    1.17 @@ -20,7 +18,7 @@
    1.18  $(TARGET): $(WITHOUT_TESTS)
    1.19  	ar -rc $@ $^
    1.20  
    1.21 -.PHONY: clean test
    1.22 +.PHONY: clean test install
    1.23  
    1.24  clean:
    1.25  	rm -f $(TARGET) $(OBJECTS) *.a test_adapter
    1.26 @@ -29,5 +27,9 @@
    1.27  	./test_adapter
    1.28  
    1.29  test_adapter: test_adapter.o $(TARGET)
    1.30 -	$(CXX) -o $@ -L$(HOME)/lib -lpEpEngine -L. -lpEpAdapter $<
    1.31 +	$(CXX) -o $@ -L$(PEP)/lib -lpEpEngine -L. -lpEpAdapter $<
    1.32  
    1.33 +install:
    1.34 +	-mkdir -p $(PEP)/include
    1.35 +	cp $(HEADERS) $(PEP)/include
    1.36 +