Search
lxdream.org :: lxdream/src/Makefile.am
lxdream 0.9.1
released Jun 29
Download Now
filename src/Makefile.am
changeset 1091:186558374345
prev1086:29776415438d
next1097:d4807997e450
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (11 years ago)
permissions -rw-r--r--
last change Add side-by-side x86+sh4 disassembly output
Print SH4 state information and disassembly of the current block when
crashing.
Fix delay slot instruction in conditional branch not being marked as a
delay-slot instruction in the branch-not-taken path.
Rename REG_* defines in cpu.h to avoid conflict with translation defs
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@1024
    11
SOEXT=@SOEXT@
nkeynes@1024
    12
PLUGINCFLAGS = @PLUGINCFLAGS@ 
nkeynes@1024
    13
PLUGINLDFLAGS = @PLUGINLDFLAGS@
nkeynes@516
    14
bin_PROGRAMS = lxdream
nkeynes@516
    15
noinst_PROGRAMS = gendec genglsl
nkeynes@550
    16
check_PROGRAMS = test/testxlt
nkeynes@359
    17
nkeynes@1024
    18
pkglib_PROGRAMS=
nkeynes@1027
    19
EXTRA_DIST=drivers/genkeymap.pl checkver.pl drivers/dummy.c
nkeynes@988
    20
AM_CFLAGS = -D__EXTENSIONS__ -D_BSD_SOURCE -D_GNU_SOURCE
nkeynes@738
    21
nkeynes@738
    22
.PHONY: checkversion
nkeynes@738
    23
checkversion:
nkeynes@738
    24
	@$(srcdir)/checkver.pl "$(VERSION)" "$(top_srcdir)" version.c
nkeynes@738
    25
nkeynes@738
    26
version.c: checkversion
nkeynes@738
    27
nkeynes@550
    28
TESTS = test/testxlt
nkeynes@749
    29
BUILT_SOURCES = 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@749
    31
CLEANFILES = sh4/sh4core.c sh4/sh4dasm.c sh4/sh4x86.c sh4/sh4stat.c \
nkeynes@1024
    32
	pvr2/gl_slsrc.c drivers/mac_keymap.h version.c  \
nkeynes@1027
    33
	audio_alsa.lo audio_sdl.lo audio_esd.lo audio_pulse.lo input_lirc.lo \
nkeynes@1027
    34
	lxdream_dummy.lo
nkeynes@738
    35
nkeynes@738
    36
#all-am: checkversion
nkeynes@359
    37
nkeynes@359
    38
gendec_SOURCES = tools/gendec.c tools/gendec.h tools/insparse.c tools/actparse.c
nkeynes@405
    39
genglsl_SOURCES = tools/genglsl.c
nkeynes@1024
    40
lxdream_LINK = $(LINK) @LXDREAMLDFLAGS@
nkeynes@1054
    41
lxdream_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@ $(INTLLIBS)
nkeynes@180
    42
lxdream_SOURCES = \
nkeynes@1091
    43
        main.c version.c config.c config.h lxdream.h dream.h gui.h cpu.c cpu.h hook.h \
nkeynes@964
    44
        gettext.h mem.c mem.h sdram.c mmio.h watch.c \
nkeynes@731
    45
        asic.c asic.h clock.h serial.h \
nkeynes@998
    46
        syscall.c syscall.h bios.c dcload.c gdbserver.c \
nkeynes@1077
    47
        ioutil.c ioutil.h lxpaths.c lxpaths.h \
nkeynes@342
    48
        gdrom/ide.c gdrom/ide.h gdrom/packet.h gdrom/gdimage.c \
nkeynes@492
    49
	gdrom/gdrom.c gdrom/gdrom.h gdrom/nrg.c gdrom/cdi.c gdrom/gdi.c \
nkeynes@644
    50
	gdrom/edc_ecc.c gdrom/ecc.h gdrom/edc_crctable.h gdrom/edc_encoder.h \
nkeynes@1023
    51
	gdrom/edc_l2sq.h gdrom/edc_scramble.h gdrom/gddriver.h \
