2012-04-21 21:11:18 +00:00
|
|
|
TARGET = retroarch.exe
|
2012-12-14 20:53:58 +00:00
|
|
|
JTARGET = tools/retroarch-joyconfig.exe
|
2012-06-19 22:43:41 +00:00
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
OBJDIR := obj-w32
|
|
|
|
|
2013-02-25 06:01:16 +00:00
|
|
|
OBJ = frontend/frontend.o \
|
2013-07-27 14:36:55 +00:00
|
|
|
frontend/frontend_context.o \
|
2014-05-09 04:12:53 +00:00
|
|
|
frontend/platform/platform_null.o \
|
2013-02-25 06:01:16 +00:00
|
|
|
retroarch.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
file.o \
|
2014-07-26 19:21:45 +00:00
|
|
|
file_list.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
file_path.o \
|
|
|
|
driver.o \
|
|
|
|
conf/config_file.o \
|
|
|
|
settings.o \
|
2014-05-03 16:38:29 +00:00
|
|
|
settings_data.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
hash.o \
|
|
|
|
dynamic.o \
|
2013-04-14 14:24:19 +00:00
|
|
|
dynamic_dummy.o \
|
2013-11-06 14:08:54 +00:00
|
|
|
message_queue.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
rewind.o \
|
|
|
|
movie.o \
|
|
|
|
gfx/gfx_common.o \
|
2012-09-28 20:38:42 +00:00
|
|
|
input/input_common.o \
|
2013-12-10 18:39:09 +00:00
|
|
|
input/keyboard_line.o \
|
2013-09-06 21:24:21 +00:00
|
|
|
input/autoconf/builtin_win.o \
|
2013-04-04 11:58:30 +00:00
|
|
|
core_options.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
patch.o \
|
|
|
|
compat/compat.o \
|
|
|
|
screenshot.o \
|
2013-01-02 14:05:55 +00:00
|
|
|
cheats.o \
|
2014-08-02 12:04:43 +00:00
|
|
|
core_info.o \
|
2012-06-19 22:43:41 +00:00
|
|
|
audio/utils.o \
|
2012-12-20 14:53:09 +00:00
|
|
|
input/overlay.o \
|
2012-09-30 09:26:26 +00:00
|
|
|
fifo_buffer.o \
|
2012-10-19 23:12:02 +00:00
|
|
|
media/rarch.o \
|
2013-12-09 13:22:46 +00:00
|
|
|
gfx/context/win32_common.o \
|
2012-10-19 23:12:02 +00:00
|
|
|
gfx/scaler/scaler.o \
|
2014-05-08 19:49:18 +00:00
|
|
|
gfx/shader_common.o \
|
2012-10-19 23:12:02 +00:00
|
|
|
gfx/scaler/pixconv.o \
|
|
|
|
gfx/scaler/scaler_int.o \
|
2014-04-16 13:48:33 +00:00
|
|
|
gfx/scaler/scaler_filter.o \
|
2012-10-30 22:47:21 +00:00
|
|
|
gfx/state_tracker.o \
|
2013-04-06 09:30:56 +00:00
|
|
|
gfx/shader_parse.o \
|
2012-12-14 19:25:40 +00:00
|
|
|
gfx/fonts/fonts.o \
|
|
|
|
gfx/fonts/bitmapfont.o \
|
2014-05-10 18:26:58 +00:00
|
|
|
gfx/image/image_rpng.o \
|
2013-02-08 10:49:51 +00:00
|
|
|
audio/resampler.o \
|
2014-05-20 10:28:33 +00:00
|
|
|
audio/dsp_filter.o \
|
2013-04-07 08:33:46 +00:00
|
|
|
audio/sinc.o \
|
2014-04-20 02:17:18 +00:00
|
|
|
audio/cc_resampler.o \
|
2012-11-01 21:40:42 +00:00
|
|
|
performance.o
|
2012-06-19 22:43:41 +00:00
|
|
|
|
|
|
|
JOBJ := conf/config_file.o \
|
|
|
|
tools/retroarch-joyconfig.o \
|
2012-09-29 19:57:03 +00:00
|
|
|
compat/compat.o \
|
2012-11-18 16:42:03 +00:00
|
|
|
file_path.o \
|
2013-04-26 13:10:52 +00:00
|
|
|
tools/input_common_joyconfig.o \
|
2013-08-23 12:09:59 +00:00
|
|
|
input/dinput.o \
|
|
|
|
input/winxinput_joypad.o
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2014-01-11 18:08:24 +00:00
|
|
|
HEADERS = $(wildcard */*/*.h) $(wildcard */*.h) $(wildcard *.h)
|
2014-01-11 17:51:42 +00:00
|
|
|
|
2014-02-02 14:34:37 +00:00
|
|
|
ifneq ($(HOST_PREFIX),)
|
|
|
|
CC = $(HOST_PREFIX)gcc
|
|
|
|
CXX = $(HOST_PREFIX)g++
|
|
|
|
WINDRES = $(HOST_PREFIX)windres
|
|
|
|
else
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
WINDRES = windres
|
|
|
|
endif
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2011-06-10 14:55:05 +00:00
|
|
|
HAVE_DINPUT = 1
|
2011-01-27 00:46:00 +00:00
|
|
|
HAVE_XAUDIO = 1
|
2011-08-04 16:45:40 +00:00
|
|
|
HAVE_DSOUND = 1
|
2011-11-02 16:02:59 +00:00
|
|
|
HAVE_OPENGL = 1
|
2013-07-25 14:33:06 +00:00
|
|
|
HAVE_FBO = 1
|
2011-05-11 15:52:16 +00:00
|
|
|
HAVE_DYLIB = 1
|
2012-11-03 23:48:13 +00:00
|
|
|
HAVE_D3D9 = 1
|
2011-08-28 20:43:50 +00:00
|
|
|
HAVE_NETPLAY = 1
|
2012-08-07 19:31:43 +00:00
|
|
|
HAVE_STDIN_CMD = 1
|
2011-11-30 16:46:58 +00:00
|
|
|
HAVE_THREADS = 1
|
2013-03-17 12:24:09 +00:00
|
|
|
HAVE_RGUI = 1
|
2011-10-05 19:44:17 +00:00
|
|
|
DYNAMIC = 1
|
2011-08-28 19:47:58 +00:00
|
|
|
|
2013-08-26 11:13:41 +00:00
|
|
|
HAVE_WINXINPUT = 1
|
2013-08-23 12:09:59 +00:00
|
|
|
|
2014-07-18 00:16:07 +00:00
|
|
|
HAVE_LAKKA = 0
|
|
|
|
|
2011-08-28 19:47:58 +00:00
|
|
|
ifeq ($(SLIM),)
|
2012-09-30 09:26:26 +00:00
|
|
|
HAVE_SDL = 1
|
2013-01-02 14:05:55 +00:00
|
|
|
HAVE_LIBXML2 = 1
|
2011-08-28 19:47:58 +00:00
|
|
|
HAVE_FREETYPE = 1
|
2013-01-21 23:15:47 +00:00
|
|
|
HAVE_ZLIB = 1
|
2011-08-28 19:47:58 +00:00
|
|
|
HAVE_RSOUND = 1
|
|
|
|
HAVE_CG = 1
|
|
|
|
HAVE_PYTHON = 1
|
2011-08-28 19:56:56 +00:00
|
|
|
HAVE_FFMPEG = 1
|
2011-08-28 19:47:58 +00:00
|
|
|
endif
|
|
|
|
|
2012-04-22 10:17:22 +00:00
|
|
|
libretro ?= -lretro
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2012-01-05 16:41:04 +00:00
|
|
|
LIBS = -lm
|
2014-07-22 01:22:18 +00:00
|
|
|
DEFINES = -I. -DHAVE_BSV_MOVIE -DHAVE_BUILTIN_AUTOCONFIG -DRARCH_INTERNAL -DHAVE_CC_RESAMPLER -DHAVE_OVERLAY
|
2011-11-15 14:41:49 +00:00
|
|
|
LDFLAGS = -L. -static-libgcc
|
2012-03-19 22:45:46 +00:00
|
|
|
|
|
|
|
ifeq ($(TDM_GCC),)
|
|
|
|
LDCXXFLAGS += -static-libstdc++
|
|
|
|
endif
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2012-09-30 09:26:26 +00:00
|
|
|
ifeq ($(SCALER_NO_SIMD), 1)
|
|
|
|
DEFINES += -DSCALER_NO_SIMD
|
|
|
|
endif
|
|
|
|
|
2012-10-11 20:36:11 +00:00
|
|
|
JLIBS =
|
|
|
|
|
2013-03-17 12:24:09 +00:00
|
|
|
ifeq ($(HAVE_RGUI), 1)
|
2014-05-26 16:44:24 +00:00
|
|
|
OBJ += frontend/menu/disp/rgui.o
|
2014-07-18 00:16:07 +00:00
|
|
|
DEFINES += -DHAVE_MENU -DHAVE_RGUI
|
2014-04-26 09:04:34 +00:00
|
|
|
HAVE_MENU_COMMON = 1
|
2014-07-18 00:16:07 +00:00
|
|
|
ifeq ($(HAVE_LAKKA), 1)
|
|
|
|
OBJ += frontend/menu/backend/menu_lakka_backend.o frontend/menu/disp/lakka.o
|
|
|
|
DEFINES += -DHAVE_LAKKA
|
|
|
|
endif
|
2014-04-25 23:53:40 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-25 18:56:31 +00:00
|
|
|
OBJ += history.o
|
|
|
|
|
2014-04-25 23:53:40 +00:00
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2014-07-26 19:21:45 +00:00
|
|
|
OBJ += frontend/menu/backend/menu_common_backend.o frontend/menu/menu_input_line_cb.o frontend/menu/menu_common.o frontend/menu/menu_navigation.o
|
2013-03-17 12:24:09 +00:00
|
|
|
endif
|
|
|
|
|
2012-09-30 09:26:26 +00:00
|
|
|
ifeq ($(HAVE_SDL), 1)
|
2013-07-17 20:38:25 +00:00
|
|
|
OBJ += gfx/sdl_gfx.o input/sdl_input.o input/sdl_joypad.o audio/sdl_audio.o
|
2012-09-30 09:26:26 +00:00
|
|
|
JOBJ += input/sdl_joypad.o
|
2011-11-02 16:04:49 +00:00
|
|
|
LIBS += -lSDL
|
2012-10-11 20:36:11 +00:00
|
|
|
JLIBS += -lSDL
|
2011-08-28 19:56:56 +00:00
|
|
|
DEFINES += -ISDL -DHAVE_SDL
|
2011-01-07 17:26:19 +00:00
|
|
|
endif
|
|
|
|
|
2011-11-30 16:46:58 +00:00
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
2013-12-31 21:10:58 +00:00
|
|
|
OBJ += autosave.o thread.o gfx/video_thread_wrapper.o audio/thread_wrapper.o
|
2011-11-30 16:46:58 +00:00
|
|
|
DEFINES += -DHAVE_THREADS
|
|
|
|
endif
|
|
|
|
|
2011-11-02 16:04:49 +00:00
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2013-07-05 16:28:08 +00:00
|
|
|
OBJ += gfx/gl.o gfx/math/matrix.o gfx/fonts/gl_font.o gfx/fonts/gl_raster_font.o gfx/gfx_context.o gfx/context/wgl_ctx.o gfx/shader_glsl.o gfx/glsym/rglgen.o gfx/glsym/glsym_gl.o
|
2014-05-30 16:18:06 +00:00
|
|
|
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL -DHAVE_GL_SYNC
|
2013-07-06 15:52:22 +00:00
|
|
|
LIBS += -lopengl32 -lgdi32 -lcomdlg32
|
2011-11-02 16:04:49 +00:00
|
|
|
endif
|
|
|
|
|
2011-05-18 20:40:42 +00:00
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
OBJ += gfx/shader_cg.o
|
|
|
|
LIBS += -lcg -lcgGL
|
|
|
|
DEFINES += -DHAVE_CG
|
2012-10-26 19:09:30 +00:00
|
|
|
else
|
|
|
|
HAVE_D3D9 = 0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_D3D9), 1)
|
2014-03-09 14:49:20 +00:00
|
|
|
OBJ += gfx/d3d9/d3d.o gfx/d3d9/render_chain.o gfx/fonts/d3d_font.o gfx/fonts/d3d_w32_font.o gfx/context/d3d_ctx.o
|
2012-10-26 19:09:30 +00:00
|
|
|
DEFINES += -DHAVE_WIN32_D3D9
|
|
|
|
LIBS += -ld3d9 -lcg -lcgD3D9 -ld3dx9 -ldxguid
|
2011-05-18 20:40:42 +00:00
|
|
|
endif
|
|
|
|
|
2011-01-27 00:46:00 +00:00
|
|
|
ifeq ($(HAVE_XAUDIO), 1)
|
2011-08-20 01:22:19 +00:00
|
|
|
OBJ += audio/xaudio.o audio/xaudio-c/xaudio-c.o
|
2011-01-27 00:46:00 +00:00
|
|
|
DEFINES += -DHAVE_XAUDIO
|
2011-08-20 01:22:19 +00:00
|
|
|
LIBS += -lole32
|
2011-01-27 00:46:00 +00:00
|
|
|
endif
|
|
|
|
|
2011-08-04 16:45:40 +00:00
|
|
|
ifeq ($(HAVE_DSOUND), 1)
|
|
|
|
OBJ += audio/dsound.o
|
|
|
|
DEFINES += -DHAVE_DSOUND
|
|
|
|
LIBS += -ldxguid -ldsound
|
|
|
|
endif
|
|
|
|
|
2011-01-29 22:53:38 +00:00
|
|
|
ifeq ($(HAVE_RSOUND), 1)
|
|
|
|
OBJ += audio/rsound.o
|
|
|
|
DEFINES += -DHAVE_RSOUND
|
|
|
|
LIBS += -lrsound
|
|
|
|
endif
|
|
|
|
|
2013-01-21 23:03:22 +00:00
|
|
|
ifeq ($(HAVE_ZLIB), 1)
|
|
|
|
OBJ += gfx/rpng/rpng.o file_extract.o
|
2013-03-28 14:05:12 +00:00
|
|
|
DEFINES += -DHAVE_ZLIB
|
|
|
|
ifeq ($(WANT_MINIZ), 1)
|
|
|
|
OBJ += deps/miniz/miniz.o
|
|
|
|
DEFINES += -DWANT_MINIZ
|
|
|
|
else
|
|
|
|
LIBS += -lz
|
|
|
|
DEFINES += -DHAVE_ZLIB_DEFLATE
|
|
|
|
endif
|
2013-01-21 23:03:22 +00:00
|
|
|
endif
|
|
|
|
|
2013-01-02 14:05:55 +00:00
|
|
|
ifeq ($(HAVE_LIBXML2), 1)
|
|
|
|
DEFINES += -Ilibxml2 -DHAVE_LIBXML2 -DHAVE_GLSL
|
2011-08-28 20:20:15 +00:00
|
|
|
LIBS += -lxml2 -liconv
|
2013-01-02 14:05:55 +00:00
|
|
|
else
|
|
|
|
OBJ += compat/rxml/rxml.o
|
2011-01-07 16:59:53 +00:00
|
|
|
endif
|
|
|
|
|
2011-05-11 15:52:16 +00:00
|
|
|
ifeq ($(HAVE_DYLIB), 1)
|
|
|
|
DEFINES += -DHAVE_DYLIB
|
2014-04-14 20:56:15 +00:00
|
|
|
OBJ += gfx/filter.o
|
2011-03-07 19:22:55 +00:00
|
|
|
endif
|
|
|
|
|
2012-08-07 19:31:43 +00:00
|
|
|
ifeq ($(HAVE_STDIN_CMD), 1)
|
|
|
|
DEFINES += -DHAVE_COMMAND -DHAVE_STDIN_CMD
|
|
|
|
OBJ += command.o
|
|
|
|
endif
|
|
|
|
|
2011-03-19 19:42:49 +00:00
|
|
|
ifeq ($(HAVE_NETPLAY), 1)
|
2012-08-07 19:31:43 +00:00
|
|
|
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
|
|
|
|
OBJ += netplay.o
|
2011-03-19 19:42:49 +00:00
|
|
|
LIBS += -lws2_32
|
|
|
|
endif
|
|
|
|
|
2011-01-24 20:46:43 +00:00
|
|
|
ifeq ($(HAVE_FREETYPE), 1)
|
2012-12-14 19:25:40 +00:00
|
|
|
OBJ += gfx/fonts/freetype.o
|
2011-01-24 20:46:43 +00:00
|
|
|
DEFINES += -DHAVE_FREETYPE -Ifreetype2
|
2011-08-28 20:19:02 +00:00
|
|
|
LIBS += -lfreetype -lz
|
2011-01-24 20:46:43 +00:00
|
|
|
endif
|
|
|
|
|
2011-01-19 12:25:18 +00:00
|
|
|
ifeq ($(DYNAMIC), 1)
|
|
|
|
DEFINES += -DHAVE_DYNAMIC
|
2011-01-19 15:11:45 +00:00
|
|
|
else
|
2012-04-22 10:17:22 +00:00
|
|
|
LIBS += $(libretro)
|
2011-01-19 12:25:18 +00:00
|
|
|
endif
|
|
|
|
|
2011-03-23 22:48:13 +00:00
|
|
|
ifeq ($(HAVE_FBO), 1)
|
|
|
|
DEFINES += -DHAVE_FBO
|
|
|
|
endif
|
|
|
|
|
2011-06-09 11:56:29 +00:00
|
|
|
ifeq ($(HAVE_PYTHON), 1)
|
|
|
|
LIBS += -lpython32
|
|
|
|
DEFINES += -DHAVE_PYTHON -Ipython
|
|
|
|
OBJ += gfx/py_state/py_state.o
|
|
|
|
endif
|
2011-05-23 23:28:00 +00:00
|
|
|
|
2013-08-26 11:13:41 +00:00
|
|
|
ifeq ($(HAVE_WINXINPUT), 1)
|
|
|
|
DEFINES += -DHAVE_WINXINPUT
|
2013-08-23 12:09:59 +00:00
|
|
|
OBJ += input/winxinput_joypad.o
|
|
|
|
endif
|
|
|
|
|
2011-06-10 14:55:05 +00:00
|
|
|
ifeq ($(HAVE_DINPUT), 1)
|
|
|
|
LIBS += -ldinput8 -ldxguid -lole32
|
2011-08-19 17:16:53 +00:00
|
|
|
DEFINES += -DHAVE_DINPUT
|
2011-06-10 14:55:05 +00:00
|
|
|
OBJ += input/dinput.o
|
|
|
|
endif
|
|
|
|
|
2011-06-14 21:59:00 +00:00
|
|
|
ifeq ($(HAVE_FFMPEG), 1)
|
2012-11-23 22:29:28 +00:00
|
|
|
LIBS += -lavformat -lavcodec -lavutil -lswscale -lws2_32 -lz
|
2014-05-02 22:21:07 +00:00
|
|
|
DEFINES += -DHAVE_FFMPEG -DHAVE_RECORD -Iffmpeg
|
2014-05-04 09:52:09 +00:00
|
|
|
OBJ += record/ffemu.o record/ffmpeg.o
|
2011-06-14 21:59:00 +00:00
|
|
|
endif
|
|
|
|
|
2011-12-24 12:46:12 +00:00
|
|
|
ifneq ($(V), 1)
|
2011-01-10 16:15:27 +00:00
|
|
|
Q := @
|
|
|
|
endif
|
|
|
|
|
2012-06-16 22:18:23 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
|
|
|
CFLAGS += -O0 -g
|
2012-11-04 21:55:11 +00:00
|
|
|
CXXFLAGS += -O0 -g
|
2012-06-16 22:18:23 +00:00
|
|
|
else
|
2013-02-14 10:56:35 +00:00
|
|
|
CFLAGS += -O3 -ffast-math
|
|
|
|
CXXFLAGS += -O3 -ffast-math
|
2012-06-16 22:18:23 +00:00
|
|
|
LDCXXFLAGS += -s
|
|
|
|
endif
|
|
|
|
|
2013-08-14 12:00:21 +00:00
|
|
|
ifeq ($(GL_DEBUG), 1)
|
|
|
|
CFLAGS += -DGL_DEBUG
|
|
|
|
CXXFLAGS += -DGL_DEBUG
|
|
|
|
endif
|
|
|
|
|
2013-03-17 12:24:09 +00:00
|
|
|
CFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I.
|
|
|
|
CXXFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -I. -std=c++0x -D__STDC_CONSTANT_MACROS
|
2011-12-24 12:46:12 +00:00
|
|
|
ifeq ($(CXX_BUILD), 1)
|
2011-12-25 00:45:09 +00:00
|
|
|
CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
|
2011-12-24 12:46:12 +00:00
|
|
|
else
|
2013-10-22 19:41:51 +00:00
|
|
|
ifneq ($(GNU90_BUILD), 1)
|
|
|
|
CFLAGS += -std=gnu99
|
|
|
|
endif
|
2011-12-24 12:46:12 +00:00
|
|
|
endif
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2014-01-11 18:05:26 +00:00
|
|
|
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
|
2014-01-11 17:51:42 +00:00
|
|
|
ifneq ($(GIT_VERSION),)
|
|
|
|
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=\"$(GIT_VERSION)\"
|
|
|
|
OBJ += git_version.o
|
|
|
|
endif
|
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
RARCH_OBJ := $(addprefix $(OBJDIR)/,$(OBJ))
|
|
|
|
RARCH_JOBJ := $(addprefix $(OBJDIR)/,$(JOBJ))
|
|
|
|
|
2011-01-24 21:15:49 +00:00
|
|
|
all: $(TARGET) $(JTARGET)
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2014-03-27 21:19:06 +00:00
|
|
|
-include $(RARCH_OBJ:.o=.d) $(RARCH_JOBJ:.o=.d)
|
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
$(TARGET): $(RARCH_OBJ)
|
2011-01-10 16:15:27 +00:00
|
|
|
@$(if $(Q), $(shell echo echo LD $@),)
|
2014-02-02 14:29:07 +00:00
|
|
|
$(Q)$(CXX) -o $@ $(RARCH_OBJ) $(LIBS) $(LDFLAGS) $(LDCXXFLAGS)
|
2011-01-09 15:08:06 +00:00
|
|
|
|
2014-03-27 21:19:06 +00:00
|
|
|
$(OBJDIR)/%.o: %.c
|
2014-02-02 14:29:07 +00:00
|
|
|
@mkdir -p $(dir $@)
|
2014-01-11 17:51:42 +00:00
|
|
|
@$(if $(Q), $(shell echo echo CC $<),)
|
2014-03-27 21:19:06 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
|
2014-01-11 17:51:42 +00:00
|
|
|
|
|
|
|
.FORCE:
|
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
$(OBJDIR)/git_version.o: git_version.c .FORCE
|
|
|
|
@mkdir -p $(dir $@)
|
2011-01-10 16:15:27 +00:00
|
|
|
@$(if $(Q), $(shell echo echo CC $<),)
|
2014-03-27 21:19:06 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(DEFINES) -MMD -c -o $@ $<
|
2011-01-09 18:50:23 +00:00
|
|
|
|
2014-03-27 21:19:06 +00:00
|
|
|
$(OBJDIR)/tools/input_common_joyconfig.o: input/input_common.c
|
2014-02-02 14:29:07 +00:00
|
|
|
@mkdir -p $(dir $@)
|
2013-04-26 13:10:52 +00:00
|
|
|
@$(if $(Q), $(shell echo echo CC $<),)
|
2014-03-27 21:19:06 +00:00
|
|
|
$(Q)$(CC) $(CFLAGS) $(DEFINES) -DIS_JOYCONFIG -MMD -c -o $@ $<
|
2013-04-26 13:10:52 +00:00
|
|
|
|
2014-03-27 21:19:06 +00:00
|
|
|
$(OBJDIR)/%.o: %.cpp
|
2014-02-02 14:29:07 +00:00
|
|
|
@mkdir -p $(dir $@)
|
2012-10-26 19:09:30 +00:00
|
|
|
@$(if $(Q), $(shell echo echo CXX $<),)
|
2014-03-27 21:19:06 +00:00
|
|
|
$(Q)$(CXX) $(CXXFLAGS) $(DEFINES) -MMD -c -o $@ $<
|
2012-10-26 19:09:30 +00:00
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
$(OBJDIR)/%.o: %.rc $(HEADERS)
|
|
|
|
@mkdir -p $(dir $@)
|
2012-10-10 22:09:24 +00:00
|
|
|
@$(if $(Q), $(shell echo echo WINDRES $<),)
|
2013-01-04 20:56:15 +00:00
|
|
|
$(Q)$(WINDRES) -o $@ $<
|
2012-10-10 22:09:24 +00:00
|
|
|
|
2014-02-02 14:29:07 +00:00
|
|
|
$(JTARGET): $(RARCH_JOBJ)
|
2013-01-04 20:56:15 +00:00
|
|
|
@$(if $(Q), $(shell echo echo LD $@),)
|
2011-12-24 12:46:12 +00:00
|
|
|
ifeq ($(CXX_BUILD), 1)
|
2014-02-02 14:29:07 +00:00
|
|
|
$(Q)$(CXX) -o $@ $(RARCH_JOBJ) -ldxguid -ldinput8 -lole32 $(LDFLAGS) $(JLIBS)
|
2011-12-24 12:46:12 +00:00
|
|
|
else
|
2014-02-02 14:29:07 +00:00
|
|
|
$(Q)$(CC) -o $@ $(RARCH_JOBJ) -ldxguid -ldinput8 -lole32 $(LDFLAGS) $(JLIBS)
|
2011-12-24 12:46:12 +00:00
|
|
|
endif
|
2011-01-09 16:24:13 +00:00
|
|
|
|
2011-01-07 16:59:53 +00:00
|
|
|
clean:
|
2014-02-02 14:29:07 +00:00
|
|
|
rm -rf $(OBJDIR)
|
2011-01-07 16:59:53 +00:00
|
|
|
rm -f $(TARGET)
|
2014-02-02 14:29:07 +00:00
|
|
|
rm -f tools/retroarch-joyconfig.exe
|
2011-01-07 16:59:53 +00:00
|
|
|
|
2011-08-28 19:56:56 +00:00
|
|
|
dist_x86: all
|
2014-01-02 21:57:44 +00:00
|
|
|
zip -r retroarch-win32-1.0.zip $(TARGET) $(JTARGET) retroarch.cfg
|
2011-08-28 19:56:56 +00:00
|
|
|
|
|
|
|
dist_x86_64: all
|
2014-01-02 21:57:44 +00:00
|
|
|
zip -r retroarch-win64-1.0.zip $(TARGET) $(JTARGET) retroarch.cfg
|
2011-01-24 20:46:43 +00:00
|
|
|
|
2011-08-28 19:56:56 +00:00
|
|
|
libs_x86:
|
2013-08-10 22:36:03 +00:00
|
|
|
wget http://themaister.net/retroarch-dl/RetroArch-win32-libs.zip
|
2012-04-21 21:50:46 +00:00
|
|
|
unzip RetroArch-win32-libs.zip
|
2013-08-10 22:36:03 +00:00
|
|
|
wget http://themaister.net/retroarch-dl/RetroArch-win32-headers.zip
|
2012-04-21 21:50:46 +00:00
|
|
|
unzip RetroArch-win32-headers.zip
|
2011-01-08 19:05:41 +00:00
|
|
|
|
2011-08-28 19:56:56 +00:00
|
|
|
libs_x86_64:
|
2013-08-10 22:36:03 +00:00
|
|
|
wget http://themaister.net/retroarch-dl/RetroArch-win64-libs.zip
|
2012-04-21 21:50:46 +00:00
|
|
|
unzip RetroArch-win64-libs.zip
|
2013-08-10 22:36:03 +00:00
|
|
|
wget http://themaister.net/retroarch-dl/RetroArch-win64-headers.zip
|
2012-04-21 21:50:46 +00:00
|
|
|
unzip RetroArch-win64-headers.zip
|
2011-08-28 19:56:56 +00:00
|
|
|
|
|
|
|
.PHONY: all install uninstall clean dist_x86 dist_x86_64 libs_x86 libs_x86_64
|
2012-04-21 21:50:46 +00:00
|
|
|
|