mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
update makefile
This commit is contained in:
parent
e65d9f349d
commit
57a5c55ca3
34
Makefile
34
Makefile
@ -2,60 +2,54 @@ include config.mk
|
|||||||
|
|
||||||
TARGET = ssnes
|
TARGET = ssnes
|
||||||
|
|
||||||
DEFINES =
|
|
||||||
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o
|
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o
|
||||||
libsnes = -lsnes
|
|
||||||
|
|
||||||
LIBS = -lsamplerate $(libsnes)
|
LIBS = -lsamplerate $(libsnes)
|
||||||
|
|
||||||
ifeq ($(BUILD_RSOUND), 1)
|
ifeq ($(HAVE_RSOUND), 1)
|
||||||
OBJ += audio/rsound.o
|
OBJ += audio/rsound.o
|
||||||
LIBS += -lrsound
|
LIBS += -lrsound
|
||||||
DEFINES += -DHAVE_RSOUND
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(BUILD_OSS), 1)
|
ifeq ($(HAVE_OSS), 1)
|
||||||
OBJ += audio/oss.o
|
OBJ += audio/oss.o
|
||||||
DEFINES += -DHAVE_OSS
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(BUILD_ALSA), 1)
|
ifeq ($(HAVE_ALSA), 1)
|
||||||
OBJ += audio/alsa.o
|
OBJ += audio/alsa.o
|
||||||
LIBS += -lasound
|
LIBS += -lasound
|
||||||
DEFINES += -DHAVE_ALSA
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(BUILD_ROAR), 1)
|
ifeq ($(HAVE_ROAR), 1)
|
||||||
OBJ += audio/roar.o
|
OBJ += audio/roar.o
|
||||||
LIBS += -lroar
|
LIBS += -lroar
|
||||||
DEFINES += -DHAVE_ROAR
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(BUILD_AL), 1)
|
ifeq ($(HAVE_AL), 1)
|
||||||
OBJ += audio/openal.o
|
OBJ += audio/openal.o
|
||||||
LIBS += -lopenal
|
LIBS += -lopenal
|
||||||
DEFINES += -DHAVE_AL
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BUILD_OPENGL), 1)
|
ifeq ($(HAVE_OPENGL), 1)
|
||||||
OBJ += gfx/gl.o
|
OBJ += gfx/gl.o
|
||||||
LIBS += -lglfw
|
LIBS += -lglfw
|
||||||
DEFINES += -DHAVE_GL
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BUILD_CG), 1)
|
ifeq ($(HAVE_CG), 1)
|
||||||
LIBS += -lCg -lCgGL
|
LIBS += -lCg -lCgGL
|
||||||
DEFINES += -DHAVE_CG
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BUILD_FILTER), 1)
|
ifeq ($(HAVE_FILTER), 1)
|
||||||
OBJ += hqflt/hq.o
|
OBJ += hqflt/hq.o
|
||||||
OBJ += hqflt/grayscale.o
|
OBJ += hqflt/grayscale.o
|
||||||
OBJ += hqflt/bleed.o
|
OBJ += hqflt/bleed.o
|
||||||
OBJ += hqflt/ntsc.o
|
OBJ += hqflt/ntsc.o
|
||||||
OBJ += hqflt/snes_ntsc/snes_ntsc.o
|
OBJ += hqflt/snes_ntsc/snes_ntsc.o
|
||||||
DEFINES += -DHAVE_FILTER
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS = -Wall -O3 -std=gnu99 -I. $(DEFINES)
|
CFLAGS = -Wall -O3 -std=gnu99 -I.
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET) config.mk
|
||||||
|
|
||||||
|
config.mk: configure qb/*
|
||||||
|
@echo "config.mk is outdated or non-existing. Run ./configure again."
|
||||||
|
exit 1
|
||||||
|
|
||||||
ssnes: $(OBJ)
|
ssnes: $(OBJ)
|
||||||
$(CXX) -o $@ $(OBJ) $(LIBS) $(CFLAGS)
|
$(CXX) -o $@ $(OBJ) $(LIBS) $(CFLAGS)
|
||||||
|
@ -5,6 +5,7 @@ check_critical C99 "Cannot find C99 compatible compiler."
|
|||||||
|
|
||||||
check_lib_cxx SNES $LIBSNES snes_init -ldl
|
check_lib_cxx SNES $LIBSNES snes_init -ldl
|
||||||
check_critical SNES "Cannot find libsnes."
|
check_critical SNES "Cannot find libsnes."
|
||||||
|
add_define_make libsnes $LIBSNES
|
||||||
|
|
||||||
check_lib ALSA -lasound snd_pcm_open
|
check_lib ALSA -lasound snd_pcm_open
|
||||||
check_header OSS sys/soundcard.h
|
check_header OSS sys/soundcard.h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user