2014-01-23 04:42:34 +00:00
|
|
|
|
2014-10-08 05:05:14 +00:00
|
|
|
AM_CPPFLAGS = -Isrc -DCONFIG_DATADIR=\"@datadir@\"
|
2014-01-23 04:42:34 +00:00
|
|
|
AM_CPPFLAGS += -I../src # work around some bug in make distcheck
|
2016-01-10 19:40:56 +00:00
|
|
|
AM_LFLAGS = -i -D_GNU_SOURCE=1
|
2014-01-26 06:12:54 +00:00
|
|
|
#AM_COLOR_TESTS = no
|
2014-01-23 04:42:34 +00:00
|
|
|
#LDFLAGS =
|
|
|
|
#LDADD =
|
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
|
|
|
# No install
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2015-09-11 07:00:04 +00:00
|
|
|
noinst_HEADERS = src/common.h src/cpu.h src/disk.h src/glue.h src/vm.h \
|
2014-01-23 04:42:34 +00:00
|
|
|
src/interface.h src/joystick.h src/keys.h src/misc.h src/prefs.h \
|
|
|
|
src/timing.h src/uthash.h src/video/video.h src/zlib-helpers.h \
|
|
|
|
\
|
2014-05-31 17:19:42 +00:00
|
|
|
src/x86/glue-prologue.h \
|
2018-01-15 21:03:31 +00:00
|
|
|
src/x86/glue-offsets.h src/x86/glue-offsets32.h src/x86/glue-offsets64.h \
|
2017-07-30 17:12:51 +00:00
|
|
|
src/meta/debug.h src/meta/log.h src/meta/trace.h \
|
2014-01-23 04:42:34 +00:00
|
|
|
\
|
2015-06-13 20:45:22 +00:00
|
|
|
src/audio/alhelpers.h src/audio/AY8910.h src/audio/mockingboard.h \
|
2015-06-13 21:00:52 +00:00
|
|
|
src/audio/peripherals.h src/audio/soundcore.h src/audio/speaker.h \
|
|
|
|
src/audio/SSI263Phonemes.h
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2018-01-15 21:03:31 +00:00
|
|
|
noinst_PROGRAMS = genfont genrom glue_offsets
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
|
|
|
# Apple //ix and supporting sources
|
2014-01-23 04:42:34 +00:00
|
|
|
|
|
|
|
bin_PROGRAMS = apple2ix
|
|
|
|
|
2014-06-07 18:24:53 +00:00
|
|
|
ASM_SRC_x86 = \
|
2014-05-31 17:19:42 +00:00
|
|
|
src/x86/glue.S src/x86/cpu.S
|
2014-03-23 21:21:31 +00:00
|
|
|
|
|
|
|
VIDEO_SRC = \
|
2014-09-21 22:58:27 +00:00
|
|
|
src/video/glvideo.c \
|
2015-02-18 04:12:01 +00:00
|
|
|
src/video/glutinput.c \
|
2015-04-12 22:35:16 +00:00
|
|
|
src/video/glnode.c \
|
|
|
|
src/video/glhudmodel.c \
|
2015-04-18 21:53:01 +00:00
|
|
|
src/video/glalert.c \
|
2017-09-10 03:14:51 +00:00
|
|
|
src/video/ncvideo.c \
|
2017-08-05 18:59:07 +00:00
|
|
|
src/video/xvideo.c \
|
2014-10-08 05:05:14 +00:00
|
|
|
src/video_util/matrixUtil.c \
|
|
|
|
src/video_util/modelUtil.c \
|
|
|
|
src/video_util/sourceUtil.c \
|
|
|
|
src/video_util/vectorUtil.c
|
2014-03-23 21:21:31 +00:00
|
|
|
|
|
|
|
AUDIO_SRC = \
|
|
|
|
src/audio/soundcore.c src/audio/soundcore-openal.c src/audio/speaker.c \
|
2015-06-21 21:30:51 +00:00
|
|
|
src/audio/playqueue.c src/audio/alhelpers.c src/audio/mockingboard.c \
|
|
|
|
src/audio/AY8910.c
|
2017-07-30 17:11:17 +00:00
|
|
|
|
2014-03-23 21:21:31 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
# NOTE : selectively enabled through configuration process ...
|
2017-07-30 17:11:17 +00:00
|
|
|
EXTRA_apple2ix_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
|
|
|
|
|
|
|
apple2ix_SOURCES = \
|
|
|
|
externals/jsmn/jsmn.c \
|
|
|
|
src/cpu-supp.c \
|
|
|
|
src/disk.c \
|
|
|
|
src/display.c \
|
|
|
|
src/font.c \
|
|
|
|
src/interface.c \
|
|
|
|
src/joystick.c \
|
|
|
|
src/json_parse.c \
|
|
|
|
src/keys.c \
|
2017-08-20 05:53:51 +00:00
|
|
|
src/meta/darwin-shim.c \
|
2017-07-30 17:11:17 +00:00
|
|
|
src/meta/debug.l \
|
|
|
|
src/meta/debugger.c \
|
2018-11-23 18:35:38 +00:00
|
|
|
src/meta/systrace.c \
|
2017-07-30 17:12:51 +00:00
|
|
|
src/meta/log.c \
|
2017-08-20 05:53:51 +00:00
|
|
|
src/meta/memmngt.c \
|
|
|
|
src/meta/opcodes.c \
|
2017-07-30 17:11:17 +00:00
|
|
|
src/misc.c \
|
|
|
|
src/prefs.c \
|
|
|
|
src/rom.c \
|
|
|
|
src/test/sha1.c \
|
|
|
|
src/timing.c \
|
2018-07-30 00:12:23 +00:00
|
|
|
src/video/video.c \
|
2018-11-17 21:35:35 +00:00
|
|
|
src/video/ntsc.c \
|
2017-07-30 17:11:17 +00:00
|
|
|
src/vm.c \
|
|
|
|
src/zlib-helpers.c
|
2014-01-23 04:42:34 +00:00
|
|
|
|
|
|
|
apple2ix_CFLAGS = @AM_CFLAGS@ @X_CFLAGS@
|
2014-10-11 23:53:32 +00:00
|
|
|
apple2ix_CCASFLAGS = $(apple2ix_CFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
apple2ix_LDADD = @ASM_O@ @VIDEO_O@ @AUDIO_O@ @X_LIBS@
|
|
|
|
apple2ix_DEPENDENCIES = @ASM_O@ @VIDEO_O@ @AUDIO_O@
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
genfont_SOURCES = src/genfont.c
|
|
|
|
|
2014-06-22 18:09:59 +00:00
|
|
|
genrom_SOURCES = src/genrom.c
|
|
|
|
|
2018-01-15 21:03:31 +00:00
|
|
|
glue_offsets_SOURCES = src/glue-offsets.c
|
|
|
|
|
2014-01-23 04:42:34 +00:00
|
|
|
src/font.c: src/font.txt genfont
|
|
|
|
./genfont < $< > $@
|
|
|
|
|
2014-06-22 18:25:57 +00:00
|
|
|
src/rom.c: genrom
|
|
|
|
./genrom src/rom/apple_IIe.rom src/rom/slot6.rom > $@
|
2014-06-22 18:09:59 +00:00
|
|
|
|
2016-06-27 00:30:58 +00:00
|
|
|
src/x86/glue.S: src/cpu-supp.c src/disk.c src/display.c src/vm.c @AUDIO_GLUE_C@
|
2016-07-23 21:58:38 +00:00
|
|
|
TARGET_ARCH=x86 ./src/genglue.sh $^ > $@
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
|
|
|
# Testing
|
|
|
|
|
2016-07-02 20:14:17 +00:00
|
|
|
#LOG_DRIVER = ## hack TODO/FIXME ... should be wrapper shell script accepting standard GNU testing API args ...
|
2014-01-26 06:12:54 +00:00
|
|
|
|
2014-04-26 21:01:26 +00:00
|
|
|
A2_TEST_SOURCES = $(apple2ix_SOURCES) src/test/testcommon.c
|
2016-07-02 20:14:17 +00:00
|
|
|
A2_TEST_CFLAGS = $(apple2ix_CFLAGS) -DTESTING=1 -Isrc/test
|
2014-01-26 06:12:54 +00:00
|
|
|
|
2016-09-17 20:05:26 +00:00
|
|
|
TESTS = testcpu testdisk testdisplay testprefs testtrace testui testvm
|
|
|
|
check_PROGRAMS = testcpu testdisk testdisplay testprefs testtrace testui testvm
|
2014-01-26 06:12:54 +00:00
|
|
|
|
2016-02-26 04:46:41 +00:00
|
|
|
#######################################
|
2016-07-02 20:14:17 +00:00
|
|
|
|
|
|
|
testcpu_SOURCES = src/test/testcpu.c $(A2_TEST_SOURCES)
|
|
|
|
testcpu_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_CPU=1
|
2014-10-11 23:53:32 +00:00
|
|
|
testcpu_CCASFLAGS = $(testcpu_CFLAGS)
|
2014-01-26 06:12:54 +00:00
|
|
|
testcpu_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testcpu_LDADD = @testcpu_ASM_O@ @testcpu_VIDEO_O@ @testcpu_AUDIO_O@ @X_LIBS@
|
|
|
|
testcpu_DEPENDENCIES = @testcpu_ASM_O@ @testcpu_VIDEO_O@ @testcpu_AUDIO_O@
|
|
|
|
EXTRA_testcpu_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2014-06-07 18:24:53 +00:00
|
|
|
|
2016-02-26 04:46:41 +00:00
|
|
|
#######################################
|
2014-03-30 21:08:13 +00:00
|
|
|
|
2016-07-02 20:14:17 +00:00
|
|
|
testdisk_SOURCES = src/test/testdisk.c $(A2_TEST_SOURCES)
|
2016-07-03 23:24:56 +00:00
|
|
|
testdisk_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_DISK=1 -DDISK_TRACING=1
|
2016-07-02 20:14:17 +00:00
|
|
|
testdisk_CCASFLAGS = $(testdisk_CFLAGS)
|
|
|
|
testdisk_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testdisk_LDADD = @testdisk_ASM_O@ @testdisk_VIDEO_O@ @testdisk_AUDIO_O@ @X_LIBS@
|
|
|
|
testdisk_DEPENDENCIES = @testdisk_ASM_O@ @testdisk_VIDEO_O@ @testdisk_AUDIO_O@
|
|
|
|
EXTRA_testdisk_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2014-06-07 18:24:53 +00:00
|
|
|
|
2016-02-26 04:46:41 +00:00
|
|
|
#######################################
|
2014-04-20 17:51:28 +00:00
|
|
|
|
2016-07-02 20:14:17 +00:00
|
|
|
testdisplay_SOURCES = src/test/testdisplay.c $(A2_TEST_SOURCES)
|
2018-07-30 00:12:23 +00:00
|
|
|
testdisplay_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_DISPLAY=1 -DVIDEO_TRACING=1
|
2016-07-02 20:14:17 +00:00
|
|
|
testdisplay_CCASFLAGS = $(testdisplay_CFLAGS)
|
|
|
|
testdisplay_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testdisplay_LDADD = @testdisplay_ASM_O@ @testdisplay_VIDEO_O@ @testdisplay_AUDIO_O@ @X_LIBS@
|
|
|
|
testdisplay_DEPENDENCIES = @testdisplay_ASM_O@ @testdisplay_VIDEO_O@ @testdisplay_AUDIO_O@
|
|
|
|
EXTRA_testdisplay_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2014-06-07 18:24:53 +00:00
|
|
|
|
2016-02-26 04:46:41 +00:00
|
|
|
#######################################
|
2014-12-28 22:50:43 +00:00
|
|
|
|
2016-07-02 20:14:17 +00:00
|
|
|
testprefs_SOURCES = src/test/testprefs.c $(A2_TEST_SOURCES)
|
|
|
|
testprefs_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_PREFS=1
|
2016-02-26 04:46:41 +00:00
|
|
|
testprefs_CCASFLAGS = $(testprefs_CFLAGS)
|
|
|
|
testprefs_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testprefs_LDADD = @testprefs_ASM_O@ @testprefs_VIDEO_O@ @testprefs_AUDIO_O@ @X_LIBS@
|
|
|
|
testprefs_DEPENDENCIES = @testprefs_ASM_O@ @testprefs_VIDEO_O@ @testprefs_AUDIO_O@
|
|
|
|
EXTRA_testprefs_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2016-02-26 04:46:41 +00:00
|
|
|
|
|
|
|
#######################################
|
2016-07-02 20:14:17 +00:00
|
|
|
|
|
|
|
testtrace_SOURCES = src/test/testtrace.c $(A2_TEST_SOURCES)
|
2018-07-30 00:12:23 +00:00
|
|
|
testtrace_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_TRACE=1 -DCPU_TRACING=1 -DDISK_TRACING=1 -DVM_TRACING=1 -DSPEAKER_TRACING=1 -DMB_TRACING=1 -DVIDEO_TRACING=1
|
2015-09-07 05:57:51 +00:00
|
|
|
testtrace_CCASFLAGS = $(testtrace_CFLAGS)
|
|
|
|
testtrace_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testtrace_LDADD = @testtrace_ASM_O@ @testtrace_VIDEO_O@ @testtrace_AUDIO_O@ @X_LIBS@
|
|
|
|
testtrace_DEPENDENCIES = @testtrace_ASM_O@ @testtrace_VIDEO_O@ @testtrace_AUDIO_O@
|
|
|
|
EXTRA_testtrace_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2016-07-02 20:14:17 +00:00
|
|
|
|
|
|
|
#######################################
|
2015-09-07 05:57:51 +00:00
|
|
|
|
2016-09-17 20:05:26 +00:00
|
|
|
testui_SOURCES = src/test/testui.c $(A2_TEST_SOURCES)
|
|
|
|
testui_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_UI=1
|
|
|
|
testui_CCASFLAGS = $(testui_CFLAGS)
|
|
|
|
testui_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testui_LDADD = @testui_ASM_O@ @testui_VIDEO_O@ @testui_AUDIO_O@ @X_LIBS@
|
|
|
|
testui_DEPENDENCIES = @testui_ASM_O@ @testui_VIDEO_O@ @testui_AUDIO_O@
|
|
|
|
EXTRA_testui_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2016-09-17 20:05:26 +00:00
|
|
|
|
|
|
|
#######################################
|
|
|
|
|
2016-07-02 20:14:17 +00:00
|
|
|
testvm_SOURCES = src/test/testvm.c $(A2_TEST_SOURCES)
|
|
|
|
testvm_CFLAGS = $(A2_TEST_CFLAGS) -DTEST_VM=1
|
|
|
|
testvm_CCASFLAGS = $(testvm_CFLAGS)
|
|
|
|
testvm_LDFLAGS = $(apple2ix_LDFLAGS)
|
2017-07-30 17:11:17 +00:00
|
|
|
testvm_LDADD = @testvm_ASM_O@ @testvm_VIDEO_O@ @testvm_AUDIO_O@ @X_LIBS@
|
|
|
|
testvm_DEPENDENCIES = @testvm_ASM_O@ @testvm_VIDEO_O@ @testvm_AUDIO_O@
|
|
|
|
EXTRA_testvm_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC) $(AUDIO_SRC)
|
2015-09-07 05:57:51 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
2014-10-08 05:05:14 +00:00
|
|
|
# Misc & Installation
|
2014-01-26 06:12:54 +00:00
|
|
|
|
2014-10-08 05:05:14 +00:00
|
|
|
# manpage
|
2014-01-26 06:12:54 +00:00
|
|
|
man_MANS = docs/apple2ix.6
|
|
|
|
|
2014-10-08 05:05:14 +00:00
|
|
|
# shaders
|
|
|
|
shadersdir = @datadir@/@PACKAGE@/shaders
|
|
|
|
shaders_DATA = src/video/Basic.vsh src/video/Basic.fsh
|
|
|
|
|
|
|
|
# Extra distribution stuff
|
2014-01-23 04:42:34 +00:00
|
|
|
EXTRA_DIST = reconf.sh configure README.debugger PROBLEMS .apple2 \
|
|
|
|
\
|
2014-12-28 22:50:43 +00:00
|
|
|
$(man_MANS) \
|
2014-01-23 04:42:34 +00:00
|
|
|
\
|
|
|
|
src/font.txt \
|
2016-07-23 21:58:38 +00:00
|
|
|
src/genglue.sh \
|
2014-10-08 05:05:14 +00:00
|
|
|
\
|
2014-12-28 22:50:43 +00:00
|
|
|
$(shaders_DATA)
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2016-08-01 02:48:26 +00:00
|
|
|
install-data-hook:
|
|
|
|
rm -rf @datadir@/@PACKAGE@/disks
|
|
|
|
cp -Rp external-disks/ @datadir@/@PACKAGE@/disks/
|
|
|
|
|
|
|
|
dist-hook:
|
|
|
|
echo "TODO FIXME disks and external-disks"
|
|
|
|
echo rm -rf $(distdir)/disks
|
|
|
|
echo cp -Rp disks $(distdir)/disks
|
|
|
|
echo cp -Rp external-disks $(distdir)/disks
|
|
|
|
|
2014-06-22 18:09:59 +00:00
|
|
|
CLEANFILES = src/font.c src/rom.c src/meta/debug.c src/x86/glue.S
|