File: Makefile.iPhone

package info (click to toggle)
onscripter 20161102-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,288 kB
  • ctags: 1,866
  • sloc: cpp: 31,303; makefile: 83; sh: 13
file content (39 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (6)
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
# -*- Makefile -*-
#
# Makefile.iPhone - Makefile rules for iPhone & iPod touch
# 

PREF = /usr/local/arm-apple-darwin

INCS = `$(PREF)/bin/sdl-config --cflags` `$(PREF)/bin/freetype-config --cflags`
#LIBS = `$(PREF)/bin/sdl-config --libs` -lSDL_ttf -lSDL_image -lSDL_mixer -lSDL -lvorbisidec -lfreetype -ljpeg -lpng -lbz2 -lz
LIBS = `$(PREF)/bin/sdl-config --libs` \
	$(PREF)/lib/libSDL_ttf.a \
	$(PREF)/lib/libSDL_image.a \
	$(PREF)/lib/libSDL_mixer.a \
	$(PREF)/lib/libSDL.a \
	$(PREF)/lib/libvorbisidec.a \
	$(PREF)/lib/libfreetype.a \
	$(PREF)/lib/libjpeg.a \
	$(PREF)/lib/libpng.a \
	-lz -lbz2

DEFS = -DIPHONE -DMACOSX -DPDA_WIDTH=424 -DBPP16 -DUSE_OGG_VORBIS -DINTEGER_OGG_VORBIS -DUTF8_CAPTION -DUTF8_FILESYSTEM

EXESUFFIX =
OBJSUFFIX = .o

.SUFFIXES:
.SUFFIXES: $(OBJSUFFIX) .cpp .h

CC = arm-apple-darwin-g++ 
LD = arm-apple-darwin-g++ -o

#CFLAGS = -g -Wall -Wpointer-arith -pipe -c $(INCS) $(DEFS)
CFLAGS = -O3 -Wall -Wpointer-arith -pipe -c $(INCS) $(DEFS)
RM = rm -f

TARGET = onscripter$(EXESUFFIX) sardec$(EXESUFFIX) nsadec$(EXESUFFIX) sarconv$(EXESUFFIX) nsaconv$(EXESUFFIX)
EXT_OBJS = 

include Makefile.onscripter