mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
28 lines
440 B
Makefile
28 lines
440 B
Makefile
TARGET := elf2rpl
|
|
|
|
CXX := g++
|
|
LD := g++
|
|
|
|
OBJS := main.o
|
|
INCLUDES := -I.
|
|
|
|
CFLAGS := -O2 -Wall -std=c++14
|
|
LDFLAGS := -lz
|
|
|
|
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 $@
|