nkeynes@265
    52
        dreamcast.c dreamcast.h eventq.c eventq.h \
nkeynes@378
    53
        sh4/sh4.c sh4/intc.c sh4/intc.h sh4/sh4mem.c sh4/timer.c sh4/dmac.c \
nkeynes@550
    54
        sh4/mmu.c sh4/sh4core.c sh4/sh4core.h sh4/sh4dasm.c sh4/sh4dasm.h \
nkeynes@526
    55
        sh4/sh4mmio.c sh4/sh4mmio.h sh4/scif.c sh4/sh4stat.c sh4/sh4stat.h \
nkeynes@991
    56
	xlat/xltcache.c xlat/xltcache.h sh4/sh4.h sh4/dmac.h sh4/pmm.c \
nkeynes@931
    57
	sh4/cache.c sh4/mmu.h \
nkeynes@731
    58
        aica/armcore.c aica/armcore.h aica/armdasm.c aica/armdasm.h aica/armmem.c \
nkeynes@67
    59
        aica/aica.c aica/aica.h aica/audio.c aica/audio.h \
nkeynes@731
    60
	pvr2/pvr2.c pvr2/pvr2.h pvr2/pvr2mem.c pvr2/pvr2mmio.h \
nkeynes@687
    61
	pvr2/tacore.c pvr2/rendsort.c \
nkeynes@653
    62
	pvr2/texcache.c pvr2/yuv.c pvr2/rendsave.c pvr2/scene.c pvr2/scene.h \
nkeynes@653
    63
	pvr2/gl_sl.c pvr2/gl_slsrc.c pvr2/glutil.c pvr2/glutil.h pvr2/glrender.c \
nkeynes@731
    64
	pvr2/vertex.glsl pvr2/fragment.glsl \
nkeynes@25
    65
        maple/maple.c maple/maple.h \
nkeynes@1034
    66
        maple/controller.c maple/kbd.c maple/mouse.c maple/lightgun.c maple/vmu.c \
nkeynes@731
    67
        loader.c loader.h elf.h bootstrap.c bootstrap.h util.c gdlist.c gdlist.h \
nkeynes@1034
    68
        vmu/vmuvol.c vmu/vmuvol.h vmu/vmulist.c vmu/vmulist.h \
nkeynes@608
    69
	display.c display.h dckeysyms.h \
nkeynes@1023
    70
	drivers/audio_null.c drivers/video_null.c drivers/cd_mmc.c \
nkeynes@731
    71
	drivers/video_gl.c drivers/video_gl.h drivers/gl_fbo.c \
nkeynes@1077
    72
	drivers/serial_unix.c \
nkeynes@1015
    73
	sh4/sh4.def sh4/sh4core.in sh4/sh4x86.in sh4/sh4dasm.in sh4/sh4stat.in \
nkeynes@1015
    74
	hotkeys.c hotkeys.h
nkeynes@1024
    75
lxdream_CPPFLAGS = @LXDREAMCPPFLAGS@
nkeynes@1024
    76
if BUILD_SHARED
nkeynes@1024
    77
lxdream_SOURCES += plugin.c plugin.h
nkeynes@1024
    78
endif	
nkeynes@1
    79
nkeynes@526
    80
if BUILD_SH4X86
nkeynes@991
    81
lxdream_SOURCES += sh4/sh4x86.c xlat/x86/x86op.h \
nkeynes@993
    82
        xlat/x86/ia32abi.h xlat/x86/amd64abi.h \
nkeynes@939
    83
        sh4/sh4trans.c sh4/sh4trans.h sh4/mmux86.c \
nkeynes@526
    84
        x86dasm/x86dasm.c x86dasm/x86dasm.h \
nkeynes@731
    85
        x86dasm/i386-dis.c x86dasm/dis-init.c x86dasm/dis-buf.c \
nkeynes@762
    86
        x86dasm/ansidecl.h x86dasm/bfd.h x86dasm/dis-asm.h \
