2014-01-23 04:42:34 +00:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -Isrc
|
|
|
|
AM_CPPFLAGS += -I../src # work around some bug in make distcheck
|
2014-03-26 07:21:49 +00:00
|
|
|
AM_LFLAGS = -i
|
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
|
|
|
|
|
|
|
noinst_HEADERS = src/apple2.h src/common.h src/cpu.h src/disk.h src/glue.h \
|
|
|
|
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 \
|
|
|
|
\
|
|
|
|
src/asm386/glue-prologue.h \
|
|
|
|
src/meta/debug.h \
|
|
|
|
\
|
|
|
|
src/audio/alhelpers.h src/audio/AY8910.h src/audio/ds-shim.h \
|
|
|
|
src/audio/mockingboard.h src/audio/peripherals.h src/audio/soundcore.h \
|
|
|
|
src/audio/soundcore-openal.h src/audio/speaker.h \
|
|
|
|
src/audio/SSI263Phonemes.h src/audio/win-shim.h
|
|
|
|
|
|
|
|
noinst_PROGRAMS = genfont
|
|
|
|
|
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-03-23 21:21:31 +00:00
|
|
|
VM_SRC = \
|
|
|
|
src/asm386/glue.S src/asm386/cpu.S src/asm386/display.S \
|
|
|
|
src/asm386/memory.S
|
|
|
|
|
|
|
|
INTERFACE_CLASSIC_SRC = \
|
|
|
|
src/interface.c
|
|
|
|
|
|
|
|
VIDEO_SRC = \
|
|
|
|
src/video/xvideo.c
|
|
|
|
|
|
|
|
AUDIO_SRC = \
|
|
|
|
src/audio/soundcore.c src/audio/soundcore-openal.c src/audio/speaker.c \
|
|
|
|
src/audio/win-shim.c src/audio/alhelpers.c src/audio/mockingboard.c \
|
|
|
|
src/audio/AY8910.c
|
|
|
|
|
|
|
|
META_SRC = \
|
|
|
|
src/meta/debug.l src/meta/debugger.c src/meta/opcodes.c
|
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
# NOTE : selectively enabled through configuration process ...
|
2014-01-23 04:42:34 +00:00
|
|
|
EXTRA_apple2ix_SOURCES = \
|
2014-03-23 21:21:31 +00:00
|
|
|
$(VM_SRC) \
|
2014-01-23 04:42:34 +00:00
|
|
|
\
|
2014-03-23 21:21:31 +00:00
|
|
|
$(INTERFACE_CLASSIC_SRC) \
|
2014-01-23 04:42:34 +00:00
|
|
|
\
|
2014-03-23 21:21:31 +00:00
|
|
|
$(VIDEO_SRC) \
|
2014-01-23 04:42:34 +00:00
|
|
|
\
|
2014-03-23 21:21:31 +00:00
|
|
|
$(AUDIO_SRC) \
|
|
|
|
\
|
|
|
|
$(META_SRC)
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2014-04-05 05:03:48 +00:00
|
|
|
apple2ix_SOURCES = src/font.c src/misc.c src/display.c \
|
2014-01-23 04:42:34 +00:00
|
|
|
src/timing.c src/zlib-helpers.c src/joystick.c src/keys.c src/prefs.c \
|
|
|
|
src/disk.c src/cpu-supp.c
|
|
|
|
|
|
|
|
apple2ix_CFLAGS = @AM_CFLAGS@ @X_CFLAGS@
|
|
|
|
apple2ix_LDFLAGS = @ARCHOS_HACK_LDFLAGS@
|
2014-03-23 21:21:31 +00:00
|
|
|
apple2ix_LDADD = @VM_O@ @INTERFACE_O@ @VIDEO_O@ @AUDIO_O@ @META_O@ @X_LIBS@
|
|
|
|
apple2ix_DEPENDENCIES = @VM_O@ @INTERFACE_O@ @VIDEO_O@ @AUDIO_O@ @META_O@
|
2014-01-23 04:42:34 +00:00
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
genfont_SOURCES = src/genfont.c
|
|
|
|
|
2014-01-23 04:42:34 +00:00
|
|
|
src/font.c: src/font.txt genfont
|
|
|
|
./genfont < $< > $@
|
|
|
|
|
2014-04-05 22:25:27 +00:00
|
|
|
src/asm386/glue.S: src/disk.c src/misc.c src/display.c @AUDIO_GLUE_C@
|
2014-01-23 04:42:34 +00:00
|
|
|
./src/asm386/genglue $^ > $@
|
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
|
|
|
# Testing
|
|
|
|
|
|
|
|
LOG_DRIVER = testcpu ## hack TODO/FIXME ... should be wrapper shell script accepting standard GNU testing API args ...
|
|
|
|
|
2014-03-23 21:46:29 +00:00
|
|
|
A2_TEST_SOURCES = $(apple2ix_SOURCES)
|
2014-01-26 06:12:54 +00:00
|
|
|
A2_TEST_CFLAGS = -DTESTING=1 -Isrc/greatest
|
|
|
|
|
2014-03-30 21:08:13 +00:00
|
|
|
TESTS = testcpu testvm
|
|
|
|
check_PROGRAMS = testcpu testvm
|
2014-01-26 06:12:54 +00:00
|
|
|
|
2014-03-23 21:21:31 +00:00
|
|
|
testcpu_SOURCES = src/test/testcpu.c $(A2_TEST_SOURCES) $(EXTRA_apple2ix_SOURCES)
|
2014-01-26 06:12:54 +00:00
|
|
|
testcpu_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS)
|
|
|
|
testcpu_LDFLAGS = $(apple2ix_LDFLAGS)
|
|
|
|
testcpu_DEPENDENCIES = $(apple2ix_DEPENDENCIES)
|
|
|
|
|
2014-03-30 21:08:13 +00:00
|
|
|
testvm_SOURCES = src/test/testvm.c $(A2_TEST_SOURCES) $(VM_SRC) $(META_SRC)
|
|
|
|
# HACK FIXME TODO NOTE: why don't these CFLAGS here pass down to the .S and .c files in the subdirectories?
|
|
|
|
testvm_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UVIDEO_X11 -UINTERFACE_CLASSIC
|
|
|
|
testvm_LDFLAGS = $(apple2ix_LDFLAGS)
|
|
|
|
testvm_DEPENDENCIES = @VM_O@ @META_O@
|
|
|
|
|
2014-01-26 06:12:54 +00:00
|
|
|
###############################################################################
|
|
|
|
# Misc
|
|
|
|
|
|
|
|
man_MANS = docs/apple2ix.6
|
|
|
|
|
2014-01-23 04:42:34 +00:00
|
|
|
EXTRA_DIST = reconf.sh configure README.debugger PROBLEMS .apple2 \
|
|
|
|
\
|
|
|
|
disks/README disks/blank.dsk.gz disks/blank.nib.gz disks/etc.dsk.gz \
|
|
|
|
disks/mystery.dsk.gz disks/speedtest.dsk.gz disks/speedtest.txt \
|
|
|
|
\
|
|
|
|
docs/apple2ix.6 \
|
|
|
|
\
|
|
|
|
src/font.txt \
|
|
|
|
src/asm386/genglue
|
|
|
|
|
|
|
|
CLEANFILES = src/font.c src/meta/debug.c src/asm386/glue.S
|