-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
199 lines (176 loc) · 3.92 KB
/
Makefile
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
#
# use 'make IPOD=1' to build for iPod, 'make MINI=1' for x11-mini,
# 'make PHOTO=1' for x11-photo, and 'make' for x11
#
# directory structure is set up as follows:
# ../microwindows
# ipod/src - build for ipod
# ipod-x11/src - build for x11
# mini-x11/src - build for mini on x11
# photo-x11/src - build for photo on x11
# ../libjpeg
# ipod - jpeg library built for ipod
# ipod-x11 - jpeg library built for host(optional)
# ../libitunesdb
# ipod/src - build for ipod
# ipod-x11/src - build for x11
# ../ipp - Intel Performance Primitives
# ../helix-aacdec - Helix AAC decoder library
# ipod - jpeg library built for ipod
# ipod-x11 - jpeg library built for host (optional, x86 only)
# ../mp4ff - MP4 file format library
# ipod - jpeg library built for ipod
# ipod-x11 - jpeg library built for host (optional, x86 only)
# ../mikmod - MikMod music module engine
# ipod - mikmod built for ipod
TARGETFLAG=x11
ifdef SDL
GFXLIBFLAG=sdl
else
GFXLIBFLAG=mwin
endif
ifneq ($(IPOD),)
# iPod build
TARGETFLAG=ipod
CC= arm-uclinux-elf-gcc
CFLAGS= -DIPOD -D__linux__
LDFLAGS= -Wl,-elf2flt
LIBITUNESDB= ../libitunesdb/ipod/src
LIBMPDCLIENT= ../libmpdclient/ipod
#IPP= ../ipp
#AACDEC= ../helix-aacdec/ipod
#MP4FF=../mp4ff/ipod
#CFLAGS+= -I$(IPP)/include -I$(AACDEC)/pub -I$(MP4FF)
CFLAGS+= `ttk-config --$(TARGETFLAG) --$(GFXLIBFLAG) --cflags`
LDFLAGS+=`ttk-config --$(TARGETFLAG) --$(GFXLIBFLAG) --libs`
else
CC=gcc
CFLAGS= -I$(IPP)/include `ttk-config --$(TARGETFLAG) --$(GFXLIBFLAG) --cflags`
LDFLAGS= `ttk-config --$(TARGETFLAG) --$(GFXLIBFLAG) --libs`
LIBITUNESDB= ../libitunesdb/ipod-x11/src
LIBMPDCLIENT= ../libmpdclient/ipod-x11
ifneq ($(shell "arch"),ppc)
# if not ppc or x86, change ppc with output from 'arch'
AACDEC= ../helix-aacdec/ipod-x11
MP4FF=../mp4ff/ipod-x11
CFLAGS+= -DUSE_HELIXAACDEC -I$(AACDEC)/pub -I$(MP4FF)
LDFLAGS+= $(AACDEC)/libaacdec.a \
$(MP4FF)/libmp4ff.a
endif
# for libjpeg on x11
#LDFLAGS+= -L../libjpeg/ipod-x11
endif
PZ_VER=\"ttkzilla `date -u +"%Y-%m-%d"`CVS\"
CFLAGS+=\
-Wall -g \
-I$(LIBITUNESDB) \
-DPZ_VER="$(PZ_VER)"
LDFLAGS+=\
$(LIBITUNESDB)/.libs/libitunesdb.a
#LDFLAGS+=
OBJS=\
pz.o \
display.o \
header.o \
dialog.o \
appearance.o \
image.o \
browser.o \
ipod.o \
menu.o \
piezo.o \
textview.o \
mp3.o \
message.o \
slider.o \
audio.o \
about.o \
othello.o \
pong.o \
calendar.o \
btree.o \
itunes_db.o \
itunesmenu.o \
tictactoe.o \
tunnel.o \
calc.o \
poddraw.o \
playlist.o \
cube.o \
mandelpod.o \
matrix.o \
lights.o \
minesweeper.o \
ipobble.o \
invaders.o \
vectorfont.o \
oss.o \
clocks.o \
fonts.o \
tzx.o \
dialer.o \
wumpus.o \
settings.o \
usb.o \
fw.o \
video/video.o \
video/videocop.o \
vortex/console.o \
vortex/levels.o \
vortex/vortex.o \
vortex/globals.o \
vortex/gameobjs.o \
Steroids/asteroid.o \
Steroids/main.o \
Steroids/object.o \
Steroids/polygon.o \
Steroids/ship.o \
Steroids/shot.o \
Steroids/vector.o \
bluecube/box.o \
bluecube/main.o \
bluecube/pieces.o \
tuxchess/board.o \
tuxchess/data.o \
tuxchess/eval.o \
tuxchess/main.o \
tuxchess/search.o \
aac.o
#ifneq ($(IPOD),)
#OBJS+=\
# mp3decoder.o
#endif
# additions for MikMod builds...
ifneq ($(MIKMOD),)
OBJS+= mikmod/ipodmikmod.o
LDFLAGS+= -L../mikmod/ipod/lib
CFLAGS+= -DMIKMOD -I../mikmod/ipod/include
ifneq ($(IPOD),)
LDFLAGS+= -lmikmod -lmmio
OBJS+= mikmod/mlist.o mikmod/marchive.o
endif
endif
# locale stuff
ifneq ($(LOCALE),)
CFLAGS+= -DLOCALE
ifneq ($(IPOD),)
LDFLAGS+= -lintl
endif
endif
# mpdc stuff
ifneq ($(MPDC),)
CFLAGS+= -DMPDC -I$(LIBMPDCLIENT)
LDFLAGS+= $(LIBMPDCLIENT)/libmpdclient.a
OBJS+= \
mpdc/mpdc.o \
mpdc/menu.o \
mpdc/playing.o \
mpdc/submenu.o
endif
all: ttkzilla
ttkzilla: $(OBJS) Makefile
$(CC) $(OBJS) -o ttkzilla $(CFLAGS) $(LDFLAGS)
clean:
$(RM) $(OBJS) *~ podzilla podzilla.gdb podzilla.pot ttkzilla ttkzilla.gdb ttkzilla.pot
translate:
xgettext -kN_ -k_ -o ttkzilla.pot `find . -type f -name '*.c' -print`