nkeynes@762
    87
        x86dasm/symcat.h x86dasm/sysdep.h
nkeynes@550
    88
nkeynes@1059
    89
test_testsh4x86_LDADD = @LXDREAM_LIBS@ @GLIB_LIBS@ @GTK_LIBS@ @LIBPNG_LIBS@
nkeynes@1024
    90
test_testsh4x86_CPPFLAGS = @LXDREAMCPPFLAGS@
nkeynes@550
    91
test_testsh4x86_SOURCES = test/testsh4x86.c x86dasm/x86dasm.c \
nkeynes@550
    92
	x86dasm/x86dasm.h x86dasm/i386-dis.c x86dasm/dis-init.c \
nkeynes@550
    93
	x86dasm/dis-buf.c \
nkeynes@1091
    94
	sh4/sh4trans.c sh4/sh4x86.c xlat/xltcache.c sh4/sh4dasm.c \
nkeynes@1091
    95
	xlat/xltcache.h mem.c util.c cpu.c
nkeynes@550
    96
nkeynes@550
    97
check_PROGRAMS += test/testsh4x86
nkeynes@526
    98
endif
nkeynes@526
    99
nkeynes@537
   100
if GUI_GTK
nkeynes@537
   101
lxdream_SOURCES += gtkui/gtkui.c gtkui/gtkui.h \
nkeynes@1072
   102
	gtkui/gtk_win.c gtkui/gtkcb.c gtkui/gtk_cfg.c \
nkeynes@763
   103
        gtkui/gtk_mmio.c gtkui/gtk_debug.c gtkui/gtk_dump.c \
nkeynes@1072
   104
        gtkui/gtk_ctrl.c gtkui/gtk_gd.c \
nkeynes@1077
   105
        drivers/io_glib.c drivers/video_gtk.c
nkeynes@537
   106
endif
nkeynes@537
   107
nkeynes@681
   108
if GUI_COCOA
nkeynes@1072
   109
lxdream_SOURCES += cocoaui/cocoaui.m cocoaui/cocoaui.h cocoaui/cocoa_cfg.m \
nkeynes@964
   110
	cocoaui/cocoa_win.m cocoaui/cocoa_gd.m cocoaui/cocoa_prefs.m \
nkeynes@1072
   111
	cocoaui/cocoa_ctrl.m cocoaui/paths_osx.m \
nkeynes@1077
   112
	drivers/io_osx.m drivers/video_osx.m \
nkeynes@998
   113
	drivers/mac_keymap.h drivers/mac_keymap.txt
nkeynes@635
   114
else
nkeynes@964
   115
lxdream_SOURCES += paths_unix.c
nkeynes@681
   116
endif
nkeynes@681
   117
nkeynes@658
   118
if VIDEO_OSMESA
nkeynes@731
   119
lxdream_SOURCES += drivers/video_gdk.c
nkeynes@489
   120
endif
nkeynes@489
   121
nkeynes@658
   122
if VIDEO_GLX 
nkeynes@658
   123
lxdream_SOURCES += drivers/video_glx.c drivers/video_glx.h
nkeynes@658
   124
endif
nkeynes@658
   125
nkeynes@658
   126
if VIDEO_NSGL
nkeynes@964
   127
lxdream_SOURCES += drivers/video_nsgl.m drivers/video_nsgl.h
nkeynes@614
   128
endif
nkeynes@614
   129
nkeynes@697
   130
if AUDIO_OSX
nkeynes@964
   131
lxdream_SOURCES += drivers/audio_osx.m
nkeynes@697
   132
endif
nkeynes@697
   133
nkeynes@1024
   134
if BUILD_SHARED
nkeynes@1027
   135
nkeynes@1027
   136
pkglib_PROGRAMS += lxdream_dummy.@SOEXT@
nkeynes@1027
   137
lxdream_dummy_@SOEXT@_SOURCES =
nkeynes@1027
   138
lxdream_dummy_@SOEXT@_LDADD = lxdream_dummy.lo @SDL_LIBS@
nkeynes@1027
   139
