Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 842:286345299c49
prev765:4cd066048203
next850:28782ebbd01d
author nkeynes
date Tue Sep 02 11:53:50 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Add sh4/pmm.c to the makefile
file annotate diff log raw
nkeynes@1
     1
## Process this file with automake to produce Makefile.in
nkeynes@738
     2
SVNVERSION=@SVNVERSION@
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@738
    14
nkeynes@738
    15
EXTRA_DIST=drivers/genkeymap.pl checkver.pl
nkeynes@550
    16
AM_CFLAGS = -D_ISOC99_SOURCE -D_BSD_SOURCE 
nkeynes@738
    17
nkeynes@738
    18
.PHONY: checkversion
nkeynes@738
    19
checkversion:
nkeynes@738
    20
	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
nkeynes@738
    21
nkeynes@738
    22
version.c: checkversion
nkeynes@738
    23
nkeynes@550
    24
TESTS = test/testxlt
nkeynes@749
    25
BUILT_SOURCES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
nkeynes@749
    26
	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
nkeynes@749
    27
CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
nkeynes@749
    28
	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
nkeynes@738
    29
nkeynes@738
    30
#all-am: checkversion
nkeynes@359
    31
nkeynes@359
    32
gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
nkeynes@405
    33
genglsl_SOURCES = tools/genglsl.c
nkeynes@1
    34
nkeynes@180
    35
lxdream_SOURCES = \
nkeynes@738
    36
        main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
nkeynes@762
    37
        gettext.h mem.c mem.h mmio.h watch.c \
nkeynes@731
    38
        asic.c asic.h clock.h serial.h \
nkeynes@103
    39
        syscall.c syscall.h bios.c dcload.c \
nkeynes@342
    40
        gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
nkeynes@492
    41
	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
nkeynes@644
    42
	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
nkeynes@731
    43
	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
nkeynes@265
    44
        dreamcast.c dreamcast.h eventq.c eventq.h \
nkeynes@378
    45
        sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
nkeynes@550
    46
        sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
nkeynes@526
    47
        sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
nkeynes@842
    48
	sh4/xltcache.c sh4/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
nkeynes@731
    49
        aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
nkeynes@67
    50
        aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
nkeynes@731
    51
	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
nkeynes@687
    52
	pvr2/tacore.c pvr2/rendsort.c \
nkeynes@653
    53
	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
nkeynes@653
    54
	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
nkeynes@731
    55
	pvr2/vertex.glsl pvr2/fragment.glsl \
nkeynes@25
    56
        maple/maple.c maple/maple.h \
nkeynes@608
    57
        maple/controller.c maple/controller.h maple/kbd.c maple/mouse.c \
nkeynes@731
    58
        loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
nkeynes@608
    59
	display.c display.h dckeysyms.h \
nkeynes@537
    60
	drivers/audio_null.c drivers/video_null.c \
nkeynes@731
    61
	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
nkeynes@731
    62
	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
nkeynes@731
    63
	
nkeynes@1
    64
nkeynes@526
    65
if BUILD_SH4X86
nkeynes@539
    66
lxdream_SOURCES += sh4/sh4x86.c sh4/x86op.h \
nkeynes@539
    67
        sh4/ia32abi.h sh4/ia32mac.h sh4/ia64abi.h \
nkeynes@526
    68
        sh4/sh4trans.c sh4/sh4trans.h \
nkeynes@526
    69
        x86dasm/x86dasm.c x86dasm/x86dasm.h \
nkeynes@731
    70
        x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
nkeynes@762
    71
        x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
nkeynes@762
    72
        x86dasm/symcat.h x86dasm/sysdep.h
nkeynes@550
    73
nkeynes@681
    74
test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@550
    75
test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
nkeynes@550
    76
	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
nkeynes@550
    77
	x86dasm/dis-buf.c \
nkeynes@550
    78
	sh4/sh4dasm.c sh4/sh4trans.c sh4/sh4x86.c sh4/xltcache.c \
nkeynes@586
    79
	sh4/xltcache.h mem.c util.c sh4/mmu.c
nkeynes@550
    80
nkeynes@550
    81
check_PROGRAMS += test/testsh4x86
nkeynes@526
    82
endif
nkeynes@526
    83
nkeynes@537
    84
if GUI_GTK
nkeynes@537
    85
lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
nkeynes@763
    86
	gtkui/gtk_win.c gtkui/gtkcb.c \
nkeynes@763
    87
        gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
nkeynes@763
    88
        gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
nkeynes@731
    89
        drivers/video_gtk.c
nkeynes@537
    90
endif
nkeynes@537
    91
nkeynes@681
    92
if GUI_COCOA
nkeynes@681
    93
lxdream_SOURCES += cocoaui/cocoaui.c cocoaui/cocoaui.h \
nkeynes@725
    94
	cocoaui/cocoa_win.c cocoaui/cocoa_gd.c cocoaui/cocoa_prefs.c \
nkeynes@765
    95
	cocoaui/cocoa_path.c cocoaui/cocoa_ctrl.c \
nkeynes@731
    96
	drivers/video_osx.c drivers/mac_keymap.h drivers/mac_keymap.txt
nkeynes@681
    97
endif
nkeynes@681
    98
nkeynes@658
    99
if VIDEO_OSMESA
nkeynes@731
   100
lxdream_SOURCES += drivers/video_gdk.c
nkeynes@489
   101
endif
nkeynes@489
   102
nkeynes@658
   103
if VIDEO_GLX 
nkeynes@658
   104
lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
nkeynes@658
   105
endif
nkeynes@658
   106
nkeynes@658
   107
if VIDEO_NSGL
nkeynes@658
   108
lxdream_SOURCES += drivers/video_nsgl.c drivers/video_nsgl.h
nkeynes@614
   109
endif
nkeynes@614
   110
nkeynes@697
   111
if AUDIO_OSX
nkeynes@697
   112
lxdream_SOURCES += drivers/audio_osx.c
nkeynes@697
   113
endif
nkeynes@697
   114
nkeynes@657
   115
if AUDIO_PULSE
nkeynes@657
   116
lxdream_SOURCES += drivers/audio_pulse.c
nkeynes@657
   117
endif
nkeynes@657
   118
nkeynes@529
   119
if AUDIO_ESOUND
nkeynes@529
   120
lxdream_SOURCES += drivers/audio_esd.c
nkeynes@529
   121
endif
nkeynes@529
   122
bhaal22@643
   123
if AUDIO_ALSA
bhaal22@643
   124
lxdream_SOURCES += drivers/audio_alsa.c
bhaal22@643
   125
endif
bhaal22@643
   126
nkeynes@658
   127
nkeynes@658
   128
if CDROM_LINUX
nkeynes@658
   129
lxdream_SOURCES += drivers/cd_linux.c
nkeynes@709
   130
endif
nkeynes@709
   131
nkeynes@709
   132
if CDROM_OSX
nkeynes@731
   133
lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.c drivers/osx_iokit.h
nkeynes@709
   134
endif
nkeynes@709
   135
nkeynes@709
   136
if CDROM_NONE
nkeynes@658
   137
lxdream_SOURCES += drivers/cd_none.c
nkeynes@658
   138
endif
nkeynes@658
   139
nkeynes@658
   140
if JOY_LINUX
nkeynes@748
   141
lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
nkeynes@658
   142
endif
nkeynes@658
   143
nkeynes@658
   144
nkeynes@681
   145
lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ $(INTLLIBS)
nkeynes@1
   146
nkeynes@681
   147
gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@681
   148
genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@359
   149
nkeynes@359
   150
nkeynes@516
   151
test_testxlt_SOURCES = test/testxlt.c sh4/xltcache.c sh4/xltcache.h
nkeynes@359
   152
nkeynes@359
   153
sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
nkeynes@731
   154
	mkdir -p `dirname $@`
nkeynes@731
   155
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
nkeynes@359
   156
sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
nkeynes@731
   157
	mkdir -p `dirname $@`
nkeynes@731
   158
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
nkeynes@359
   159
sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
nkeynes@731
   160
	mkdir -p `dirname $@`
nkeynes@731
   161
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
nkeynes@387
   162
sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
nkeynes@731
   163
	mkdir -p `dirname $@`
nkeynes@731
   164
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
nkeynes@653
   165
pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
nkeynes@731
   166
	mkdir -p `dirname $@`
nkeynes@731
   167
	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
nkeynes@681
   168
drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
nkeynes@731
   169
	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
nkeynes@681
   170
	
.