apple2ix/Makefile.am

177 lines
5.9 KiB
Makefile
Raw Normal View History

AM_CPPFLAGS = -Isrc -DCONFIG_DATADIR=\"@datadir@\"
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
#LDFLAGS =
#LDADD =
2014-01-26 06:12:54 +00:00
###############################################################################
# No install
noinst_HEADERS = src/common.h src/cpu.h src/disk.h src/glue.h src/vm.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 \
\
2014-05-31 17:19:42 +00:00
src/x86/glue-prologue.h \
src/meta/debug.h src/meta/trace.h \
\
src/audio/alhelpers.h src/audio/AY8910.h src/audio/mockingboard.h \
src/audio/peripherals.h src/audio/soundcore.h src/audio/speaker.h \
src/audio/SSI263Phonemes.h
2014-06-22 18:09:59 +00:00
noinst_PROGRAMS = genfont genrom
2014-01-26 06:12:54 +00:00
###############################################################################
# Apple //ix and supporting sources
bin_PROGRAMS = apple2ix
ASM_SRC_x86 = \
2014-05-31 17:19:42 +00:00
src/x86/glue.S src/x86/cpu.S
VIDEO_SRC = \
src/video/xvideo.c \
src/video/glvideo.c \
2015-02-18 04:12:01 +00:00
src/video/glutinput.c \
src/video/glnode.c \
src/video/glhudmodel.c \
src/video/glalert.c \
src/video_util/matrixUtil.c \
src/video_util/modelUtil.c \
src/video_util/sourceUtil.c \
src/video_util/vectorUtil.c
AUDIO_SRC = \
src/audio/soundcore.c src/audio/soundcore-openal.c src/audio/speaker.c \
src/audio/playqueue.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 src/test/sha1.c \
src/meta/lintrace.c
2014-01-26 06:12:54 +00:00
# NOTE : selectively enabled through configuration process ...
EXTRA_apple2ix_SOURCES = \
$(ASM_SRC_x86) \
\
$(VIDEO_SRC) \
\
$(AUDIO_SRC) \
\
$(META_SRC)
2014-06-22 18:09:59 +00:00
apple2ix_SOURCES = src/font.c src/rom.c src/misc.c src/display.c src/vm.c \
src/timing.c src/zlib-helpers.c src/joystick.c src/keys.c src/prefs.c \
src/interface.c src/disk.c src/cpu-supp.c
apple2ix_CFLAGS = @AM_CFLAGS@ @X_CFLAGS@
apple2ix_CCASFLAGS = $(apple2ix_CFLAGS)
apple2ix_LDFLAGS =
2015-05-29 04:12:03 +00:00
apple2ix_LDADD = @ASM_O@ @VIDEO_O@ @AUDIO_O@ @META_O@ @X_LIBS@
apple2ix_DEPENDENCIES = @ASM_O@ @VIDEO_O@ @AUDIO_O@ @META_O@
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
src/font.c: src/font.txt genfont
./genfont < $< > $@
src/rom.c: genrom
./genrom src/rom/apple_IIe.rom src/rom/slot6.rom > $@
2014-06-22 18:09:59 +00:00
src/x86/glue.S: src/disk.c src/vm.c src/display.c src/vm.c src/cpu-supp.c @AUDIO_GLUE_C@
2014-05-31 17:19:42 +00:00
./src/x86/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-04-26 21:01:26 +00:00
A2_TEST_SOURCES = $(apple2ix_SOURCES) src/test/testcommon.c
A2_TEST_CFLAGS = -DTESTING=1 -DCPU_TRACING=1 -DDISK_TRACING=1 -DVM_TRACING=1 -Isrc/test
2014-01-26 06:12:54 +00:00
TESTS = testcpu testdisplay testvm testdisk testtrace
check_PROGRAMS = testcpu testdisplay testvm testdisk testtrace
2014-01-26 06:12:54 +00:00
testcpu_SOURCES = src/test/testcpu.c $(A2_TEST_SOURCES) $(META_SRC)
testcpu_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UINTERFACE_CLASSIC
testcpu_CCASFLAGS = $(testcpu_CFLAGS)
2014-01-26 06:12:54 +00:00
testcpu_LDFLAGS = $(apple2ix_LDFLAGS)
testcpu_LDADD = @ASM_O@ @VIDEO_O@
testcpu_DEPENDENCIES = @ASM_O@ @META_O@ @VIDEO_O@
2014-01-26 06:12:54 +00:00
EXTRA_testcpu_SOURCES = $(ASM_SRC_x86)
testdisplay_SOURCES = src/test/testdisplay.c $(A2_TEST_SOURCES) $(META_SRC)
testdisplay_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UINTERFACE_CLASSIC
testdisplay_CCASFLAGS = $(testdisplay_CFLAGS)
2014-04-20 17:45:43 +00:00
testdisplay_LDFLAGS = $(apple2ix_LDFLAGS)
testdisplay_LDADD = @ASM_O@ @VIDEO_O@
2014-05-11 20:42:55 +00:00
testdisplay_DEPENDENCIES = @ASM_O@ @META_O@ @VIDEO_O@
EXTRA_testdisplay_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC)
testvm_SOURCES = src/test/testvm.c $(A2_TEST_SOURCES) $(META_SRC)
testvm_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UINTERFACE_CLASSIC
testvm_CCASFLAGS = $(testvm_CFLAGS)
testvm_LDFLAGS = $(apple2ix_LDFLAGS)
# HACK FIXME TODO NOTE: specify TESTVM_ASM_O to force it to rebuild with proper CCASFLAGS ... automake bug?
testvm_LDADD = @TESTVM_ASM_O@ @VIDEO_O@
testvm_DEPENDENCIES = @TESTVM_ASM_O@ @META_O@ @VIDEO_O@
EXTRA_testvm_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC)
testdisk_SOURCES = src/test/testdisk.c $(A2_TEST_SOURCES) $(META_SRC)
testdisk_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UINTERFACE_CLASSIC
testdisk_CCASFLAGS = $(testdisk_CFLAGS)
testdisk_LDFLAGS = $(apple2ix_LDFLAGS)
# HACK FIXME TODO NOTE: specify testdisk_ASM_O to force it to rebuild with proper CCASFLAGS ... automake bug?
testdisk_LDADD = @TESTDISK_ASM_O@ @VIDEO_O@
testdisk_DEPENDENCIES = @TESTDISK_ASM_O@ @META_O@ @VIDEO_O@
EXTRA_testdisk_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC)
testtrace_SOURCES = src/test/testtrace.c $(A2_TEST_SOURCES) $(META_SRC)
testtrace_CFLAGS = $(apple2ix_CFLAGS) $(A2_TEST_CFLAGS) -UAUDIO_ENABLED -UINTERFACE_CLASSIC
testtrace_CCASFLAGS = $(testtrace_CFLAGS)
testtrace_LDFLAGS = $(apple2ix_LDFLAGS)
# HACK FIXME TODO NOTE: specify testtrace_ASM_O to force it to rebuild with proper CCASFLAGS ... automake bug?
testtrace_LDADD = @TESTTRACE_ASM_O@ @VIDEO_O@
testtrace_DEPENDENCIES = @TESTTRACE_ASM_O@ @META_O@ @VIDEO_O@
EXTRA_testtrace_SOURCES = $(ASM_SRC_x86) $(VIDEO_SRC)
2014-01-26 06:12:54 +00:00
###############################################################################
# Misc & Installation
2014-01-26 06:12:54 +00:00
# manpage
2014-01-26 06:12:54 +00:00
man_MANS = docs/apple2ix.6
# shaders
shadersdir = @datadir@/@PACKAGE@/shaders
shaders_DATA = src/video/Basic.vsh src/video/Basic.fsh
# disk images
disksdir = @datadir@/@PACKAGE@/disks
disks_DATA = \
disks/README disks/blank.dsk.gz disks/blank.nib.gz disks/blank.po.gz disks/etc.dsk.gz \
disks/mystery.dsk.gz disks/speedtest.dsk.gz disks/speedtest.txt disks/flapple140.po.gz \
disks/testdisplay1.dsk.gz disks/testdisplay1.nib.gz disks/testvm1.dsk.gz disks/testvm1.nib.gz
# Extra distribution stuff
EXTRA_DIST = reconf.sh configure README.debugger PROBLEMS .apple2 \
\
$(disks_DATA) \
\
$(man_MANS) \
\
src/font.txt \
src/x86/genglue \
\
$(shaders_DATA)
2014-06-22 18:09:59 +00:00
CLEANFILES = src/font.c src/rom.c src/meta/debug.c src/x86/glue.S