RetroArch/Makefile
2010-06-27 14:40:06 +02:00

46 lines
666 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 -march=native -std=c99
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)