Makefile
author Volker Birk <vb@pep.foundation>
Tue, 16 Jan 2018 22:15:00 +0100
changeset 0 8b659bd91d0b
child 6 0110bdfbd7d2
permissions -rw-r--r--
initial version
vb@0
     1
include Makefile.conf
vb@0
     2
-include local.conf
vb@0
     3
vb@0
     4
TARGET?=libpEpAdapter.a
vb@0
     5
PEPENGINE_IN?=$(HOME)
vb@0
     6
vb@0
     7
CXXFLAGS += -I$(HOME)/include -std=c++14
vb@0
     8
vb@0
     9
SOURCE=$(wildcard *.cc)
vb@0
    10
OBJECTS=$(subst .cc,.o,$(SOURCE))
vb@0
    11
vb@0
    12
all: $(TARGET)
vb@0
    13
vb@0
    14
%.o: %.cc %.hh
vb@0
    15
	$(CXX) $(CXXFLAGS) -c $<
vb@0
    16
vb@0
    17
$(TARGET): $(OBJECTS)
vb@0
    18
	ar -rc $@ $^
vb@0
    19
vb@0
    20
.PHONY: clean
vb@0
    21
vb@0
    22
clean:
vb@0
    23
	rm -f $(TARGET) $(OBJECTS)