Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 731:ee2e929cca3a
prev725:4d4018e8eeb8
next738:0cbff49086b8
author nkeynes
date Tue Jul 08 12:29:53 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Fixup out-of-tree builds to work properly, mostly fix dist target
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@681
     8
	@GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBPNG_CFLAGS@ @PULSE_CFLAGS@ @ESOUND_CFLAGS@ @ALSA_CFLAGS@
nkeynes@1
     9
nkeynes@516
    10
bin_PROGRAMS = lxdream
nkeynes@516
    11
noinst_PROGRAMS = gendec genglsl
nkeynes@550
    12
check_PROGRAMS = test/testxlt
nkeynes@359
    13
nkeynes@731
    14
EXTRA_DIST=drivers/genkeymap.pl
nkeynes@550
    15
AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE 
nkeynes@550
    16
TESTS = test/testxlt
nkeynes@681
    17
BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c pvr2/gl_slsrc.c drivers/mac_keymap.h
nkeynes@359
    18
nkeynes@359
    19
gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
nkeynes@405
    20
genglsl_SOURCES = tools/genglsl.c
nkeynes@1
    21
nkeynes@180
    22
lxdream_SOURCES = \
nkeynes@731
    23
        main.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
nkeynes@43
    24
        mem.c mem.h mmio.h watch.c \
nkeynes@731
    25
        asic.c asic.h clock.h serial.h \
nkeynes@103
    26
        syscall.c syscall.h bios.c dcload.c \
nkeynes@342
    27
        gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
nkeynes@492
    28
	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
nkeynes@644
    29
	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
nkeynes@731
    30
	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
nkeynes@265
    31
        dreamcast.c dreamcast.h eventq.c eventq.h \
nkeynes@378
    32
        sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
nkeynes@550
    33
        sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
nkeynes@526
    34
        sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
nkeynes@731
    35
	sh4/xltcache.c sh4/xltcache.h sh4/sh4.h sh4/dmac.h \
nkeynes@731
    36
        aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
nkeynes@67
    37
        aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
nkeynes@731
    38
	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
nkeynes@687
    39
	pvr2/tacore.c pvr2/rendsort.c \
nkeynes@653
    40
	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
nkeynes@653
    41
	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
nkeynes@731
    42
	pvr2/vertex.glsl pvr2/fragment.glsl \
nkeynes@25
    43
        maple/maple.c maple/maple.h \
nkeynes@608
    44
        maple/controller.c maple/controller.h maple/kbd.c maple/mouse.c \
nkeynes@731
    45
        loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
nkeynes@608
    46
	display.c display.h dckeysyms.h \
nkeynes@537
    47
	drivers/audio_null.c drivers/video_null.c \
nkeynes@731
    48
	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
nkeynes@731
    49
	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
nkeynes@731
    50
	
nkeynes@1
    51
nkeynes@526
    52
if BUILD_SH4X86
nkeynes@539
    53
lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
nkeynes@539
    54
        sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
nkeynes@526
    55
        sh4/sh4trans.c sh4/sh4trans.h \
nkeynes@526
    56
        x86dasm/x86dasm.c x86dasm/x86dasm.h \
nkeynes@731
    57
        x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
nkeynes@731
    58
        x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/config.h x86dasm/dis-asm.h \
nkeynes@731
    59
        x86dasm/opintl.h x86dasm/symcat.h x86dasm/sysdep.h
nkeynes@550
    60
nkeynes@681
    61
test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@550
    62
test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
nkeynes@550
    63
	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
nkeynes@550
    64
	x86dasm/dis-buf.c \
nkeynes@550
    65
	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
nkeynes@586
    66
	sh4/xltcache.h mem.c util.c sh4/mmu.c
nkeynes@550
    67
nkeynes@550
    68
check_PROGRAMS += test/testsh4x86
nkeynes@526
    69
endif
nkeynes@526
    70
nkeynes@537
    71
if GUI_GTK
nkeynes@537
    72
lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
nkeynes@537
    73
	gtkui/main_win.c gtkui/gtkcb.c \
nkeynes@537
    74
        gtkui/mmio_win.c gtkui/debug_win.c gtkui/dump_win.c \
