Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 931:430048ea8b71
prev894:1ddd5616c5af
next939:6f2302afeb89
author nkeynes
date Tue Dec 23 05:48:05 2008 +0000 (12 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change More refactoring and general cleanup. Most things should be working again now.
Split off cache and start real implementation, breaking save states in the process
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_CONF_DIR=\""$(sysconfdir)"\" \
     7         -Ish4 \
     8 	@GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBPNG_CFLAGS@ @PULSE_CFLAGS@ @ESOUND_CFLAGS@ @ALSA_CFLAGS@
    10 bin_PROGRAMS = lxdream
    11 noinst_PROGRAMS = gendec genglsl
    12 check_PROGRAMS = test/testxlt
    15 EXTRA_DIST=drivers/genkeymap.pl checkver.pl
    16 AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE 
    18 .PHONY: checkversion
    19 checkversion:
    20 	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
    22 version.c: checkversion
    24 TESTS = test/testxlt
    25 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    26 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    27 CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    28 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    30 #all-am: checkversion
    32 gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
    33 genglsl_SOURCES = tools/genglsl.c
    35 lxdream_SOURCES = \
    36         main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
    37         gettext.h mem.c mem.h mmio.h paths.c watch.c \
    38         asic.c asic.h clock.h serial.h \
    39         syscall.c syscall.h bios.c dcload.c \
    40         gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
    41 	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
    42 	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
    43 	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
    44         dreamcast.c dreamcast.h eventq.c eventq.h \
    45         sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
    46         sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
    47         sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
    48 	sh4/xltcache.c sh4/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
    49 	sh4/cache.c sh4/mmu.h \
    50         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
    51         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    52 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
    53 	pvr2/tacore.c pvr2/rendsort.c \
    54 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
    55 	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
    56 	pvr2/vertex.glsl pvr2/fragment.glsl \
    57         maple/maple.c maple/maple.h \
    58         maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c \
    59         loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
    60 	display.c display.h dckeysyms.h \
    61 	drivers/audio_null.c drivers/video_null.c \
    62 	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
    63 	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
    66 if BUILD_SH4X86
    67 lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
    68         sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
    69         sh4/sh4trans.c sh4/sh4trans.h \
    70         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    71         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    72         x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
    73         x86dasm/symcat.h x86dasm/sysdep.h
    75 test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    76 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    77 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    78 	x86dasm/dis-buf.c \
    79 	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
    80 	sh4/xltcache.h mem.c util.c sh4/mmu.c
    82 check_PROGRAMS += test/testsh4x86
    83 endif
    85 if GUI_GTK
    86 lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
    87 	gtkui/gtk_win.c gtkui/gtkcb.c \
    88         gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
    89         gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
    90         drivers/video_gtk.c
    91 endif
    93 if GUI_COCOA
    94 lxdream_SOURCES += cocoaui/cocoaui.c cocoaui/cocoaui.h \
    95 	cocoaui/cocoa_win.c cocoaui/cocoa_gd.c cocoaui/cocoa_prefs.c \
    96 	cocoaui/cocoa_path.c cocoaui/cocoa_ctrl.c \
    97 	drivers/video_osx.c drivers/mac_keymap.h drivers/mac_keymap.txt
    98 endif
   100 if VIDEO_OSMESA
   101 lxdream_SOURCES += drivers/video_gdk.c
   102 endif
   104 if VIDEO_GLX 
   105 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   106 endif
   108 if VIDEO_NSGL
   109 lxdream_SOURCES += drivers/video_nsgl.c drivers/video_nsgl.h
   110 endif
   112 if AUDIO_OSX
   113 lxdream_SOURCES += drivers/audio_osx.c
   114 endif
   116 if AUDIO_PULSE
   117 lxdream_SOURCES += drivers/audio_pulse.c
   118 endif
   120 if AUDIO_ESOUND
   121 lxdream_SOURCES += drivers/audio_esd.c
   122 endif
   124 if AUDIO_ALSA
   125 lxdream_SOURCES += drivers/audio_alsa.c
   126 endif
   129 if CDROM_LINUX
   130 lxdream_SOURCES += drivers/cd_linux.c
   131 endif
   133 if CDROM_OSX
   134 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c drivers/osx_iokit.h
   135 endif
   137 if CDROM_NONE
   138 lxdream_SOURCES += drivers/cd_none.c
   139 endif
   141 if JOY_LINUX
   142 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   143 endif
   146 lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ $(INTLLIBS)
   148 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   149 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   152 test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
   154 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   155 	mkdir -p `dirname $@`
   156 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   157 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   158 	mkdir -p `dirname $@`
   159 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   160 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   161 	mkdir -p `dirname $@`
   162 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   163 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   164 	mkdir -p `dirname $@`
   165 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   166 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   167 	mkdir -p `dirname $@`
   168 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   169 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   170 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.