Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 539:75f3e594d4a7
prev537:d924be49e192
next545:fdcdcd8b9fd1
author nkeynes
date Wed Nov 21 11:40:15 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add support for the darwin ABI
file annotate diff log raw
nkeynes@1
     1
## Process this file with automake to produce Makefile.in
nkeynes@1
     2
nkeynes@1
     3
INCLUDES = \
nkeynes@1
     4
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
nkeynes@1
     5
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
nkeynes@450
     6
	-DPACKAGE_CONF_DIR=\""$(sysconfdir)"\" \
nkeynes@1
     7
        -Ish4 \
nkeynes@537
     8
	@GTK_CFLAGS@ @LIBPNG_CFLAGS@ @ESOUND_CFLAGS@
nkeynes@1
     9
nkeynes@516
    10
bin_PROGRAMS = lxdream
nkeynes@516
    11
noinst_PROGRAMS = gendec genglsl
nkeynes@359
    12
nkeynes@405
    13
BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c drivers/gl_slsrc.c
nkeynes@359
    14
nkeynes@359
    15
gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
nkeynes@405
    16
genglsl_SOURCES = tools/genglsl.c
nkeynes@1
    17
nkeynes@180
    18
lxdream_SOURCES = \
nkeynes@450
    19
        main.c config.c config.h \
nkeynes@43
    20
        mem.c mem.h mmio.h watch.c \
nkeynes@24
    21
        asic.c asic.h \
nkeynes@103
    22
        syscall.c syscall.h bios.c dcload.c \
nkeynes@342
    23
        gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
nkeynes@492
    24
	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
nkeynes@265
    25
        dreamcast.c dreamcast.h eventq.c eventq.h \
nkeynes@378
    26
        sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
nkeynes@2
    27
        sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
nkeynes@526
    28
        sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
nkeynes@526
    29
	sh4/xltcache.c sh4/xltcache.h \
nkeynes@11
    30
        aica/armcore.c aica/armcore.h aica/armdasm.c aica/armmem.c \
nkeynes@67
    31
        aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
nkeynes@284
    32
	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c \
nkeynes@222
    33
	pvr2/tacore.c pvr2/render.c pvr2/rendcore.c pvr2/rendbkg.c pvr2/rendsort.c \
nkeynes@295
    34
	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c \
nkeynes@25
    35
        maple/maple.c maple/maple.h \
nkeynes@24
    36
        maple/controller.c maple/controller.h \
nkeynes@94
    37
        loader.c bootstrap.c util.c \
nkeynes@144
    38
	display.c display.h \
nkeynes@537
    39
	drivers/audio_null.c drivers/video_null.c \
nkeynes@405
    40
	drivers/gl_common.c drivers/gl_common.h drivers/gl_fbo.c \
nkeynes@405
    41
	drivers/gl_sl.c drivers/gl_slsrc.c
nkeynes@1
    42
nkeynes@526
    43
if BUILD_SH4X86
nkeynes@539
    44
lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
nkeynes@539
    45
        sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
nkeynes@526
    46
        sh4/sh4trans.c sh4/sh4trans.h \
nkeynes@526
    47
        x86dasm/x86dasm.c x86dasm/x86dasm.h \
nkeynes@526
    48
        x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c
nkeynes@526
    49
endif
nkeynes@526
    50
nkeynes@537
    51
if GUI_GTK
nkeynes@537
    52
lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
nkeynes@537
    53
	gtkui/main_win.c gtkui/gtkcb.c \
nkeynes@537
    54
        gtkui/mmio_win.c gtkui/debug_win.c gtkui/dump_win.c \
nkeynes@537
    55
        gtkui/ctrl_dlg.c gtkui/path_dlg.c gtkui/gdrom_menu.c \
nkeynes@537
    56
        drivers/video_gtk.c drivers/video_gtk.h \
nkeynes@537
    57
	drivers/video_x11.c drivers/video_x11.h
nkeynes@537
    58
endif
nkeynes@537
    59
nkeynes@489
    60
if CDROM_LINUX
nkeynes@520
    61
lxdream_SOURCES += drivers/cd_linux.c
nkeynes@489
    62
else
nkeynes@520
    63
lxdream_SOURCES += drivers/cd_none.c
nkeynes@489
    64
endif
nkeynes@489
    65
nkeynes@529
    66
if AUDIO_ESOUND
nkeynes@529
    67
lxdream_SOURCES += drivers/audio_esd.c
nkeynes@529
    68
endif
nkeynes@529
    69
nkeynes@537
    70
lxdream_LDADD = @GTK_LIBS@ @LIBPNG_LIBS@ @ESOUND_LIBS@ $(INTLLIBS)
nkeynes@1
    71
nkeynes@537
    72
gendec_LDADD = @GTK_LIBS@ $(INTLLIBS)
nkeynes@537
    73
genglsl_LDADD = @GTK_LIBS@ $(INTLLIBS)
nkeynes@359
    74
nkeynes@359
    75
TESTS = test/testxlt
nkeynes@359
    76
nkeynes@363
    77
check_PROGRAMS = test/testxlt test/testsh4x86
nkeynes@359
    78
nkeynes@516
    79
test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
nkeynes@359
    80
nkeynes@363
    81
test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
nkeynes@363
    82
	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
nkeynes@363
    83
	x86dasm/dis-buf.c \
nkeynes@363
    84
	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
nkeynes@363
    85
	sh4/xltcache.h mem.c util.c
nkeynes@363
    86
test_testsh4x86_LDADD = @PACKAGE_LIBS@
nkeynes@363
    87
nkeynes@1
    88
AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE 
nkeynes@359
    89
nkeynes@359
    90
sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
nkeynes@359
    91
	./gendec sh4/sh4.def sh4/sh4core.in -o sh4/sh4core.c
nkeynes@359
    92
sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
nkeynes@359
    93
	./gendec sh4/sh4.def sh4/sh4dasm.in -o sh4/sh4dasm.c
nkeynes@359
    94
sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
nkeynes@359
    95
	./gendec sh4/sh4.def sh4/sh4x86.in -o sh4/sh4x86.c
nkeynes@387
    96
sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
nkeynes@387
    97
	./gendec sh4/sh4.def sh4/sh4stat.in -o sh4/sh4stat.c
nkeynes@405
    98
drivers/gl_slsrc.c: genglsl drivers/vertex.glsl drivers/fragment.glsl
nkeynes@405
    99
	./genglsl drivers/vertex.glsl drivers/fragment.glsl drivers/gl_slsrc.c
.