nkeynes@537
    75
        gtkui/ctrl_dlg.c gtkui/path_dlg.c gtkui/gdrom_menu.c \
nkeynes@731
    76
        drivers/video_gtk.c
nkeynes@537
    77
endif
nkeynes@537
    78
nkeynes@681
    79
if GUI_COCOA
nkeynes@681
    80
lxdream_SOURCES += cocoaui/cocoaui.c cocoaui/cocoaui.h \
nkeynes@725
    81
	cocoaui/cocoa_win.c cocoaui/cocoa_gd.c cocoaui/cocoa_prefs.c \
nkeynes@731
    82
	drivers/video_osx.c drivers/mac_keymap.h drivers/mac_keymap.txt
nkeynes@681
    83
endif
nkeynes@681
    84
nkeynes@658
    85
if VIDEO_OSMESA
nkeynes@731
    86
lxdream_SOURCES += drivers/video_gdk.c
nkeynes@489
    87
endif
nkeynes@489
    88
nkeynes@658
    89
if VIDEO_GLX 
nkeynes@658
    90
lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
nkeynes@658
    91
endif
nkeynes@658
    92
nkeynes@658
    93
if VIDEO_NSGL
nkeynes@658
    94
lxdream_SOURCES += drivers/video_nsgl.c drivers/video_nsgl.h
nkeynes@614
    95
endif
nkeynes@614
    96
nkeynes@697
    97
if AUDIO_OSX
nkeynes@697
    98
lxdream_SOURCES += drivers/audio_osx.c
nkeynes@697
    99
endif
nkeynes@697
   100
nkeynes@657
   101
if AUDIO_PULSE
nkeynes@657
   102
lxdream_SOURCES += drivers/audio_pulse.c
nkeynes@657
   103
endif
nkeynes@657
   104
nkeynes@529
   105
if AUDIO_ESOUND
nkeynes@529
   106
lxdream_SOURCES += drivers/audio_esd.c
nkeynes@529
   107
endif
nkeynes@529
   108
bhaal22@643
   109
if AUDIO_ALSA
bhaal22@643
   110
lxdream_SOURCES += drivers/audio_alsa.c
bhaal22@643
   111
endif
bhaal22@643
   112
nkeynes@658
   113
nkeynes@658
   114
if CDROM_LINUX
nkeynes@658
   115
lxdream_SOURCES += drivers/cd_linux.c
nkeynes@709
   116
endif
nkeynes@709
   117
nkeynes@709
   118
if CDROM_OSX
nkeynes@731
   119
lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c drivers/osx_iokit.h
nkeynes@709
   120
endif
nkeynes@709
   121
nkeynes@709
   122
if CDROM_NONE
nkeynes@658
   123
lxdream_SOURCES += drivers/cd_none.c
nkeynes@658
   124
endif
nkeynes@658
   125
nkeynes@658
   126
if JOY_LINUX
nkeynes@658
   127
lxdream_SOURCES += drivers/joy_linux.c
nkeynes@658
   128
endif
nkeynes@658
   129
nkeynes@658
   130
nkeynes@681
   131
lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ $(INTLLIBS)
nkeynes@1
   132
nkeynes@681
   133
gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@681
   134
genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@359
   135
nkeynes@359
   136
nkeynes@516
   137
test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
nkeynes@359
   138
nkeynes@359
   139
sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
nkeynes@731
   140
	mkdir -p `dirname $@`
nkeynes@731
   141
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
nkeynes@359
   142
sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
nkeynes@731
   143
	mkdir -p `dirname $@`
nkeynes@731
   144
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
nkeynes@359
   145
sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
nkeynes@731
   146
	mkdir -p `dirname $@`
nkeynes@731
   147
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
nkeynes@387
   148
sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
nkeynes@731
   149
	mkdir -p `dirname $@`
nkeynes@731
   150
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
nkeynes@653
   151
pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
nkeynes@731
   152
	mkdir -p `dirname $@`
nkeynes@731
   153
	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
nkeynes@681
   154
drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
nkeynes@731
   155
	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
nkeynes@681
   156
	
.