wut/tools/elf2rpl/Makefile

28 lines
524 B
Makefile
Raw Normal View History

2016-01-04 14:46:52 +01:00
WUT_ROOT := $(CURDIR)/../..
TARGET := elf2rpl
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-06 00:44:55 +01:00
LDFLAGS := -lz
2016-01-04 14:46:52 +01:00
all: $(TARGET)
clean:
@echo "[RM] $(notdir $(TARGET))"
@rm -rf $(TARGET)
install: all
@echo Installing $(TARGET)
2016-01-04 18:10:32 +01:00
@cp $(TARGET) $(WUT_ROOT)/bin/$(TARGET)
2016-01-04 14:46:52 +01:00
$(TARGET): $(CFILES)
@echo "[CXX] $(notdir $<)"
@$(CXX) $(CFLAGS) $(INCLUDES) $< -o $@ $(LDFLAGS)