wut/tools/elf2rpl/Makefile

28 lines
520 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
LDFLAGS :=
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)