Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 1006:3a169c224c12
prev998:1754a8c6a9cf
next1011:fdd58619b760
author nkeynes
date Tue Apr 07 10:55:03 2009 +0000 (11 years ago)
branchxlat-refactor
permissions -rw-r--r--
last change Commit current work-in-progress to xlat-refactor branch
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@998
     6
	-DPACKAGE_PLUGIN_DIR=\""$(pkglibdir)"\" \
nkeynes@450
     7
	-DPACKAGE_CONF_DIR=\""$(sysconfdir)"\" \
nkeynes@1
     8
        -Ish4 \
nkeynes@989
     9
	@GLIB_CFLAGS@ @GTK_CFLAGS@ @LIBPNG_CFLAGS@ @PULSE_CFLAGS@ @ESOUND_CFLAGS@ @ALSA_CFLAGS@ @SDL_CFLAGS@
nkeynes@1
    10
nkeynes@516
    11
bin_PROGRAMS = lxdream
nkeynes@516
    12
noinst_PROGRAMS = gendec genglsl
nkeynes@550
    13
check_PROGRAMS = test/testxlt
nkeynes@359
    14
nkeynes@738
    15
nkeynes@1006
    16
nkeynes@738
    17
EXTRA_DIST=drivers/genkeymap.pl checkver.pl
nkeynes@988
    18
AM_CFLAGS = -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE
nkeynes@738
    19
nkeynes@738
    20
.PHONY: checkversion
nkeynes@738
    21
checkversion:
nkeynes@738
    22
	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
nkeynes@738
    23
nkeynes@738
    24
version.c: checkversion
nkeynes@738
    25
nkeynes@550
    26
TESTS = test/testxlt
nkeynes@749
    27
BUILT_SOURCES = 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@749
    29
CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
nkeynes@749
    30
	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c
nkeynes@738
    31
nkeynes@738
    32
#all-am: checkversion
nkeynes@359
    33
nkeynes@359
    34
gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
nkeynes@405
    35
genglsl_SOURCES = tools/genglsl.c
nkeynes@967
    36
lxdream_LINK = $(LINK)
nkeynes@180
    37
lxdream_SOURCES = \
nkeynes@738
    38
        main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.h hook.h \
nkeynes@964
    39
        gettext.h mem.c mem.h sdram.c mmio.h watch.c \
nkeynes@731
    40
        asic.c asic.h clock.h serial.h \
nkeynes@998
    41
        syscall.c syscall.h bios.c dcload.c gdbserver.c \
nkeynes@998
    42
        netutil.c netutil.h \
nkeynes@342
    43
        gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
nkeynes@492
    44
	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
nkeynes@644
    45
	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
nkeynes@731
    46
	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/mmc.c gdrom/gddriver.h \
nkeynes@265
    47
        dreamcast.c dreamcast.h eventq.c eventq.h \
nkeynes@378
    48
        sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
nkeynes@550
    49
        sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
nkeynes@526
    50
        sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
nkeynes@991
    51
	xlat/xltcache.c xlat/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
nkeynes@953
    52
	sh4/cache.c sh4/mmu.h \
nkeynes@731
    53
        aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
nkeynes@67
    54
        aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
nkeynes@731
    55
	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
nkeynes@687
    56
	pvr2/tacore.c pvr2/rendsort.c \
nkeynes@653
    57
	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
nkeynes@653
    58
	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
nkeynes@731
    59
	pvr2/vertex.glsl pvr2/fragment.glsl \
nkeynes@25
    60
        maple/maple.c maple/maple.h \
nkeynes@894
    61
        maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c \
nkeynes@731
    62
        loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
nkeynes@608
    63
	display.c display.h dckeysyms.h \
nkeynes@537
    64
	drivers/audio_null.c drivers/video_null.c \
nkeynes@731
    65
	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
nkeynes@731
    66
	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in
nkeynes@731
    67
	
nkeynes@1
    68
nkeynes@526
    69
if BUILD_SH4X86
nkeynes@991
    70
lxdream_SOURCES += sh4/sh4x86.c xlat/x86/x86op.h \
nkeynes@993
    71
        xlat/x86/ia32abi.h xlat/x86/amd64abi.h \
nkeynes@953
    72
        sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \
nkeynes@526
    73
        x86dasm/x86dasm.c x86dasm/x86dasm.h \
nkeynes@731
    74
        x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
nkeynes@762
    75
        x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
nkeynes@762
    76
        x86dasm/symcat.h x86dasm/sysdep.h
nkeynes@550
    77
nkeynes@681
    78
test_testsh4x86_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@550
    79
test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
nkeynes@550
    80
	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
nkeynes@550
    81
	x86dasm/dis-buf.c \
nkeynes@991
    82
	sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c \
nkeynes@991
    83
	xlat/xltcache.h mem.c util.c 
nkeynes@550
    84
nkeynes@1006
    85
test_testsh4xir_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@1006
    86
test_testsh4xir_SOURCES = test/testsh4xir.c xlat/xir.c xlat/xir.h sh4/sh4xir.c xlat/x86/x86target.c xlat/x86/x86gen.c
nkeynes@1006
    87
nkeynes@1006
    88
test_testxir_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@1006
    89
