-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile.iPodLinux
40 lines (29 loc) · 1.15 KB
/
Makefile.iPodLinux
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
# -*- Makefile -*-
#
# Makefile.iPodLinux - Makefile rules for uCLinux on iPod (photo/nano/video)
# Thanks Shiikuru-san
#
# Playing movie and audio is not supported.
#
PREF = /usr/local/arm-uclinux-tools/arm-uclinux-elf
INCS = `$(PREF)/bin/sdl-config --cflags` `$(PREF)/bin/freetype-config --cflags`
LIBS = `$(PREF)/bin/sdl-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lSDL -lfreetype -ljpeg -lbz2
# for iPod 5G (video) : 320x240
#DEFS = -DIPODLINUX -DLINUX -DPDA_WIDTH=320 -DBPP16
# for iPod photo : 220x176 -> 220x165
#DEFS = -DIPODLINUX -DLINUX -DPDA_WIDTH=220 -DBPP16
# for iPod nano : 176x132
#DEFS = -DIPODLINUX -DLINUX -DPDA_WIDTH=176 -DBPP16
# for iPod (nano, photo, 4G color, 5G) : Auto
DEFS = -DIPODLINUX -DLINUX -DPDA_AUTOSIZE -DBPP16
EXESUFFIX =
OBJSUFFIX = .o
.SUFFIXES:
.SUFFIXES: $(OBJSUFFIX) .cpp .h
CC = arm-uclinux-elf-g++
LD = arm-uclinux-elf-g++ -Wl,-elf2flt -o
CFLAGS = -O3 -Wall -fno-exceptions -fno-rtti -fno-check-new -fomit-frame-pointer -pipe -c $(INCS) $(DEFS)
RM = rm -f
TARGET = onscripter$(EXESUFFIX) nsaconv$(EXESUFFIX) sarconv$(EXESUFFIX) nsadec$(EXESUFFIX) sardec$(EXESUFFIX)
EXT_OBJS =
include Makefile.onscripter