2016-10-11 23:41:28 +02:00
|
|
|
TARGET := ../bin/implcheck
|
2016-10-11 23:17:07 +02:00
|
|
|
SOURCE := .
|
|
|
|
INCLUDE := ../common ../ext/cppformat ../ext/excmd/src
|
|
|
|
|
|
|
|
CXX := g++
|
|
|
|
|
|
|
|
CPPFORMATSRC := ../ext/cppformat/format.cc
|
|
|
|
|
|
|
|
CFILES := $(foreach dir,$(SOURCE),$(wildcard $(dir)/*.cpp))
|
|
|
|
INCLUDES := $(foreach dir,$(INCLUDE),-I$(dir))
|
|
|
|
|
|
|
|
CFLAGS := -O2 -Wall --std=c++14
|
|
|
|
LDFLAGS := -lz
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "[RM] $(notdir $(TARGET))"
|
|
|
|
@rm -rf $(TARGET)
|
2016-11-06 00:18:30 +01:00
|
|
|
@rm -rf ../$(TARGET)
|
2016-10-11 23:17:07 +02:00
|
|
|
|
|
|
|
install: all
|
|
|
|
@echo Installing $(TARGET)
|
|
|
|
@cp $(TARGET) $(WUT_ROOT)/bin/$(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(CFILES)
|
|
|
|
@echo "[CXX] $(notdir $<)"
|
2016-11-06 00:18:30 +01:00
|
|
|
@$(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS) $(CPPFORMATSRC)
|