RetroArch/wiiu/wut/elf2rpl/Makefile

28 lines
440 B
Makefile
Raw Normal View History

TARGET := elf2rpl
CXX := g++
LD := g++
OBJS := main.o
INCLUDES := -I.
2017-10-21 03:43:33 +00:00
CFLAGS := -O2 -Wall -std=c++14
LDFLAGS := -lz
2017-01-23 14:59:44 +00:00
ifneq ($(findstring Linux,$(shell uname -a)),)
else ifneq ($(findstring Darwin,$(shell uname -a)),)
else
TARGET := $(TARGET).exe
endif
all: $(TARGET)
clean:
@rm -rf $(TARGET) $(OBJS)
%.o: %.cpp
$(CXX) -c -o $@ $< $(CFLAGS) $(INCLUDES)
$(TARGET): $(OBJS)
$(LD) $(OBJS) $(CFLAGS) $(LDFLAGS) -o $@