File: Makefile.am

package info (click to toggle)
libti68k 1.4.2-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,252 kB
  • ctags: 3,111
  • sloc: ansic: 32,548; sh: 9,077; makefile: 437; sed: 93
file content (225 lines) | stat: -rw-r--r-- 5,218 bytes parent folder | download
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
223
224
225
## Process this file with automake to produce Makefile.in

#
# libraries to compile and install
#
lib_LTLIBRARIES = libti68k.la

# libtool stuff: set version and export symbols for resolving
libti68kincludedir = $(includedir)/tiemu
libti68k_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-export-dynamic

#
# setup source file variables
#
# ti68k header files for public installation (non-generated)
ti68k_public_h_sources = \
	callbacks.h \
	cmdinterface.h \
	commands.h \
	config.h \
	cputbl.h \
	debug.h \
	errcodes.h \
	globinfo.h \
	hardware.h \
	intlist.h \
	intl.h \
	keyboard.h \
	keydef.h \
	lib68k.h \
	linkport.h \
	memory.h \
	newcpu.h \
	options.h \
	packets.h \
	pause.h \
	platform.h \
	readcpu.h \
	resource.h \
	rom.h \
	str.h \
	sysconfig.h \
	sysdeps.h \
	tilibs.h

ti68k_c_sources = \
	cpu0.c \
	cpu1.c \
	cpu2.c \
	cpu3.c \
	cpu4.c \
	cpu5.c \
	cpu6.c \
	cpu7.c \
	cpu8.c \
	cpu9.c \
	cpuA.c \
	cpuB.c \
	cpuC.c \
	cpuD.c \
	cpuE.c \
	cpuF.c \
	cpudefs.c \
	cpustbl.c \
	cmdinterface.c \
	debugger.c \
	error.c \
	hardware.c \
	intlist.c \
	keyboard.c \
	lib68k.c \
	linkport.c \
	memory.c \
	readcpu.c \
	newcpu.c \
	rom.c

#
# setup ti68k sources and their dependancies
#
libti68kinclude_HEADERS = $(ti68k_public_h_sources)
libti68k_la_SOURCES = $(ti68k_c_sources)
MAINTAINERCLEANFILES =
EXTRA_HEADERS =
EXTRA_DIST = build68k.c gencpu.c table68k

#
# Some other (old) rules
#

distclean: clean

clean:
	$(RM) gencpu
	$(RM) build68k
#	$(RM) lib_test
#	$(RM) core
#	$(RM) *.o *~ $(LIB_NAME).a $(LIB_NAME).so* \#*
#	$(RM) *.log log
#	$(RM) ti68k-config

dos2unix:
	dos2unix
	lowercase
	uppercase

lines:
	wc -l *.c *.h

#
# Extra rules for building the emulation engine
#
#CPUFLAGS = -O3 -mpentium -fomit-frame-pointer -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -DX86_ASSEMBLY -D__inline__=inline -DSTATFS_NO_ARGS=2 -DSTATBUF_BAVAIL=f_bavail

# trying to be portable... *TRYING*
CPUFLAGS = $(CFLAGS) -fomit-frame-pointer -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -D__inline__=inline -DSTATFS_NO_ARGS=2 -DSTATBUF_BAVAIL=f_bavail


build68k: build68k.o
	@echo "-> Compiling 68k builder..."
	$(CC) $(LDFLAGS) -o $@ $?
gencpu: gencpu.o readcpu.o cpudefs.o
	@echo "-> Compiling CPU generator..."
	$(CC) $(LDFLAGS) -o $@ gencpu.o readcpu.o cpudefs.o
cpudefs.c: build68k table68k
	@echo "-> Building CPU definitions..."
	./build68k >cpudefs.c
cpustbl.c: gencpu
	@echo "-> Generating CPU table (cpustbl.c)..."
	./gencpu s >cpustbl.c
cputbl.c: gencpu
	@echo "-> Generating CPU table (cputbl.c)..."
	./gencpu t >cputbl.c
cputbl.h: gencpu
	@echo "-> Generating CPU table (cputbl.h)..."
	./gencpu h >cputbl.h
cpu0.c: gencpu
	@echo "-> Generating CPU table (0)..."
	./gencpu f 0 >cpu0.c
cpu1.c: gencpu
	@echo "-> Generating CPU table (1)..."
	./gencpu f 1 >cpu1.c
cpu2.c: gencpu
	@echo "-> Generating CPU table (2)..."
	./gencpu f 2 >cpu2.c
cpu3.c: gencpu
	@echo "-> Generating CPU table (3)..."
	./gencpu f 3 >cpu3.c
cpu4.c: gencpu
	@echo "-> Generating CPU table (4)..."
	./gencpu f 4 >cpu4.c
cpu5.c: gencpu
	@echo "-> Generating CPU table (5)..."
	./gencpu f 5 >cpu5.c
cpu6.c: gencpu
	@echo "-> Generating CPU table (6)..."
	./gencpu f 6 >cpu6.c
cpu7.c: gencpu
	@echo "-> Generating CPU table (7)..."
	./gencpu f 7 >cpu7.c
cpu8.c: gencpu
	@echo "-> Generating CPU table (8)..."
	./gencpu f 8 >cpu8.c
cpu9.c: gencpu
	@echo "-> Generating CPU table (9)..."
	./gencpu f 9 >cpu9.c
cpuA.c: gencpu
	@echo "-> Generating CPU table (A)..."
	./gencpu f 10 >cpuA.c
cpuB.c: gencpu
	@echo "-> Generating CPU table (B)..."
	./gencpu f 11 >cpuB.c
cpuC.c: gencpu
	@echo "-> Generating CPU table (C)..."
	./gencpu f 12 >cpuC.c
cpuD.c: gencpu
	@echo "-> Generating CPU table (D)..."
	./gencpu f 13 >cpuD.c
cpuE.c: gencpu
	@echo "-> Generating CPU table (E)..."
	./gencpu f 14 >cpuE.c
cpuF.c: gencpu
	@echo "-> Generating CPU table (F)..."
	./gencpu f 15 >cpuF.c

cpu0.o: cpu0.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu1.o: cpu1.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu2.o: cpu2.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu3.o: cpu3.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu4.o: cpu4.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu5.o: cpu5.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu6.o: cpu6.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu7.o: cpu7.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu8.o: cpu8.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpu9.o: cpu9.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuA.o: cpuA.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuB.o: cpuB.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuC.o: cpuC.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuD.o: cpuD.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuE.o: cpuE.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c
cpuF.o: cpuF.c cputbl.h
	$(CC) $(INCLUDES) -c $(INCDIRS) $(CPUFLAGS) $*.c

cpustbl.o: cputbl.h 
cputbl.o: cputbl.h 
 
build68k.o: readcpu.h 
readcpu.o:  readcpu.h