test_testxir_SOURCES = test/testxir.c xlat/xir.c xlat/xir.h xlat/xirsup.c xlat/xiropt.c xlat/xiropt.h
nkeynes@1006
    90
	
nkeynes@1006
    91
check_PROGRAMS += test/testsh4x86 test/testsh4xir test/testxir
nkeynes@526
    92
endif
nkeynes@526
    93
nkeynes@537
    94
if GUI_GTK
nkeynes@537
    95
lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
nkeynes@763
    96
	gtkui/gtk_win.c gtkui/gtkcb.c \
nkeynes@763
    97
        gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
nkeynes@763
    98
        gtkui/gtk_ctrl.c gtkui/gtk_path.c gtkui/gtk_gd.c \
nkeynes@998
    99
        drivers/net_glib.c drivers/video_gtk.c
nkeynes@537
   100
endif
nkeynes@537
   101
nkeynes@681
   102
if GUI_COCOA
nkeynes@964
   103
lxdream_SOURCES += cocoaui/cocoaui.m cocoaui/cocoaui.h \
nkeynes@964
   104
	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
nkeynes@964
   105
	cocoaui/cocoa_path.m cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
nkeynes@998
   106
	drivers/net_osx.m drivers/video_osx.m \
nkeynes@998
   107
	drivers/mac_keymap.h drivers/mac_keymap.txt
nkeynes@964
   108
else
nkeynes@964
   109
lxdream_SOURCES += paths_unix.c
nkeynes@681
   110
endif
nkeynes@681
   111
nkeynes@658
   112
if VIDEO_OSMESA
nkeynes@731
   113
lxdream_SOURCES += drivers/video_gdk.c
nkeynes@489
   114
endif
nkeynes@489
   115
nkeynes@658
   116
if VIDEO_GLX 
nkeynes@658
   117
lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
nkeynes@658
   118
endif
nkeynes@658
   119
nkeynes@658
   120
if VIDEO_NSGL
nkeynes@964
   121
lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
nkeynes@614
   122
endif
nkeynes@614
   123
nkeynes@697
   124
if AUDIO_OSX
nkeynes@964
   125
lxdream_SOURCES += drivers/audio_osx.m
nkeynes@697
   126
endif
nkeynes@697
   127
nkeynes@989
   128
if AUDIO_SDL
nkeynes@989
   129
lxdream_SOURCES += drivers/audio_sdl.c
nkeynes@989
   130
endif
nkeynes@989
   131
nkeynes@657
   132
if AUDIO_PULSE
nkeynes@657
   133
lxdream_SOURCES += drivers/audio_pulse.c
nkeynes@657
   134
endif
nkeynes@657
   135
nkeynes@529
   136
if AUDIO_ESOUND
nkeynes@529
   137
lxdream_SOURCES += drivers/audio_esd.c
nkeynes@529
   138
endif
nkeynes@529
   139
bhaal22@643
   140
if AUDIO_ALSA
bhaal22@643
   141
lxdream_SOURCES += drivers/audio_alsa.c
bhaal22@643
   142
endif
bhaal22@643
   143
nkeynes@658
   144
nkeynes@658
   145
if CDROM_LINUX
nkeynes@658
   146
lxdream_SOURCES += drivers/cd_linux.c
nkeynes@709
   147
endif
nkeynes@709
   148
nkeynes@709
   149
if CDROM_OSX
nkeynes@964
   150
lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
nkeynes@709
   151
endif
nkeynes@709
   152
nkeynes@709
   153
if CDROM_NONE
nkeynes@658
   154
lxdream_SOURCES += drivers/cd_none.c
nkeynes@658
   155
endif
nkeynes@658
   156
nkeynes@658
   157
if JOY_LINUX
nkeynes@748
   158
lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
nkeynes@658
   159
endif
nkeynes@658
   160
nkeynes@658
   161
nkeynes@989
   162
lxdream_LDADD = @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ @PULSE_LIBS@ @ESOUND_LIBS@ @ALSA_LIBS@ @SDL_LIBS@ $(INTLLIBS)
nkeynes@1
   163
nkeynes@681
   164
gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@681
   165
genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@359
   166
nkeynes@359
   167
nkeynes@991
   168
test_testxlt_SOURCES = test/testxlt.c xlat/xltcache.c xlat/xltcache.h
nkeynes@359
   169
nkeynes@359
   170
sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
nkeynes@731
   171
	mkdir -p `dirname $@`
nkeynes@731
   172
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
nkeynes@359
   173
sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
nkeynes@731
   174
	mkdir -p `dirname $@`
nkeynes@731
   175
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
nkeynes@359
   176
sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
nkeynes@731
   177
	mkdir -p `dirname $@`
nkeynes@731
   178
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
nkeynes@1006
   179
sh4/sh4xir.c: gendec sh4/sh4.def sh4/sh4xir.in
nkeynes@1006
   180
	mkdir -p `dirname $@`
nkeynes@1006
   181
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4xir.in -o $@
nkeynes@387
   182
sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
nkeynes@731
   183
	mkdir -p `dirname $@`
nkeynes@731
   184
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
nkeynes@653
   185
pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
nkeynes@731
   186
	mkdir -p `dirname $@`
nkeynes@731
   187
	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
nkeynes@681
   188
drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
nkeynes@731
   189
	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
nkeynes@681
   190
	
.