Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 842:286345299c49
prev765:4cd066048203
next850:28782ebbd01d
author nkeynes
date Tue Sep 02 11:53:50 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add sh4/pmm.c to the makefile
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 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         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
    50         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    51 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
    52 	pvr2/tacore.c pvr2/rendsort.c \
    53 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
    54 	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
    55 	pvr2/vertex.glsl pvr2/fragment.glsl \
    56         maple/maple.c maple/maple.h \
    57         maple/controller.c maple/controller.h maple/kbd.c maple/mouse.c \
    58         loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
    59 	display.c display.h dckeysyms.h \
    60 	drivers/audio_null.c drivers/video_null.c \
    61 	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
    62 	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
    65 if BUILD_SH4X86
    66 lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
    67         sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
    68         sh4/sh4trans.c sh4/sh4trans.h \
    69         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    70         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    71         x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
    72         x86dasm/symcat.h x86dasm/sysdep.h
    74 test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    75 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    76 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    77 	x86dasm/dis-buf.c \
    78 	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
    79 	sh4/xltcache.h mem.c util.c sh4/mmu.c
    81 check_PROGRAMS += test/testsh4x86
    82 endif
    84 if GUI_GTK
    85 lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
    86 	gtkui/gtk_win.c gtkui/gtkcb.c \
    87         gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
    88         gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
    89         drivers/video_gtk.c
    90 endif
    92 if GUI_COCOA
    93 lxdream_SOURCES += cocoaui/cocoaui.c cocoaui/cocoaui.h \
    94 	cocoaui/cocoa_win.c cocoaui/cocoa_gd.c cocoaui/cocoa_prefs.c \
    95 	cocoaui/cocoa_path.c cocoaui/cocoa_ctrl.c \
    96 	drivers/video_osx.c drivers/mac_keymap.h drivers/mac_keymap.txt
    97 endif
    99 if VIDEO_OSMESA
   100 lxdream_SOURCES += drivers/video_gdk.c
   101 endif
   103 if VIDEO_GLX 
   104 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   105 endif
   107 if VIDEO_NSGL
   108 lxdream_SOURCES += drivers/video_nsgl.c drivers/video_nsgl.h
   109 endif
   111 if AUDIO_OSX
   112 lxdream_SOURCES += drivers/audio_osx.c
   113 endif
   115 if AUDIO_PULSE
   116 lxdream_SOURCES += drivers/audio_pulse.c
   117 endif
   119 if AUDIO_ESOUND
   120 lxdream_SOURCES += drivers/audio_esd.c
   121 endif
   123 if AUDIO_ALSA
   124 lxdream_SOURCES += drivers/audio_alsa.c
   125 endif
   128 if CDROM_LINUX
   129 lxdream_SOURCES += drivers/cd_linux.c
   130 endif
   132 if CDROM_OSX
   133 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c drivers/osx_iokit.h
   134 endif
   136 if CDROM_NONE
   137 lxdream_SOURCES += drivers/cd_none.c
   138 endif
   140 if JOY_LINUX
   141 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   142 endif
   145 lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ $(INTLLIBS)
   147 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   148 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   151 test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
   153 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   154 	mkdir -p `dirname $@`
   155 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   156 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   157 	mkdir -p `dirname $@`
   158 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   159 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   160 	mkdir -p `dirname $@`
   161 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   162 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   163 	mkdir -p `dirname $@`
   164 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   165 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   166 	mkdir -p `dirname $@`
   167 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   168 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   169 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.