Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 967:ef93b08e2166
prev964:f2f3c7612d06
next985:52e64faac752
author nkeynes
date Mon Feb 09 00:13:46 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Fail cleanly if the display doesn't actually support GLX, rather than crashing horribly
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
    34 lxdream_LINK = $(LINK)
    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 sdram.c 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 	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 sh4/mmux86.c \
    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/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
    80 	sh4/xltcache.h mem.c util.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.m cocoaui/cocoaui.h \
    95 	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
    96 	cocoaui/cocoa_path.m cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
    97 	drivers/video_osx.m drivers/mac_keymap.h drivers/mac_keymap.txt
    98 else
    99 lxdream_SOURCES += paths_unix.c
   100 endif
   102 if VIDEO_OSMESA
   103 lxdream_SOURCES += drivers/video_gdk.c
   104 endif
   106 if VIDEO_GLX 
   107 lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
   108 endif
   110 if VIDEO_NSGL
   111 lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
   112 endif
   114 if AUDIO_OSX
   115 lxdream_SOURCES += drivers/audio_osx.m
   116 endif
   118 if AUDIO_PULSE
   119 lxdream_SOURCES += drivers/audio_pulse.c
   120 endif
   122 if AUDIO_ESOUND
   123 lxdream_SOURCES += drivers/audio_esd.c
   124 endif
   126 if AUDIO_ALSA
   127 lxdream_SOURCES += drivers/audio_alsa.c
   128 endif
   131 if CDROM_LINUX
   132 lxdream_SOURCES += drivers/cd_linux.c
   133 endif
   135 if CDROM_OSX
   136 lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
   137 endif
   139 if CDROM_NONE
   140 lxdream_SOURCES += drivers/cd_none.c
   141 endif
   143 if JOY_LINUX
   144 lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
   145 endif
   148 lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ $(INTLLIBS)
   150 gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   151 genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
   154 test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
   156 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
   157 	mkdir -p `dirname $@`
   158 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
   159 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
   160 	mkdir -p `dirname $@`
   161 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
   162 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
   163 	mkdir -p `dirname $@`
   164 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
   165 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
   166 	mkdir -p `dirname $@`
   167 	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
   168 pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
   169 	mkdir -p `dirname $@`
   170 	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
   171 drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
   172 	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
.