lxdream_dummy_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1027
   140
lxdream_dummy.lo: drivers/dummy.c
nkeynes@1027
   141
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1027
   142
nkeynes@1024
   143
if AUDIO_SDL
nkeynes@1024
   144
pkglib_PROGRAMS += audio_sdl.@SOEXT@
nkeynes@1024
   145
audio_sdl_@SOEXT@_SOURCES =
nkeynes@1024
   146
audio_sdl_@SOEXT@_LDADD = audio_sdl.lo @SDL_LIBS@
nkeynes@1024
   147
audio_sdl_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1024
   148
audio_sdl.lo: drivers/audio_sdl.c
nkeynes@1024
   149
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1024
   150
endif
nkeynes@1024
   151
nkeynes@1024
   152
if AUDIO_PULSE
nkeynes@1024
   153
pkglib_PROGRAMS += audio_pulse.@SOEXT@
nkeynes@1024
   154
audio_pulse_@SOEXT@_SOURCES =
nkeynes@1024
   155
audio_pulse_@SOEXT@_LDADD = audio_pulse.lo @PULSE_LIBS@
nkeynes@1024
   156
audio_pulse_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1024
   157
audio_pulse.lo: drivers/audio_pulse.c
nkeynes@1024
   158
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1024
   159
endif
nkeynes@1024
   160
nkeynes@1024
   161
if AUDIO_ESOUND
nkeynes@1024
   162
pkglib_PROGRAMS += audio_esd.@SOEXT@
nkeynes@1024
   163
audio_esd_@SOEXT@_SOURCES =
nkeynes@1024
   164
audio_esd_@SOEXT@_LDADD = audio_esd.lo @ESOUND_LIBS@
nkeynes@1024
   165
audio_esd_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1024
   166
audio_esd.lo: drivers/audio_esd.c
nkeynes@1024
   167
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1024
   168
endif
nkeynes@1024
   169
nkeynes@1024
   170
if AUDIO_ALSA
nkeynes@1024
   171
pkglib_PROGRAMS += audio_alsa.@SOEXT@
nkeynes@1024
   172
audio_alsa_@SOEXT@_SOURCES =
nkeynes@1024
   173
audio_alsa_@SOEXT@_LDADD = audio_alsa.lo @ALSA_LIBS@
nkeynes@1024
   174
audio_alsa_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1024
   175
audio_alsa.lo: drivers/audio_alsa.c
nkeynes@1024
   176
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1024
   177
endif
nkeynes@1024
   178
nkeynes@1024
   179
if INPUT_LIRC
nkeynes@1024
   180
pkglib_PROGRAMS += input_lirc.@SOEXT@
nkeynes@1024
   181
input_lirc_@SOEXT@_SOURCES =
nkeynes@1024
   182
input_lirc_@SOEXT@_LDADD = input_lirc.lo	 -llirc_client
nkeynes@1024
   183
input_lirc_@SOEXT@_LDFLAGS = $(PLUGINLDFLAGS)
nkeynes@1024
   184
input_lirc.lo: drivers/input_lirc.c
nkeynes@1024
   185
	$(COMPILE) -DPLUGIN $(PLUGINCFLAGS) -c $< -o $@
nkeynes@1024
   186
endif
nkeynes@1024
   187
nkeynes@1024
   188
else # build statically
nkeynes@989
   189
if AUDIO_SDL
nkeynes@989
   190
lxdream_SOURCES += drivers/audio_sdl.c
nkeynes@1024
   191
lxdream_LDADD += @SDL_LIBS@
nkeynes@697
   192
endif
nkeynes@697
   193
nkeynes@657
   194
if AUDIO_PULSE
nkeynes@657
   195
lxdream_SOURCES += drivers/audio_pulse.c
nkeynes@1024
   196
lxdream_LDADD += @PULSE_LIBS@
nkeynes@657
   197
endif
nkeynes@657
   198
nkeynes@529
   199
if AUDIO_ESOUND
nkeynes@529
   200
