Search
lxdream.org :: lxdream/src/Makefile.am :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 731:ee2e929cca3a
prev725:4d4018e8eeb8
next738:0cbff49086b8
author nkeynes
date Tue Jul 08 12:29:53 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Fixup out-of-tree builds to work properly, mostly fix dist target
file annotate diff log raw
1.1 --- a/src/Makefile.am Sun Jul 06 03:18:55 2008 +0000
1.2 +++ b/src/Makefile.am Tue Jul 08 12:29:53 2008 +0000
1.3 @@ -11,6 +11,7 @@
1.4 noinst_PROGRAMS = gendec genglsl
1.5 check_PROGRAMS = test/testxlt
1.6
1.7 +EXTRA_DIST=drivers/genkeymap.pl
1.8 AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE
1.9 TESTS = test/testxlt
1.10 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c pvr2/gl_slsrc.c drivers/mac_keymap.h
1.11 @@ -19,38 +20,43 @@
1.12 genglsl_SOURCES = tools/genglsl.c
1.13
1.14 lxdream_SOURCES = \
1.15 - main.c config.c config.h \
1.16 + main.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
1.17 mem.c mem.h mmio.h watch.c \
1.18 - asic.c asic.h \
1.19 + asic.c asic.h clock.h serial.h \
1.20 syscall.c syscall.h bios.c dcload.c \
1.21 gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
1.22 gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
1.23 gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
1.24 - gdrom/edc_l2sq.h gdrom/scramble.h gdrom/mmc.c \
1.25 + gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
1.26 dreamcast.c dreamcast.h eventq.c eventq.h \
1.27 sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
1.28 sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
1.29 sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
1.30 - sh4/xltcache.c sh4/xltcache.h sh4/sh4.h \
1.31 - aica/armcore.c aica/armcore.h aica/armdasm.c aica/armmem.c \
1.32 + sh4/xltcache.c sh4/xltcache.h sh4/sh4.h sh4/dmac.h \
1.33 + aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
1.34 aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
1.35 - pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c \
1.36 + pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
1.37 pvr2/tacore.c pvr2/rendsort.c \
1.38 pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
1.39 pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
1.40 + pvr2/vertex.glsl pvr2/fragment.glsl \
1.41 maple/maple.c maple/maple.h \
1.42 maple/controller.c maple/controller.h maple/kbd.c maple/mouse.c \
1.43 - loader.c bootstrap.c util.c gdlist.c gdlist.h \
1.44 + loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
1.45 display.c display.h dckeysyms.h \
1.46 drivers/audio_null.c drivers/video_null.c \
1.47 - drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c
1.48 + drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
1.49 + sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
1.50 +
1.51
1.52 if BUILD_SH4X86
1.53 lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
1.54 sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
1.55 sh4/sh4trans.c sh4/sh4trans.h \
1.56 x86dasm/x86dasm.c x86dasm/x86dasm.h \
1.57 - x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c
1.58 + x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
1.59 + x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/config.h x86dasm/dis-asm.h \
1.60 + x86dasm/opintl.h x86dasm/symcat.h x86dasm/sysdep.h
1.61
1.62 test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
1.63 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
1.64 @@ -67,17 +73,17 @@
1.65 gtkui/main_win.c gtkui/gtkcb.c \
1.66 gtkui/mmio_win.c gtkui/debug_win.c gtkui/dump_win.c \
1.67 gtkui/ctrl_dlg.c gtkui/path_dlg.c gtkui/gdrom_menu.c \
1.68 - drivers/video_gtk.c drivers/video_gtk.h
1.69 + drivers/video_gtk.c
1.70 endif
1.71
1.72 if GUI_COCOA
1.73 lxdream_SOURCES += cocoaui/cocoaui.c cocoaui/cocoaui.h \
1.74 cocoaui/cocoa_win.c cocoaui/cocoa_gd.c cocoaui/cocoa_prefs.c \
1.75 - drivers/video_osx.c drivers/mac_keymap.h
1.76 + drivers/video_osx.c drivers/mac_keymap.h drivers/mac_keymap.txt
1.77 endif
1.78
1.79 if VIDEO_OSMESA
1.80 -lxdream_SOURCES += drivers/video_gdk.c drivers/video_gdk.h
1.81 +lxdream_SOURCES += drivers/video_gdk.c
1.82 endif
1.83
1.84 if VIDEO_GLX
1.85 @@ -110,7 +116,7 @@
1.86 endif
1.87
1.88 if CDROM_OSX
1.89 -lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c
1.90 +lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c drivers/osx_iokit.h
1.91 endif
1.92
1.93 if CDROM_NONE
1.94 @@ -131,15 +137,20 @@
1.95 test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
1.96
1.97 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
1.98 - ./gendec sh4/sh4.def sh4/sh4core.in -o sh4/sh4core.c
1.99 + mkdir -p `dirname $@`
1.100 + ./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
1.101 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
1.102 - ./gendec sh4/sh4.def sh4/sh4dasm.in -o sh4/sh4dasm.c
1.103 + mkdir -p `dirname $@`
1.104 + ./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
1.105 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
1.106 - ./gendec sh4/sh4.def sh4/sh4x86.in -o sh4/sh4x86.c
1.107 + mkdir -p `dirname $@`
1.108 + ./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
1.109 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
1.110 - ./gendec sh4/sh4.def sh4/sh4stat.in -o sh4/sh4stat.c
1.111 + mkdir -p `dirname $@`
1.112 + ./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
1.113 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
1.114 - ./genglsl pvr2/vertex.glsl pvr2/fragment.glsl pvr2/gl_slsrc.c
1.115 + mkdir -p `dirname $@`
1.116 + ./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
1.117 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
1.118 - drivers/genkeymap.pl mac drivers/mac_keymap.txt > drivers/mac_keymap.h
1.119 + $(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
1.120
1.121 \ No newline at end of file
.