mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-22 09:15:02 +00:00
38 lines
507 B
Makefile
38 lines
507 B
Makefile
include config.mak
|
|
|
|
TARGET = ssnes
|
|
|
|
SOURCE = ssnes.c
|
|
LIBS = -lsamplerate -lsnes
|
|
|
|
ifeq ($(BUILD_RSOUND), 1)
|
|
SOURCE += rsound.c
|
|
LIBS += -lrsound
|
|
endif
|
|
|
|
ifeq ($(BUILD_OPENGL), 1)
|
|
SOURCE += gl.c
|
|
LIBS += -lglfw
|
|
endif
|
|
|
|
CFLAGS = -Wall -O3 -march=native
|
|
|
|
OBJ = ssnes.o
|
|
|
|
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET):
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(SOURCE) $(LIBS)
|
|
|
|
install: $(TARGET)
|
|
install -m755 $(TARGET) $(PREFIX)/bin
|
|
|
|
uninstall: $(TARGET)
|
|
rm -rf $(PREFIX)/bin/$(TARGET)
|
|
|
|
clean:
|
|
rm -rf $(OBJ)
|
|
rm -rf $(TARGET)
|