-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
165 lines (143 loc) · 2.64 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# DGen/SDL v1.26+
include $(top_srcdir)/Makefile.asm.am
DIST_SUBDIRS = musa mz80 sdl star cyclone doc
# SDL
SUBDIRS = sdl
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/sdl
dgen_DEPENDENCIES = sdl/libpd.a
dgen_LDADD = sdl/libpd.a
# Musashi
if WITH_MUSA
SUBDIRS += musa
dgen_DEPENDENCIES += musa/libmusa68.a
dgen_LDADD += musa/libmusa68.a
endif
# MZ80
if WITH_MZ80
SUBDIRS += mz80
dgen_DEPENDENCIES += mz80/libmz80.a
dgen_LDADD += mz80/libmz80.a
endif
# DOCS
SUBDIRS += doc
# StarScream
if WITH_STAR
SUBDIRS += star
dgen_DEPENDENCIES += star/libstarcpu.a
dgen_LDADD += star/libstarcpu.a
endif
# Cyclone 68000
if WITH_CYCLONE
SUBDIRS += cyclone
dgen_DEPENDENCIES += cyclone/libcyclonecpu.a
dgen_LDADD += cyclone/libcyclonecpu.a
endif
bin_PROGRAMS = dgen dgen_tobin
man_MANS = dgen.1 dgenrc.5 dgen_tobin.1
EXTRA_DIST = sample.dgenrc
# dgen
dgen_LDADD += $(DGEN_LIBS)
dgen_SOURCES = \
rc.h \
rc-vars.h \
rc.cpp \
romload.c \
md.h \
md.cpp \
mdfr.cpp \
decode.h \
decode.c \
vdp.cpp \
save.cpp \
graph.cpp \
fm.h \
fm.c \
myfm.cpp \
sn76496.h \
sn76496.c \
ras-drawplane.h \
ras.cpp \
amigaos.cpp \
main.cpp \
mem.cpp \
pd.h \
ckvp.c \
ckvp.h \
joystick.cpp \
system.c
# debugger
if WITH_DEBUGGER
AM_CPPFLAGS += -DUSE_UTF8
dgen_SOURCES += \
debug.cpp \
linenoise/linenoise.h \
linenoise/linenoise.c \
linenoise/utf8.c
endif
# dZ80
if WITH_DZ80
AM_CPPFLAGS += -I$(top_srcdir)/dz80 -D_DZ80_EXCLUDE_SCRIPT
dgen_SOURCES += \
dz80/dissz80.c \
dz80/dissz80.h \
dz80/dissz80p.h \
dz80/types.h \
dz80/tables.c \
dz80/noscript.c
endif
# CZ80
if WITH_CZ80
AM_CPPFLAGS += -I$(top_srcdir)/cz80
dgen_SOURCES += cz80/cz80.c
endif
# DrZ80
if WITH_DRZ80
AM_CPPFLAGS += -I$(top_srcdir)/drz80
dgen_SOURCES += drz80/drz80.s
endif
# hqx
if WITH_HQX
AM_CPPFLAGS += -I$(top_srcdir)/hqx/src -DHQX_NO_CALLCONV -DHQX_NO_API
dgen_SOURCES += \
hqx/src/init.c \
hqx/src/hq2x_32.c \
hqx/src/hq2x_24.c \
hqx/src/hq2x_16.c \
hqx/src/hq2x-int.h \
hqx/src/hq3x_32.c \
hqx/src/hq3x_24.c \
hqx/src/hq3x_16.c \
hqx/src/hq3x-int.h \
hqx/src/hq4x_32.c \
hqx/src/hq4x_24.c \
hqx/src/hq4x_16.c \
hqx/src/hq4x-int.h \
hqx/src/hqx.h \
hqx/src/common.h
endif
# scale2x
if WITH_SCALE2X
AM_CPPFLAGS += -I$(top_srcdir)/scale2x
dgen_SOURCES += \
scale2x/scale2x.c \
scale2x/scale2x.h \
scale2x/scale3x.c \
scale2x/scale3x.h \
scale2x/scalebit.c \
scale2x/scalebit.h
endif
if WITH_X86_TILES
dgen_SOURCES += x86_tiles.asm
endif
if WITH_X86_CTV
dgen_SOURCES += x86_ctv.asm
endif
if WITH_X86_ASM
if WITH_X86_MMX
dgen_SOURCES += x86_mmx_memcpy.asm
else
dgen_SOURCES += x86_memcpy.asm
endif
endif
# dgen_tobin
dgen_tobin_SOURCES = tobin.c romload.c system.c