mirror of
https://github.com/libretro/RetroArch
synced 2025-03-06 04:13:52 +00:00
Update build system to include joyconfig
This commit is contained in:
parent
9a4158aac8
commit
c5770039cc
12
Makefile
12
Makefile
@ -1,8 +1,9 @@
|
|||||||
include config.mk
|
include config.mk
|
||||||
|
|
||||||
TARGET = ssnes
|
TARGET = ssnes tools/ssnes-joyconfig
|
||||||
|
|
||||||
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o dynamic.o
|
OBJ = ssnes.o file.o driver.o conf/config_file.o settings.o dynamic.o
|
||||||
|
JOYCONFIG_OBJ = tools/ssnes-joyconfig.o conf/config_file.o
|
||||||
|
|
||||||
LIBS =
|
LIBS =
|
||||||
DEFINES = -DHAVE_CONFIG_H
|
DEFINES = -DHAVE_CONFIG_H
|
||||||
@ -85,6 +86,9 @@ config.mk: configure qb/*
|
|||||||
ssnes: $(OBJ)
|
ssnes: $(OBJ)
|
||||||
$(CXX) -o $@ $(OBJ) $(LIBS) $(LDFLAGS)
|
$(CXX) -o $@ $(OBJ) $(LIBS) $(LDFLAGS)
|
||||||
|
|
||||||
|
tools/ssnes-joyconfig: $(JOYCONFIG_OBJ)
|
||||||
|
$(CC) -o $@ $(JOYCONFIG_OBJ) $(SDL_LIBS) $(LDFLAGS)
|
||||||
|
|
||||||
%.o: %.c config.h config.mk
|
%.o: %.c config.h config.mk
|
||||||
$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
|
$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
|
||||||
|
|
||||||
@ -92,8 +96,9 @@ install: $(TARGET)
|
|||||||
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
|
install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
|
||||||
install -m644 ssnes.cfg $(DESTDIR)/etc/ssnes.cfg
|
install -m644 ssnes.cfg $(DESTDIR)/etc/ssnes.cfg
|
||||||
|
|
||||||
uninstall: $(TARGET)
|
uninstall:
|
||||||
rm -rf $(DESTDIR)/$(PREFIX)/bin/$(TARGET)
|
rm -f $(DESTDIR)$(PREFIX)/bin/{ssnes,ssnes-joyconfig}
|
||||||
|
rm -f $(DESTDIR)/etc/ssnes.cfg
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
@ -103,6 +108,7 @@ clean:
|
|||||||
rm -f record/*.o
|
rm -f record/*.o
|
||||||
rm -f hqflt/*.o
|
rm -f hqflt/*.o
|
||||||
rm -f hqflt/snes_ntsc/*.o
|
rm -f hqflt/snes_ntsc/*.o
|
||||||
|
rm -f tools/*.o
|
||||||
rm -f $(TARGET)
|
rm -f $(TARGET)
|
||||||
|
|
||||||
.PHONY: all install uninstall clean
|
.PHONY: all install uninstall clean
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SDL
|
#ifdef HAVE_SDL
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#endif
|
#endif
|
||||||
@ -24,6 +28,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
||||||
|
|
||||||
static int g_player = 1;
|
static int g_player = 1;
|
||||||
static int g_joypad = 1;
|
static int g_joypad = 1;
|
||||||
static char *g_in_path = NULL;
|
static char *g_in_path = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user