RetroArch/Makefile
2010-05-29 17:02:48 +02:00

46 lines
681 B
Makefile

include config.mk
TARGET = ssnes
SOURCE = ssnes.c
LIBS = -lsamplerate -lsnes
ifeq ($(BUILD_RSOUND), 1)
SOURCE += rsound.c
LIBS += -lrsound
endif
ifeq ($(BUILD_OSS), 1)
SOURCE += oss.c
endif
ifeq ($(BUILD_ALSA), 1)
SOURCE += alsa.c
LIBS += -lasound
endif
ifeq ($(BUILD_OPENGL), 1)
SOURCE += gl.c
LIBS += -lglfw
endif
ifeq ($(BUILD_FILTER), 1)
SOURCE += hqflt/hq.c
endif
CFLAGS = -Wall -O3 -fomit-frame-pointer -march=native -s
OBJ = ssnes.o
all:
$(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)