wut/tools/elf2rpl/Makefile

27 lines
524 B
Makefile
Raw Normal View History

2016-10-11 22:41:28 +01:00
TARGET := ../bin/elf2rpl
2016-01-04 05:46:52 -08:00
SOURCE := .
INCLUDE := ../common
CXX := g++
CFILES := $(foreach dir,$(SOURCE),$(wildcard $(dir)/*.cpp))
INCLUDES := $(foreach dir,$(INCLUDE),-I$(dir))
CFLAGS := -O2 -Wall --std=c++14
2016-01-05 15:44:55 -08:00
LDFLAGS := -lz
2016-01-04 05:46:52 -08:00
all: $(TARGET)
clean:
@echo "[RM] $(notdir $(TARGET))"
@rm -rf $(TARGET)
@rm -rf ../$(TARGET)
2016-01-04 05:46:52 -08:00
install: all
@echo Installing $(TARGET)
2016-01-04 17:10:32 +00:00
@cp $(TARGET) $(WUT_ROOT)/bin/$(TARGET)
2016-01-04 05:46:52 -08:00
$(TARGET): $(CFILES)
@echo "[CXX] $(notdir $<)"
@$(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS)