Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 489:45c8ddcf52cb
prev464:8e099fad42a6
next492:84e33e4dda1c
author nkeynes
date Sun Nov 04 05:07:49 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Test for presence of linux/cdrom.h at configure time, and only build the
linux driver if it's found successfully
view annotate diff log raw
     1 ## Process this file with automake to produce Makefile.in
     3 INCLUDES = \
     4 	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
     5 	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
     6 	-DPACKAGE_CONF_DIR=\""$(sysconfdir)"\" \
     7         -Ish4 \
     8 	@PACKAGE_CFLAGS@
    10 bin_PROGRAMS = gendec genglsl lxdream
    12 BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c drivers/gl_slsrc.c
    14 gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
    15 genglsl_SOURCES = tools/genglsl.c
    17 lxdream_SOURCES = \
    18         main.c config.c config.h \
    19         mem.c mem.h mmio.h watch.c \
    20         asic.c asic.h \
    21         syscall.c syscall.h bios.c dcload.c \
    22         gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
    23 	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c \
    24         dreamcast.c dreamcast.h eventq.c eventq.h \
    25         sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
    26         sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
    27         sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/xltcache.c sh4/xltcache.h \
    28         sh4/sh4trans.c sh4/sh4trans.h sh4/sh4x86.c sh4/sh4stat.c sh4/sh4stat.h \
    29         x86dasm/x86dasm.c x86dasm/x86dasm.h \
    30         x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
    31         aica/armcore.c aica/armcore.h aica/armdasm.c aica/armmem.c \
    32         aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
    33 	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c \
    34 	pvr2/tacore.c pvr2/render.c pvr2/rendcore.c pvr2/rendbkg.c pvr2/rendsort.c \
    35 	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c \
    36         maple/maple.c maple/maple.h \
    37         maple/controller.c maple/controller.h \
    38         gui/gtkui.c gui/gtkui.h gui/main_win.c gui/gtkcb.c \
    39         gui/mmio_win.c gui/debug_win.c gui/dump_win.c \
    40         gui/ctrl_dlg.c gui/path_dlg.c gui/gdrom_menu.c \
    41         loader.c bootstrap.c util.c \
    42 	display.c display.h \
    43 	drivers/audio_null.c drivers/audio_esd.c \
    44 	drivers/video_null.c drivers/video_gtk.c drivers/video_gtk.h \
    45 	drivers/video_x11.c drivers/video_x11.h \
    46 	drivers/gl_common.c drivers/gl_common.h drivers/gl_fbo.c \
    47 	drivers/gl_sl.c drivers/gl_slsrc.c
    49 if CDROM_LINUX
    50 lxdream_SOURCES += gdrom/linux.c
    51 else
    52 lxdream_SOURCES += gdrom/cdnone.c
    53 endif
    55 lxdream_LDADD = @PACKAGE_LIBS@ $(INTLLIBS) -lesd
    57 gendec_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
    58 genglsl_LDADD = @PACKAGE_LIBS@ $(INTLLIBS)
    60 TESTS = test/testxlt
    62 check_PROGRAMS = test/testxlt test/testsh4x86
    64 test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h 
    66 test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
    67 	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
    68 	x86dasm/dis-buf.c \
    69 	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
    70 	sh4/xltcache.h mem.c util.c
    71 test_testsh4x86_LDADD = @PACKAGE_LIBS@
    73 AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE 
    75 sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
    76 	./gendec sh4/sh4.def sh4/sh4core.in -o sh4/sh4core.c
    77 sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
    78 	./gendec sh4/sh4.def sh4/sh4dasm.in -o sh4/sh4dasm.c
    79 sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
    80 	./gendec sh4/sh4.def sh4/sh4x86.in -o sh4/sh4x86.c
    81 sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
    82 	./gendec sh4/sh4.def sh4/sh4stat.in -o sh4/sh4stat.c
    83 drivers/gl_slsrc.c: genglsl drivers/vertex.glsl drivers/fragment.glsl
    84 	./genglsl drivers/vertex.glsl drivers/fragment.glsl drivers/gl_slsrc.c
.