mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 20:01:53 +01:00
29 lines
620 B
Makefile
29 lines
620 B
Makefile
TARGET := ../bin/implcheck
|
|
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)
|
|
@rm -rf ../$(TARGET)
|
|
|
|
install: all
|
|
@echo Installing $(TARGET)
|
|
@cp $(TARGET) $(WUT_ROOT)/bin/$(TARGET)
|
|
|
|
$(TARGET): $(CFILES)
|
|
@echo "[CXX] $(notdir $<)"
|
|
@$(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS) $(CPPFORMATSRC)
|