This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Makefile.nacl

By: a guest on Oct 2nd, 2013  |  syntax: None  |  size: 14.10 KB  |  views: 42  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ubuntu@ip-10-202-63-252:~/RetroArch$ cat Makefile.nacl
  2. CC = ~/nacl_sdk/pepper_30/toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc
  3. CFLAGS =
  4. CXX = ~/nacl_sdk/pepper_30/toolchain/linux_x86_newlib/bin/x86_64-nacl-g++
  5. CXXFLAGS =
  6. AS = ~/nacl_sdk/pepper_30/toolchain/linux_x86_newlib/bin/x86_64-nacl-as
  7. LD = ~/nacl_sdk/pepper_30/toolchain/linux_x86_newlib/bin/x86_64-nacl-ld
  8. INCLUDE_DIRS =
  9. LIBRARY_DIRS =
  10. PACKAGE_NAME = retroarch
  11. PREFIX = /usr/local
  12. HAVE_RGUI = 1
  13. HAVE_ALSA = 0
  14. ALSA_CFLAGS =
  15. ALSA_LIBS =
  16. HAVE_OSS = 1
  17. HAVE_OSS_BSD = 0
  18. HAVE_OSS_LIB = 0
  19. HAVE_AL = 0
  20. AL_CFLAGS =
  21. AL_LIBS =
  22. HAVE_RSOUND = 0
  23. RSOUND_CFLAGS =
  24. RSOUND_LIBS =
  25. HAVE_ROAR = 0
  26. ROAR_CFLAGS =
  27. ROAR_LIBS =
  28. HAVE_JACK = 0
  29. JACK_CFLAGS =
  30. JACK_LIBS =
  31. HAVE_COREAUDIO = 0
  32. HAVE_PULSE = 0
  33. PULSE_CFLAGS =
  34. PULSE_LIBS =
  35. HAVE_SDL = 0
  36. SDL_CFLAGS =
  37. SDL_LIBS =
  38. HAVE_OPENGL = 1
  39. HAVE_GLES = 0
  40. HAVE_VG = 0
  41. HAVE_EGL = 0
  42. EGL_CFLAGS =
  43. EGL_LIBS =
  44. HAVE_KMS = 0
  45. HAVE_GBM = 0
  46. GBM_CFLAGS =
  47. GBM_LIBS =
  48. HAVE_DRM = 1
  49. DRM_CFLAGS = -I/usr/include/libdrm
  50. DRM_LIBS = -ldrm
  51. HAVE_DYLIB = 1
  52. HAVE_GETOPT_LONG = 1
  53. HAVE_THREADS = 1
  54. HAVE_CG = 0
  55. HAVE_LIBXML2 = 0
  56. LIBXML2_CFLAGS =
  57. LIBXML2_LIBS =
  58. HAVE_SDL_IMAGE = 0
  59. HAVE_ZLIB = 0
  60. ZLIB_CFLAGS =
  61. ZLIB_LIBS =
  62. HAVE_DYNAMIC = 1
  63. HAVE_AVCODEC = 0
  64. AVCODEC_CFLAGS =
  65. AVCODEC_LIBS =
  66. HAVE_AVFORMAT = 0
  67. AVFORMAT_CFLAGS =
  68. AVFORMAT_LIBS =
  69. HAVE_AVUTIL = 0
  70. AVUTIL_CFLAGS =
  71. AVUTIL_LIBS =
  72. HAVE_SWSCALE = 0
  73. SWSCALE_CFLAGS =
  74. SWSCALE_LIBS =
  75. HAVE_FREETYPE = 0
  76. FREETYPE_CFLAGS =
  77. FREETYPE_LIBS =
  78. HAVE_XVIDEO = 0
  79. HAVE_X11 = 0
  80. X11_CFLAGS =
  81. X11_LIBS = -lX11
  82. HAVE_XEXT = 1
  83. XEXT_CFLAGS =
  84. XEXT_LIBS = -lXext
  85. HAVE_XF86VM = 0
  86. XF86VM_CFLAGS =
  87. XF86VM_LIBS =
  88. HAVE_XINERAMA = 0
  89. XINERAMA_CFLAGS =
  90. XINERAMA_LIBS =
  91. HAVE_NETPLAY = 1
  92. HAVE_NETWORK_CMD = 1
  93. HAVE_STDIN_CMD = 1
  94. HAVE_COMMAND = 1
  95. HAVE_SOCKET_LEGACY = 0
  96. HAVE_FBO = 1
  97. HAVE_STRL = 0
  98. HAVE_PYTHON = 0
  99. PYTHON_CFLAGS =
  100. PYTHON_LIBS =
  101. HAVE_BSV_MOVIE = 1
  102. HAVE_VIDEOCORE = 0
  103. HAVE_NEON = 0
  104. HAVE_FLOATHARD = 0
  105. HAVE_FLOATSOFTFP = 0
  106. HAVE_UDEV = 0
  107. UDEV_CFLAGS =
  108. UDEV_LIBS =
  109. NOUNUSED = yes
  110. NOUNUSED_VARIABLE = yes
  111. DYLIB_LIB = -ldl
  112. MAN_DIR = /usr/local/share/man/man1
  113. OS = Linux
  114. GLOBAL_CONFIG_DIR =
  115.  
  116.  
  117. TARGET = retroarch
  118.  
  119. OBJ = frontend/frontend.o \
  120.                 frontend/frontend_context.o \
  121.                 retroarch.o \
  122.                 file.o \
  123.                 file_path.o \
  124.                 hash.o \
  125.                 driver.o \
  126.                 settings.o \
  127.                 dynamic.o \
  128.                 dynamic_dummy.o \
  129.                 message.o \
  130.                 rewind.o \
  131.                 gfx/gfx_common.o \
  132.                 input/input_common.o \
  133.                 input/overlay.o \
  134.                 patch.o \
  135.                 fifo_buffer.o \
  136.                 core_options.o \
  137.                 compat/compat.o \
  138.                 cheats.o \
  139.                 conf/config_file.o \
  140.                 screenshot.o \
  141.                 gfx/scaler/scaler.o \
  142.                 gfx/shader_parse.o \
  143.                 gfx/scaler/pixconv.o \
  144.                 gfx/scaler/scaler_int.o \
  145.                 gfx/scaler/filter.o \
  146.                 gfx/image.o \
  147.                 gfx/fonts/fonts.o \
  148.                 gfx/fonts/bitmapfont.o \
  149.                 audio/resampler.o \
  150.                 audio/sinc.o \
  151.                 performance.o
  152.  
  153. JOYCONFIG_OBJ = tools/retroarch-joyconfig.o \
  154.         conf/config_file.o \
  155.         file_path.o \
  156.         compat/compat.o \
  157.         tools/input_common_joyconfig.o
  158.  
  159. RETROLAUNCH_OBJ = tools/retrolaunch/main.o \
  160.         tools/retrolaunch/sha1.o \
  161.         tools/retrolaunch/parser.o \
  162.         tools/retrolaunch/cd_detect.o \
  163.         tools/retrolaunch/rl_fnmatch.o \
  164.         tools/input_common_launch.o \
  165.         file_path.o \
  166.         compat/compat.o \
  167.         conf/config_file.o \
  168.         settings.o
  169.  
  170. HEADERS = $(wildcard */*.h) $(wildcard *.h)
  171.  
  172. ifeq ($(findstring Haiku,$(OS)),)
  173.         LIBS = -lm
  174. endif
  175.  
  176. DEFINES = -DHAVE_CONFIG_H -DHAVE_SCREENSHOTS
  177.  
  178. ifeq ($(GLOBAL_CONFIG_DIR),)
  179.    GLOBAL_CONFIG_DIR = /etc
  180. endif
  181. DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
  182.  
  183. ifeq ($(REENTRANT_TEST), 1)
  184.    DEFINES += -Dmain=retroarch_main
  185.    OBJ += console/test.o
  186. endif
  187.  
  188. ifneq ($(findstring Darwin,$(OS)),)
  189.    OSX := 1
  190.    LIBS += -framework AppKit
  191. else
  192.    OSX := 0
  193. endif
  194.  
  195. ifneq ($(findstring BSD,$(OS)),)
  196.    BSD_LOCAL_INC = -I/usr/local/include
  197. endif
  198.  
  199. ifneq ($(findstring Linux,$(OS)),)
  200.    LIBS += -lrt
  201.    OBJ += input/linuxraw_input.o input/linuxraw_joypad.o
  202.    JOYCONFIG_OBJ += tools/linuxraw_joypad.o
  203. endif
  204.  
  205. ifeq ($(HAVE_RGUI), 1)
  206.    OBJ += frontend/menu/menu_common.o frontend/menu/menu_settings.o frontend/menu/menu_context.o frontend/menu/rgui.o frontend/menu/history.o
  207. endif
  208.  
  209. ifeq ($(HAVE_THREADS), 1)
  210.    OBJ += autosave.o thread.o gfx/thread_wrapper.o audio/thread_wrapper.o
  211.    ifeq ($(findstring Haiku,$(OS)),)
  212.       LIBS += -lpthread
  213.    endif
  214. endif
  215.  
  216. ifeq ($(HAVE_BSV_MOVIE), 1)
  217.    OBJ += movie.o
  218. endif
  219.  
  220. ifeq ($(HAVE_NETPLAY), 1)
  221.    OBJ += netplay.o
  222. endif
  223.  
  224. ifeq ($(HAVE_COMMAND), 1)
  225.    OBJ += command.o
  226. endif
  227.  
  228. ifeq ($(HAVE_RSOUND), 1)
  229.    OBJ += audio/rsound.o
  230.    LIBS += $(RSOUND_LIBS)
  231.    DEFINES += $(RSOUND_CFLAGS)
  232. endif
  233.  
  234. ifeq ($(HAVE_OSS), 1)
  235.    OBJ += audio/oss.o
  236. endif
  237.  
  238. ifeq ($(HAVE_OSS_BSD), 1)
  239.    OBJ += audio/oss.o
  240. endif
  241.  
  242. ifeq ($(HAVE_OSS_LIB), 1)
  243.    LIBS += -lossaudio
  244. endif
  245.  
  246. ifeq ($(HAVE_ALSA), 1)
  247.    OBJ += audio/alsa.o audio/alsathread.o
  248.    LIBS += $(ALSA_LIBS)
  249.    DEFINES += $(ALSA_CFLAGS)
  250. endif
  251.  
  252. ifeq ($(HAVE_ROAR), 1)
  253.    OBJ += audio/roar.o
  254.    LIBS += $(ROAR_LIBS)
  255.    DEFINES += $(ROAR_CFLAGS)
  256. endif
  257.  
  258. ifeq ($(HAVE_HARD_FLOAT), 1)
  259.    DEFINES += -mfloat-abi=hard
  260. endif
  261.  
  262. ifeq ($(HAVE_AL), 1)
  263.    OBJ += audio/openal.o
  264.    ifeq ($(OSX),1)
  265.       LIBS += -framework OpenAL
  266.    else
  267.       LIBS += -lopenal
  268.    endif
  269. endif
  270.  
  271. ifeq ($(HAVE_JACK),1)
  272.    OBJ += audio/jack.o
  273.    LIBS += $(JACK_LIBS)
  274.    DEFINES += $(JACK_CFLAGS)
  275. endif
  276.  
  277. ifeq ($(HAVE_PULSE), 1)
  278.    OBJ += audio/pulse.o
  279.    LIBS += $(PULSE_LIBS)
  280.    DEFINES += $(PULSE_CFLAGS)
  281. endif
  282.  
  283. ifeq ($(HAVE_COREAUDIO), 1)
  284.    OBJ += audio/coreaudio.o
  285.    LIBS += -framework CoreServices -framework CoreAudio -framework AudioUnit
  286. endif
  287.  
  288. ifeq ($(SCALER_NO_SIMD), 1)
  289.    DEFINES += -DSCALER_NO_SIMD
  290. endif
  291.  
  292. ifeq ($(PERF_TEST), 1)
  293.    DEFINES += -DPERF_TEST
  294. endif
  295.  
  296. ifeq ($(HAVE_SDL), 1)
  297.    OBJ += gfx/sdl_gfx.o input/sdl_input.o input/sdl_joypad.o audio/sdl_audio.o
  298.    JOYCONFIG_OBJ += input/sdl_joypad.o
  299.    JOYCONFIG_LIBS += $(SDL_LIBS)
  300.    DEFINES += $(SDL_CFLAGS) $(BSD_LOCAL_INC)
  301.    LIBS += $(SDL_LIBS)
  302. endif
  303.  
  304. ifeq ($(HAVE_OMAP), 1)
  305.         OBJ += gfx/omap_gfx.o gfx/fbdev.o
  306. endif
  307.  
  308. ifeq ($(HAVE_OPENGL), 1)
  309.    OBJ += gfx/gl.o \
  310.                          gfx/gfx_context.o \
  311.                          gfx/fonts/gl_font.o \
  312.                          gfx/fonts/gl_raster_font.o \
  313.                          gfx/math/matrix.o \
  314.                          gfx/state_tracker.o \
  315.                          gfx/glsym/rglgen.o
  316.  
  317.    ifeq ($(HAVE_KMS), 1)
  318.       OBJ += gfx/context/drm_egl_ctx.o
  319.       DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
  320.       LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
  321.    endif
  322.  
  323.    ifeq ($(HAVE_VIDEOCORE), 1)
  324.       OBJ += gfx/context/vc_egl_ctx.o
  325.                 # videocore's libs set later
  326.    endif
  327.  
  328.    ifeq ($(HAVE_X11), 1)
  329.       ifeq ($(HAVE_GLES), 0)
  330.          OBJ += gfx/context/glx_ctx.o
  331.       endif
  332.       ifeq ($(HAVE_EGL), 1)
  333.          OBJ += gfx/context/xegl_ctx.o
  334.          DEFINES += $(EGL_CFLAGS)
  335.          LIBS += $(EGL_LIBS)
  336.       endif
  337.    endif
  338.  
  339.    ifeq ($(HAVE_GLES), 1)
  340.       LIBS += -lGLESv2
  341.       DEFINES += -DHAVE_OPENGLES -DHAVE_OPENGLES2
  342.       OBJ += gfx/glsym/glsym_es2.o
  343.    else
  344.       DEFINES += -DHAVE_GL_SYNC
  345.       OBJ += gfx/glsym/glsym_gl.o
  346.       ifeq ($(OSX), 1)
  347.          LIBS += -framework OpenGL
  348.       else
  349.          LIBS += -lGL
  350.       endif
  351.    endif
  352.  
  353.    OBJ += gfx/shader_glsl.o
  354.    DEFINES += -DHAVE_GLSL -DHAVE_OVERLAY
  355. endif
  356.  
  357. ifeq ($(HAVE_VG), 1)
  358.    OBJ += gfx/vg.o gfx/math/matrix_3x3.o
  359.    DEFINES += $(VG_CFLAGS)
  360.    LIBS += $(VG_LIBS)
  361. endif
  362.  
  363. ifeq ($(HAVE_VIDEOCORE), 1)
  364.    LIBS += -lbcm_host -lvcos -lvchiq_arm -lEGL
  365. endif
  366.  
  367. ifeq ($(HAVE_XVIDEO), 1)
  368.    OBJ += gfx/xvideo.o
  369.    LIBS += $(XVIDEO_LIBS)
  370.    DEFINES += $(XVIDEO_CFLAGS)
  371. endif
  372.  
  373. ifeq ($(HAVE_X11), 1)
  374.    OBJ += input/x11_input.o gfx/context/x11_common.o
  375.    LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS)
  376.    DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
  377. endif
  378.  
  379. ifeq ($(HAVE_CG), 1)
  380.    OBJ += gfx/shader_cg.o
  381.    ifeq ($(OSX), 1)
  382.       LIBS += -framework Cg
  383.    else
  384.       LIBS += -lCg -lCgGL
  385.    endif
  386. endif
  387.  
  388. ifeq ($(HAVE_LIBXML2), 1)
  389.    LIBS += $(LIBXML2_LIBS)
  390.    DEFINES += $(LIBXML2_CFLAGS)
  391. else
  392.    OBJ += compat/rxml/rxml.o
  393. endif
  394.  
  395. ifeq ($(HAVE_DYLIB), 1)
  396.    LIBS += $(DYLIB_LIB)
  397. endif
  398.  
  399. ifeq ($(HAVE_FREETYPE), 1)
  400.    OBJ += gfx/fonts/freetype.o
  401.    LIBS += $(FREETYPE_LIBS)
  402.    DEFINES += $(FREETYPE_CFLAGS)
  403. endif
  404.  
  405. ifeq ($(HAVE_SDL_IMAGE), 1)
  406.    LIBS += $(SDL_IMAGE_LIBS)
  407.    DEFINES += $(SDL_IMAGE_CFLAGS)
  408. endif
  409.  
  410. ifeq ($(HAVE_ZLIB), 1)
  411.    OBJ += gfx/rpng/rpng.o file_extract.o
  412.    LIBS += $(ZLIB_LIBS)
  413.    DEFINES += $(ZLIB_CFLAGS) -DHAVE_ZLIB_DEFLATE
  414. endif
  415.  
  416. ifeq ($(HAVE_FFMPEG), 1)
  417.    OBJ += record/ffemu.o
  418.    LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS)
  419.    DEFINES += $(AVCODEC_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS) $(SWSCALE_CFLAGS)
  420. endif
  421.  
  422. ifeq ($(HAVE_DYNAMIC), 1)
  423.    LIBS += $(DYLIB_LIB)
  424. else
  425.    LIBS += $(libretro)
  426. endif
  427.  
  428. ifeq ($(HAVE_PYTHON), 1)
  429.    DEFINES += $(PYTHON_CFLAGS) -Wno-unused-parameter
  430.    LIBS += $(PYTHON_LIBS)
  431.    OBJ += gfx/py_state/py_state.o
  432. endif
  433.  
  434. ifeq ($(HAVE_UDEV), 1)
  435.    DEFINES += $(UDEV_CFLAGS)
  436.    LIBS += $(UDEV_LIBS)
  437.    JOYCONFIG_LIBS += $(UDEV_LIBS)
  438.    OBJ += input/udev_joypad.o
  439.    JOYCONFIG_OBJ += tools/udev_joypad.o
  440. endif
  441.  
  442. ifeq ($(HAVE_NEON),1)
  443.    OBJ += audio/sinc_neon.o
  444.         # When compiled without this, tries to attempt to compile sinc lerp,
  445.         # which will error out
  446.    DEFINES += -DSINC_LOWER_QUALITY -DHAVE_NEON
  447. endif
  448.  
  449. OBJ += audio/utils.o
  450. ifeq ($(HAVE_NEON),1)
  451.    OBJ += audio/utils_neon.o
  452. endif
  453.  
  454. ifneq ($(V),1)
  455.    Q := @
  456. endif
  457.  
  458. OPTIMIZE_FLAG = -O3 -ffast-math
  459. ifeq ($(DEBUG), 1)
  460.    OPTIMIZE_FLAG = -O0
  461. endif
  462.  
  463. ifeq ($(GL_DEBUG), 1)
  464.    CFLAGS += -DGL_DEBUG
  465.    CXXFLAGS += -DGL_DEBUG
  466. endif
  467.  
  468. CFLAGS += -Wall $(OPTIMIZE_FLAG) $(INCLUDE_DIRS) -g -I.
  469. ifeq ($(CXX_BUILD), 1)
  470.    LD = $(CXX)
  471.    CFLAGS += -std=c++0x -xc++ -D__STDC_CONSTANT_MACROS
  472. else
  473.    LD = $(CC)
  474.    ifneq ($(findstring icc,$(CC)),)
  475.       CFLAGS += -std=c99 -D_GNU_SOURCE
  476.    else
  477.       CFLAGS += -std=gnu99
  478.    endif
  479. endif
  480.  
  481. ifeq ($(NOUNUSED), yes)
  482.    CFLAGS += -Wno-unused-result
  483. endif
  484. ifeq ($(NOUNUSED_VARIABLE), yes)
  485.    CFLAGS += -Wno-unused-variable
  486. endif
  487.  
  488.  
  489. all: $(TARGET) config.mk
  490.  
  491. config.mk: configure qb/*
  492.         @echo "config.mk is outdated or non-existing. Run ./configure again."
  493.         @exit 1
  494.  
  495. retroarch: $(OBJ)
  496.         @$(if $(Q), $(shell echo echo LD $@),)
  497.         $(Q)$(LD) -o $@ $(OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
  498.  
  499. tools/retroarch-joyconfig: $(JOYCONFIG_OBJ)
  500.         @$(if $(Q), $(shell echo echo LD $@),)
  501. ifeq ($(CXX_BUILD), 1)
  502.         $(Q)$(CXX) -o $@ $(JOYCONFIG_OBJ) $(JOYCONFIG_LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
  503. else
  504.         $(Q)$(CC) -o $@ $(JOYCONFIG_OBJ) $(JOYCONFIG_LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
  505. endif
  506.  
  507. tools/retrolaunch/retrolaunch: $(RETROLAUNCH_OBJ)
  508.         @$(if $(Q), $(shell echo echo LD $@),)
  509.         $(Q)$(LD) -o $@ $(RETROLAUNCH_OBJ) $(LIBS) $(LDFLAGS) $(LIBRARY_DIRS)
  510.  
  511. %.o: %.c config.h config.mk $(HEADERS)
  512.         @$(if $(Q), $(shell echo echo CC $<),)
  513.         $(Q)$(CC) $(CFLAGS) $(DEFINES) -c -o $@ $<
  514.  
  515. tools/linuxraw_joypad.o: input/linuxraw_joypad.c
  516.         @$(if $(Q), $(shell echo echo CC $<),)
  517.         $(Q)$(CC) $(CFLAGS) $(DEFINES) -DIS_JOYCONFIG -c -o $@ $<
  518.  
  519. tools/udev_joypad.o: input/udev_joypad.c
  520.         @$(if $(Q), $(shell echo echo CC $<),)
  521.         $(Q)$(CC) $(CFLAGS) $(DEFINES) -DIS_JOYCONFIG -c -o $@ $<
  522.  
  523. tools/input_common_launch.o: input/input_common.c
  524.         @$(if $(Q), $(shell echo echo CC $<),)
  525.         $(Q)$(CC) $(CFLAGS) $(DEFINES) -DIS_RETROLAUNCH -c -o $@ $<
  526.  
  527. tools/input_common_joyconfig.o: input/input_common.c
  528.         @$(if $(Q), $(shell echo echo CC $<),)
  529.         $(Q)$(CC) $(CFLAGS) $(DEFINES) -DIS_JOYCONFIG -c -o $@ $<
  530.  
  531. %.o: %.S config.h config.mk $(HEADERS)
  532.         @$(if $(Q), $(shell echo echo AS $<),)
  533.         $(Q)$(CC) $(CFLAGS) $(ASFLAGS) $(DEFINES) -c -o $@ $<
  534.  
  535. install: $(TARGET)
  536.         mkdir -p $(DESTDIR)$(PREFIX)/bin 2>/dev/null || /bin/true
  537.         mkdir -p $(DESTDIR)$(GLOBAL_CONFIG_DIR) 2>/dev/null || /bin/true
  538.         mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 2>/dev/null || /bin/true
  539.         mkdir -p $(DESTDIR)$(PREFIX)/share/pixmaps 2>/dev/null || /bin/true
  540.         install -m755 $(TARGET) $(DESTDIR)$(PREFIX)/bin
  541.         install -m644 retroarch.cfg $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
  542.         install -m644 docs/retroarch.1 $(DESTDIR)$(MAN_DIR)
  543.         install -m644 docs/retroarch-joyconfig.1 $(DESTDIR)$(MAN_DIR)
  544.         install -m644 media/retroarch.png $(DESTDIR)$(PREFIX)/share/pixmaps
  545.  
  546. uninstall:
  547.         rm -f $(DESTDIR)$(PREFIX)/bin/retroarch
  548.         rm -f $(DESTDIR)$(PREFIX)/bin/retroarch-joyconfig
  549.         rm -f $(DESTDIR)$(PREFIX)/bin/retrolaunch
  550.         rm -f $(DESTDIR)$(GLOBAL_CONFIG_DIR)/retroarch.cfg
  551.         rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch.1
  552.         rm -f $(DESTDIR)$(PREFIX)/share/man/man1/retroarch-joyconfig.1
  553.         rm -f $(DESTDIR)$(PREFIX)/share/pixmaps/retroarch.png
  554.  
  555. clean:
  556.         rm -f *.o
  557.         rm -f frontend/menu/*.o
  558.         rm -f frontend/*.o
  559.         rm -f audio/*.o
  560.         rm -f conf/*.o
  561.         rm -f gfx/*.o
  562.         rm -f gfx/glsym/*.o
  563.         rm -f gfx/rpng/*.o
  564.         rm -f gfx/fonts/*.o
  565.         rm -f gfx/math/*.o
  566.         rm -f gfx/context/*.o
  567.         rm -f gfx/py_state/*.o
  568.         rm -f gfx/scaler/*.o
  569.         rm -f compat/*.o
  570.         rm -f compat/rxml/*.o
  571.         rm -f record/*.o
  572.         rm -f input/*.o
  573.         rm -f tools/*.o
  574.         rm -f tools/retrolaunch/*.o
  575.         rm -f $(TARGET)
  576.  
  577. .PHONY: all install uninstall clean
clone this paste RAW Paste Data