Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 998:1754a8c6a9cf
prev993:f59ebcf41f5d
next1006:3a169c224c12
next1015:ad448bedc48a
author nkeynes
date Tue Mar 24 11:15:57 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Add preliminary implementation of the GDB remote debugging server - attaches to
either or both the SH4 and ARM
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
    16 EXTRA_DIST=drivers/genkeymap.pl checkver.pl
    17 AM_CFLAGS = -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE
    19 .PHONY: checkversion
    20 checkversion:
    21 	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
    23 version.c: checkversion
    25 TESTS = test/testxlt
    26 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    27 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    28 CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
    29 	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
    31 #all-am: checkversion
    33 gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
    34 genglsl_SOURCES = tools/genglsl.c
    35 lxdream_LINK = $(LINK)
    36 lxdream_SOURCES = \
    37         main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
    38         gettext.h mem.c mem.h sdram.c mmio.h watch.c \
    39         asic.c asic.h clock.h serial.h \
    40         syscall.c syscall.h bios.c dcload.c gdbserver.c \
    41         netutil.c netutil.h \
    42         gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
    43 	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
    44 	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
    45 	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
    46         dreamcast.c dreamcast.h eventq.c eventq.h \
    47         sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
    48         sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
    49         sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
    50 	xlat/xltcache.c xlat/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
    51 	sh4/cache.c sh4/mmu.h \
    52         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
    53         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    54 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
    55 	pvr2/tacore.c pvr2/rendsort.c \
    56 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
    57 	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
    58 	pvr2/vertex.glsl pvr2/fragment.glsl \
    59         maple/maple.c maple/maple.h \
    60         maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c \
    61         loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
    62 	display.c display.h dckeysyms.h \
    63 	drivers/audio_null.c drivers/video_null.c \
    64 	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
    65 	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
    68 if BUILD_SH4X86
    69 lxdream_SOURCES += sh4/sh4x86.c xlat/x86/x86op.h \
    70         xlat/x86/ia32abi.h xlat/x86/amd64abi.h \
    71         sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \
    72         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    73         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    74         x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
    75         x86dasm/symcat.h x86dasm/sysdep.h
    77 test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
    78 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    79 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    80 	x86dasm/dis-buf.c \
    81 	sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c \
    82 	xlat/xltcache.h mem.c util.c 
    84 check_PROGRAMS += test/testsh4x86
    85 endif
    87 if GUI_GTK
    88 lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
    89 	gtkui/gtk_win.c gtkui/gtkcb.c \
    90         gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
    91         gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
    92         drivers/net_glib.c drivers/video_gtk.c
    93 endif
    95 if GUI_COCOA
    96 lxdream_SOURCES += cocoaui/cocoaui.m cocoaui/cocoaui.h \
    97 	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
    98 	cocoaui/cocoa_path.m cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
    99 	drivers/net_osx.m drivers/video_osx.m \
   100 	drivers/mac_keymap.h drivers/mac_keymap.txt
   101 else
   102 lxdream_SOURCES += paths_unix.c
   103 endif
   105 if VIDEO_OSMESA
   106 lxdream_SOURCES += drivers/video_gdk.c
   107 endif
   109 if VIDEO_GLX 
   110 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   111 endif
   113 if VIDEO_NSGL
   114 lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
   115 endif
   117 if AUDIO_OSX
   118 lxdream_SOURCES += drivers/audio_osx.m
   119 endif
   121 if AUDIO_SDL
   122 lxdream_SOURCES += drivers/audio_sdl.c
   123 endif
   125 if AUDIO_PULSE
   126 lxdream_SOURCES += drivers/audio_pulse.c
   127 endif
   129 if AUDIO_ESOUND
   130 lxdream_SOURCES += drivers/audio_esd.c
   131 endif
   133 if AUDIO_ALSA
   134 lxdream_SOURCES += drivers/audio_alsa.c
   135 endif
   138 if CDROM_LINUX
   139 lxdream_SOURCES += drivers/cd_linux.c
   140 endif
   142 if CDROM_OSX
   143 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
   144 endif
   146 if CDROM_NONE
   147 lxdream_SOURCES += drivers/cd_none.c
   148 endif
   150 if JOY_LINUX
   151 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   152 endif
   155 lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ @SDL_LIBS@ $(INTLLIBS)
   157 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   158 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   161 test_testxlt_SOURCES = test/testxlt.c xlat/xltcache.c xlat/xltcache.h
   163 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   164 	mkdir -p `dirname $@`
   165 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   166 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   167 	mkdir -p `dirname $@`
   168 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   169 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   170 	mkdir -p `dirname $@`
   171 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   172 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   173 	mkdir -p `dirname $@`
   174 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   175 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   176 	mkdir -p `dirname $@`
   177 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   178 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   179 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.