Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 1065:bc1cc0c54917
prev1059:ea2311906607
prev577:a181aeacd6e8
next1066:ddffe9d2b332
author nkeynes
date Sun Jul 05 13:52:50 2009 +1000 (10 years ago)
permissions -rw-r--r--
last change No-op merge lxdream-mmu to remove head (actually merged long ago)
view annotate diff log raw
     1 ## Process this file with automake to produce Makefile.in
     2 SVNVERSION=@SVNVERSION@
     3 INCLUDES = \
     4 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
     5 	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
     6 	-DPACKAGE_PLUGIN_DIR=\""$(pkglibdir)"\" \
     7 	-DPACKAGE_CONF_DIR=\""$(sysconfdir)"\" \
     8         -Ish4 \
     9 	@GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBPNG_CFLAGS@ @PULSE_CFLAGS@ @ESOUND_CFLAGS@ @ALSA_CFLAGS@ @SDL_CFLAGS@
    11 SOEXT=@SOEXT@
    12 PLUGINCFLAGS = @PLUGINCFLAGS@ 
    13 PLUGINLDFLAGS = @PLUGINLDFLAGS@
    14 bin_PROGRAMS = lxdream
    15 noinst_PROGRAMS = gendec genglsl
    16 check_PROGRAMS = test/testxlt
    18 pkglib_PROGRAMS=
    19 EXTRA_DIST=drivers/genkeymap.pl checkver.pl drivers/dummy.c
    20 AM_CFLAGS = -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE
    22 .PHONY: checkversion
    23 checkversion:
    24 	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
    26 version.c: checkversion
    28 TESTS = test/testxlt
    29 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    30 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    31 CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    32 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c  \
    33 	audio_alsa.lo audio_sdl.lo audio_esd.lo audio_pulse.lo input_lirc.lo \
    34 	lxdream_dummy.lo
    36 #all-am: checkversion
    38 gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
    39 genglsl_SOURCES = tools/genglsl.c
    40 lxdream_LINK = $(LINK) @LXDREAMLDFLAGS@
    41 lxdream_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ $(INTLLIBS)
    42 lxdream_SOURCES = \
    43         main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
    44         gettext.h mem.c mem.h sdram.c mmio.h watch.c \
    45         asic.c asic.h clock.h serial.h \
    46         syscall.c syscall.h bios.c dcload.c gdbserver.c \
    47         netutil.c netutil.h lxpaths.c lxpaths.h \
    48         gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
    49 	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
    50 	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
    51 	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/gddriver.h \
    52         dreamcast.c dreamcast.h eventq.c eventq.h \
    53         sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
    54         sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
    55         sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
    56 	xlat/xltcache.c xlat/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
    57 	sh4/cache.c sh4/mmu.h \
    58         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
    59         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    60 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
    61 	pvr2/tacore.c pvr2/rendsort.c \
    62 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
    63 	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
    64 	pvr2/vertex.glsl pvr2/fragment.glsl \
    65         maple/maple.c maple/maple.h \
    66         maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c maple/vmu.c \
    67         loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
    68         vmu/vmuvol.c vmu/vmuvol.h vmu/vmulist.c vmu/vmulist.h \
    69 	display.c display.h dckeysyms.h \
    70 	drivers/audio_null.c drivers/video_null.c drivers/cd_mmc.c \
    71 	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
    72 	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in \
    73 	hotkeys.c hotkeys.h
    74 lxdream_CPPFLAGS = @LXDREAMCPPFLAGS@
    75 if BUILD_SHARED
    76 lxdream_SOURCES += plugin.c plugin.h
    77 endif	
    79 if BUILD_SH4X86
    80 lxdream_SOURCES += sh4/sh4x86.c xlat/x86/x86op.h \
    81         xlat/x86/ia32abi.h xlat/x86/amd64abi.h \
    82         sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \
    83         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    84         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    85         x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
    86         x86dasm/symcat.h x86dasm/sysdep.h
    88 test_testsh4x86_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    89 test_testsh4x86_CPPFLAGS = @LXDREAMCPPFLAGS@
    90 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    91 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    92 	x86dasm/dis-buf.c \
    93 	sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c \
    94 	xlat/xltcache.h mem.c util.c 
    96 check_PROGRAMS += test/testsh4x86
    97 endif
    99 if GUI_GTK
   100 lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
   101 	gtkui/gtk_win.c gtkui/gtkcb.c \
   102         gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
   103         gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
   104         gtkui/gtk_hotkeys.c drivers/net_glib.c drivers/video_gtk.c
   105 endif
   107 if GUI_COCOA
   108 lxdream_SOURCES += cocoaui/cocoaui.m cocoaui/cocoaui.h \
   109 	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
   110 	cocoaui/cocoa_path.m cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
   111 	drivers/net_osx.m drivers/video_osx.m \
   112 	drivers/mac_keymap.h drivers/mac_keymap.txt
   113 else
   114 lxdream_SOURCES += paths_unix.c
   115 endif
   117 if VIDEO_OSMESA
   118 lxdream_SOURCES += drivers/video_gdk.c
   119 endif
   121 if VIDEO_GLX 
   122 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   123 endif
   125 if VIDEO_NSGL
   126 lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
   127 endif
   129 if AUDIO_OSX
   130 lxdream_SOURCES += drivers/audio_osx.m
   131 endif
   133 if BUILD_SHARED
   135 pkglib_PROGRAMS += lxdream_dummy.@SOEXT@
   136 lxdream_dummy_@SOEXT@_SOURCES =
   137 lxdream_dummy_@SOEXT@_LDADD = lxdream_dummy.lo @SDL_LIBS@
   138 lxdream_dummy_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   139 lxdream_dummy.lo: drivers/dummy.c
   140 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   142 if AUDIO_SDL
   143 pkglib_PROGRAMS += audio_sdl.@SOEXT@
   144 audio_sdl_@SOEXT@_SOURCES =
   145 audio_sdl_@SOEXT@_LDADD = audio_sdl.lo @SDL_LIBS@
   146 audio_sdl_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   147 audio_sdl.lo: drivers/audio_sdl.c
   148 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   149 endif
   151 if AUDIO_PULSE
   152 pkglib_PROGRAMS += audio_pulse.@SOEXT@
   153 audio_pulse_@SOEXT@_SOURCES =
   154 audio_pulse_@SOEXT@_LDADD = audio_pulse.lo @PULSE_LIBS@
   155 audio_pulse_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   156 audio_pulse.lo: drivers/audio_pulse.c
   157 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   158 endif
   160 if AUDIO_ESOUND
   161 pkglib_PROGRAMS += audio_esd.@SOEXT@
   162 audio_esd_@SOEXT@_SOURCES =
   163 audio_esd_@SOEXT@_LDADD = audio_esd.lo @ESOUND_LIBS@
   164 audio_esd_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   165 audio_esd.lo: drivers/audio_esd.c
   166 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   167 endif
   169 if AUDIO_ALSA
   170 pkglib_PROGRAMS += audio_alsa.@SOEXT@
   171 audio_alsa_@SOEXT@_SOURCES =
   172 audio_alsa_@SOEXT@_LDADD = audio_alsa.lo @ALSA_LIBS@
   173 audio_alsa_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   174 audio_alsa.lo: drivers/audio_alsa.c
   175 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   176 endif
   178 if INPUT_LIRC
   179 pkglib_PROGRAMS += input_lirc.@SOEXT@
   180 input_lirc_@SOEXT@_SOURCES =
   181 input_lirc_@SOEXT@_LDADD = input_lirc.lo	 -llirc_client
   182 input_lirc_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
   183 input_lirc.lo: drivers/input_lirc.c
   184 	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
   185 endif
   187 else # build statically
   188 if AUDIO_SDL
   189 lxdream_SOURCES += drivers/audio_sdl.c
   190 lxdream_LDADD += @SDL_LIBS@
   191 endif
   193 if AUDIO_PULSE
   194 lxdream_SOURCES += drivers/audio_pulse.c
   195 lxdream_LDADD += @PULSE_LIBS@
   196 endif
   198 if AUDIO_ESOUND
   199 lxdream_SOURCES += drivers/audio_esd.c
   200 lxdream_LDADD += @ESOUND_LIBS@
   201 endif
   203 if AUDIO_ALSA
   204 lxdream_SOURCES += drivers/audio_alsa.c
   205 lxdream_LDADD += @ALSA_LIBS@
   206 endif
   208 if INPUT_LIRC
   209 lxdream_SOURCES += drivers/input_lirc.c
   210 lxdream_LDADD += -llirc_client
   211 endif
   212 endif # end shared/static control
   214 if CDROM_LINUX
   215 lxdream_SOURCES += drivers/cd_linux.c
   216 endif
   218 if CDROM_OSX
   219 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
   220 endif
   222 if CDROM_NONE
   223 lxdream_SOURCES += drivers/cd_none.c
   224 endif
   226 if JOY_LINUX
   227 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   228 endif
   232 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   233 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   236 test_testxlt_SOURCES = test/testxlt.c xlat/xltcache.c xlat/xltcache.h
   238 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   239 	mkdir -p `dirname $@`
   240 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   241 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   242 	mkdir -p `dirname $@`
   243 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   244 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   245 	mkdir -p `dirname $@`
   246 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   247 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   248 	mkdir -p `dirname $@`
   249 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   250 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   251 	mkdir -p `dirname $@`
   252 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   253 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   254 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.