lxdream_SOURCES += drivers/audio_esd.c
nkeynes@1024
   201
lxdream_LDADD += @ESOUND_LIBS@
nkeynes@529
   202
endif
nkeynes@529
   203
bhaal22@643
   204
if AUDIO_ALSA
bhaal22@643
   205
lxdream_SOURCES += drivers/audio_alsa.c
nkeynes@1024
   206
lxdream_LDADD += @ALSA_LIBS@
bhaal22@643
   207
endif
bhaal22@643
   208
nkeynes@1024
   209
if INPUT_LIRC
nkeynes@1024
   210
lxdream_SOURCES += drivers/input_lirc.c
nkeynes@1024
   211
lxdream_LDADD += -llirc_client
nkeynes@1024
   212
endif
nkeynes@1024
   213
endif # end shared/static control
nkeynes@658
   214
nkeynes@658
   215
if CDROM_LINUX
nkeynes@658
   216
lxdream_SOURCES += drivers/cd_linux.c
nkeynes@709
   217
endif
nkeynes@709
   218
nkeynes@709
   219
if CDROM_OSX
nkeynes@964
   220
lxdream_SOURCES += drivers/cd_osx.c drivers/osx_iokit.m drivers/osx_iokit.h
nkeynes@709
   221
endif
nkeynes@709
   222
nkeynes@709
   223
if CDROM_NONE
nkeynes@658
   224
lxdream_SOURCES += drivers/cd_none.c
nkeynes@658
   225
endif
nkeynes@658
   226
nkeynes@658
   227
if JOY_LINUX
nkeynes@748
   228
lxdream_SOURCES += drivers/joy_linux.c drivers/joy_linux.h
nkeynes@658
   229
endif
nkeynes@658
   230
nkeynes@658
   231
nkeynes@1
   232
nkeynes@681
   233
gendec_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@681
   234
genglsl_LDADD = @GLIB_LIBS@ @GTK_LIBS@ $(INTLLIBS)
nkeynes@359
   235
nkeynes@359
   236
nkeynes@991
   237
test_testxlt_SOURCES = test/testxlt.c xlat/xltcache.c xlat/xltcache.h
nkeynes@359
   238
nkeynes@359
   239
sh4/sh4core.c: gendec sh4/sh4.def sh4/sh4core.in
nkeynes@1086
   240
	$(mkdir_p) `dirname $@`
nkeynes@731
   241
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4core.in -o $@
nkeynes@359
   242
sh4/sh4dasm.c: gendec sh4/sh4.def sh4/sh4dasm.in
nkeynes@1086
   243
	$(mkdir_p) `dirname $@`
nkeynes@731
   244
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4dasm.in -o $@
nkeynes@359
   245
sh4/sh4x86.c: gendec sh4/sh4.def sh4/sh4x86.in
nkeynes@1086
   246
	$(mkdir_p) `dirname $@`
nkeynes@731
   247
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4x86.in -o $@
nkeynes@387
   248
sh4/sh4stat.c: gendec sh4/sh4.def sh4/sh4stat.in
nkeynes@1086
   249
	$(mkdir_p) `dirname $@`
nkeynes@731
   250
	./gendec $(srcdir)/sh4/sh4.def $(srcdir)/sh4/sh4stat.in -o $@
nkeynes@653
   251
pvr2/gl_slsrc.c: genglsl pvr2/vertex.glsl pvr2/fragment.glsl
nkeynes@1086
   252
	$(mkdir_p) `dirname $@`
nkeynes@731
   253
	./genglsl $(srcdir)/pvr2/vertex.glsl $(srcdir)/pvr2/fragment.glsl $@
nkeynes@681
   254
drivers/mac_keymap.h: drivers/mac_keymap.txt drivers/genkeymap.pl
nkeynes@1086
   255
	$(mkdir_p) `dirname $@`
nkeynes@731
   256
	$(srcdir)/drivers/genkeymap.pl mac $(srcdir)/drivers/mac_keymap.txt > $@
nkeynes@681
   257
	
.