-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
222 lines (190 loc) · 5.3 KB
/
Makefile.am
File metadata and controls
222 lines (190 loc) · 5.3 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
## Process this file with automake to produce Makefile.in
## Copyright (c) 1999-2017 Philip Kendall
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License along
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
##
## Author contact information:
##
## E-mail: philip-fuse@shadowmagic.org.uk
ACLOCAL_AMFLAGS = -I m4
bin_PROGRAMS = fuse
noinst_PROGRAMS =
fuse_SOURCES = display.c \
event.c \
fuse.c \
input.c \
keyboard.c \
loader.c \
machine.c \
memory_pages.c \
mempool.c \
menu.c \
movie.c \
module.c \
periph.c \
phantom_typist.c \
profile.c \
psg.c \
rectangle.c \
rzx.c \
screenshot.c \
settings.c \
slt.c \
snapshot.c \
sound.c \
spectrum.c \
svg.c \
tape.c \
ui.c \
uidisplay.c \
uimedia.c \
utils.c
fuse_LDADD = \
$(PTHREAD_LIBS) \
$(LIBSPECTRUM_LIBS) \
$(GTK_LIBS) \
$(GLIB_LIBS) \
$(PNG_LIBS) \
$(X_LIBS) \
$(XML_LIBS)
if USE_SDL1
fuse_LDADD += $(SDL1_LIBS)
endif
if USE_SDL2
fuse_LDADD += $(SDL2_LIBS)
endif
fuse_DEPENDENCIES =
EXTRA_fuse_SOURCES =
BUILT_SOURCES = options.h settings.c settings.h
settings.c: settings.pl settings.dat
$(AM_V_GEN)$(PERL) -I$(srcdir)/perl $(srcdir)/settings.pl $(srcdir)/settings.dat > $@.tmp && mv $@.tmp $@
settings.h: settings-header.pl settings.dat
$(AM_V_GEN)$(PERL) -I$(srcdir)/perl $(srcdir)/settings-header.pl $(srcdir)/settings.dat > $@.tmp && mv $@.tmp $@
options.h: $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/@OPTIONS_DIR@/options-header.pl $(srcdir)/ui/options.dat $(srcdir)/perl/Fuse.pm $(srcdir)/perl/Fuse/Dialog.pm
$(AM_V_GEN)$(PERL) $(srcdir)/perl/cpp-perl.pl config.h $(srcdir)/ui/options.dat | $(PERL) -I$(srcdir)/perl $(srcdir)/ui/@OPTIONS_DIR@/options-header.pl - public > $@.tmp && mv $@.tmp $@
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(GTK_CFLAGS) \
$(LIBSPECTRUM_CFLAGS) \
$(XML_CFLAGS) \
-DFUSEDATADIR="\"${pkgdatadir}\"" \
$(PNG_CFLAGS)
if USE_SDL1
AM_CPPFLAGS += $(SDL1_CFLAGS)
endif
if USE_SDL2
AM_CPPFLAGS += $(SDL2_CFLAGS)
endif
AM_CFLAGS = $(WARN_CFLAGS) $(PTHREAD_CFLAGS)
noinst_HEADERS = bitmap.h \
compat.h \
display.h \
event.h \
fuse.h \
input.h \
keyboard.h \
loader.h \
machine.h \
memory_pages.h \
mempool.h \
menu.h \
movie.h \
movie_tables.h \
module.h \
periph.h \
phantom_typist.h \
psg.h \
rectangle.h \
rzx.h \
screenshot.h \
settings.h \
slt.h \
snapshot.h \
sound.h \
spectrum.h \
svg.h \
tape.h \
utils.h \
options.h \
profile.h
EXTRA_DIST = AUTHORS \
INSTALL \
PORTING \
README \
THANKS \
keysyms.dat \
keysyms.pl \
m4/ax_create_stdint_h.m4 \
m4/ax_pthread.m4 \
m4/ax_string_strcasecmp.m4 \
m4/pkg.m4 \
m4/sdl.m4 \
menu_data.dat \
menu_data.pl \
settings.dat \
settings.pl \
settings-header.pl
CLEANFILES = options.h \
settings.c \
settings.h
DISTCLEANFILES =
pkgdata_DATA =
test: z80/coretest unittests/displaytest
z80/coretest $(srcdir)/z80/tests/tests.in > z80/tests.actual
cmp z80/tests.actual $(srcdir)/z80/tests/tests.expected
./unittests/displaytest
## Resources for Windows executables
if COMPAT_WIN32
fuse_LDFLAGS = -mwindows
fuse_SOURCES += windres.rc
fuse_LDADD += -lcomctl32 -lwinmm windres.o
fuse_DEPENDENCIES += windres.o
windres.o: windres.rc data/win32/winfuse.ico data/win32/fuse.manifest $(ui_win32_res)
$(AM_V_GEN)$(WINDRES) -I$(srcdir) -I. $(srcdir)/windres.rc $(LIBSPECTRUM_CFLAGS) $(CPPFLAGS) windres.o
endif
include compat/Makefile.am
include data/Makefile.am
include debugger/Makefile.am
include hacking/Makefile.am
include infrastructure/Makefile.am
include lib/Makefile.am
include machines/Makefile.am
include man/Makefile.am
include peripherals/Makefile.am
include perl/Makefile.am
include pokefinder/Makefile.am
include roms/Makefile.am
include sound/Makefile.am
include timer/Makefile.am
include ui/Makefile.am
include ui/fb/Makefile.am
include ui/gtk3/Makefile.am
include ui/null/Makefile.am
include ui/scaler/Makefile.am
include ui/sdl/Makefile.am
include ui/sdl2/Makefile.am
include ui/widget/Makefile.am
include ui/wii/Makefile.am
include ui/win32/Makefile.am
include ui/xlib/Makefile.am
include unittests/Makefile.am
include z80/Makefile.am
check-local: fuse unittests/displaytest unittests/sdl2displaytest unittests/sdl2scalerstatetest unittests/sdl2joysticktest unittests/sdl2mousetest
@test -e $(top_builddir)/roms || ln -sf "$(abs_top_srcdir)/roms" $(top_builddir)/roms
$(top_builddir)/fuse --unittests
$(top_builddir)/unittests/displaytest
$(top_builddir)/unittests/sdl2displaytest
$(top_builddir)/unittests/sdl2scalerstatetest
$(top_builddir)/unittests/sdl2joysticktest
$(top_builddir)/unittests/sdl2mousetest