Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 1006:3a169c224c12
prev998:1754a8c6a9cf
next1011:fdd58619b760
author nkeynes
date Tue Apr 07 10:55:03 2009 +0000 (11 years ago)
branchxlat-refactor
permissions -rw-r--r--
last change Commit current work-in-progress to xlat-refactor branch
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 bin_PROGRAMS = lxdream
    12 noinst_PROGRAMS = gendec genglsl
    13 check_PROGRAMS = test/testxlt
    17 EXTRA_DIST=drivers/genkeymap.pl checkver.pl
    18 AM_CFLAGS = -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE
    20 .PHONY: checkversion
    21 checkversion:
    22 	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
    24 version.c: checkversion
    26 TESTS = test/testxlt
    27 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    28 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    29 CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    30 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    32 #all-am: checkversion
    34 gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
    35 genglsl_SOURCES = tools/genglsl.c
    36 lxdream_LINK = $(LINK)
    37 lxdream_SOURCES = \
    38         main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
    39         gettext.h mem.c mem.h sdram.c mmio.h watch.c \
    40         asic.c asic.h clock.h serial.h \
    41         syscall.c syscall.h bios.c dcload.c gdbserver.c \
    42         netutil.c netutil.h \
    43         gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
    44 	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
    45 	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
    46 	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
    47         dreamcast.c dreamcast.h eventq.c eventq.h \
    48         sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
    49         sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
    50         sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
    51 	xlat/xltcache.c xlat/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
    52 	sh4/cache.c sh4/mmu.h \
    53         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
    54         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    55 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
    56 	pvr2/tacore.c pvr2/rendsort.c \
    57 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
    58 	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
    59 	pvr2/vertex.glsl pvr2/fragment.glsl \
    60         maple/maple.c maple/maple.h \
    61         maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c \
    62         loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
    63 	display.c display.h dckeysyms.h \
    64 	drivers/audio_null.c drivers/video_null.c \
    65 	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
    66 	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
    69 if BUILD_SH4X86
    70 lxdream_SOURCES += sh4/sh4x86.c xlat/x86/x86op.h \
    71         xlat/x86/ia32abi.h xlat/x86/amd64abi.h \
    72         sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \
    73         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    74         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    75         x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
    76         x86dasm/symcat.h x86dasm/sysdep.h
    78 test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    79 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    80 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    81 	x86dasm/dis-buf.c \
    82 	sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c \
    83 	xlat/xltcache.h mem.c util.c 
    85 test_testsh4xir_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    86 test_testsh4xir_SOURCES = test/testsh4xir.c xlat/xir.c xlat/xir.h sh4/sh4xir.c xlat/x86/x86target.c xlat/x86/x86gen.c
    88 test_testxir_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    89 test_testxir_SOURCES = test/testxir.c xlat/xir.c xlat/xir.h xlat/xirsup.c xlat/xiropt.c xlat/xiropt.h
    91 check_PROGRAMS += test/testsh4x86 test/testsh4xir test/testxir
    92 endif
    94 if GUI_GTK
    95 lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
    96 	gtkui/gtk_win.c gtkui/gtkcb.c \
    97         gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
    98         gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
    99         drivers/net_glib.c drivers/video_gtk.c
   100 endif
   102 if GUI_COCOA
   103 lxdream_SOURCES += cocoaui/cocoaui.m cocoaui/cocoaui.h \
   104 	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
   105 	cocoaui/cocoa_path.m cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
   106 	drivers/net_osx.m drivers/video_osx.m \
   107 	drivers/mac_keymap.h drivers/mac_keymap.txt
   108 else
   109 lxdream_SOURCES += paths_unix.c
   110 endif
   112 if VIDEO_OSMESA
   113 lxdream_SOURCES += drivers/video_gdk.c
   114 endif
   116 if VIDEO_GLX 
   117 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   118 endif
   120 if VIDEO_NSGL
   121 lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
   122 endif
   124 if AUDIO_OSX
   125 lxdream_SOURCES += drivers/audio_osx.m
   126 endif
   128 if AUDIO_SDL
   129 lxdream_SOURCES += drivers/audio_sdl.c
   130 endif
   132 if AUDIO_PULSE
   133 lxdream_SOURCES += drivers/audio_pulse.c
   134 endif
   136 if AUDIO_ESOUND
   137 lxdream_SOURCES += drivers/audio_esd.c
   138 endif
   140 if AUDIO_ALSA
   141 lxdream_SOURCES += drivers/audio_alsa.c
   142 endif
   145 if CDROM_LINUX
   146 lxdream_SOURCES += drivers/cd_linux.c
   147 endif
   149 if CDROM_OSX
   150 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
   151 endif
   153 if CDROM_NONE
   154 lxdream_SOURCES += drivers/cd_none.c
   155 endif
   157 if JOY_LINUX
   158 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   159 endif
   162 lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ @SDL_LIBS@ $(INTLLIBS)
   164 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   165 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   168 test_testxlt_SOURCES = test/testxlt.c xlat/xltcache.c xlat/xltcache.h
   170 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   171 	mkdir -p `dirname $@`
   172 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   173 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   174 	mkdir -p `dirname $@`
   175 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   176 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   177 	mkdir -p `dirname $@`
   178 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   179 sh4/sh4xir.c: gendec sh4/sh4.def sh4/sh4xir.in
   180 	mkdir -p `dirname $@`
   181 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4xir.in -o $@
   182 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   183 	mkdir -p `dirname $@`
   184 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   185 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   186 	mkdir -p `dirname $@`
   187 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   188 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   189 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.