File: Makefile

package info (click to toggle)
powder 117-2
  • links: PTS
  • area: non-free
  • in suites: stretch
  • size: 10,576 kB
  • ctags: 3,545
  • sloc: cpp: 55,002; makefile: 541; sh: 258; objc: 245; ansic: 107; csh: 54
file content (69 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | download | duplicates (7)
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
TARGET = powder

GP2XSDK=/usr/local/gp2xdev
GP2XBIN=$(GP2XSDK)/bin
SDL_CONFIG = $(GP2XBIN)/sdl-config

DEFAULT_CFLAGS = $(shell $(SDL_CONFIG) --cflags)
CC=$(GP2XBIN)/gp2x-g++

OFILES = ../linux/linuxmain.o \
	 hamfake.o \
	 ../../action.o \
	 ../../assert.o \
	 ../../ai.o \
	 ../../artifact.o \
	 ../../bmp.o \
	 ../../build.o \
	 ../../buf.o \
	 ../../control.o \
	 ../../creature.o \
	 ../../dpdf_table.o \
	 ../../encyc_support.o \
	 ../../gfxengine.o \
	 ../../grammar.o \
	 ../../hiscore.o \
	 ../../input.o \
	 ../../intrinsic.o \
	 ../../item.o \
	 ../../map.o \
	 ../../mobref.o \
	 ../../msg.o \
	 ../../name.o \
	 ../../piety.o \
	 ../../rand.o \
	 ../../signpost.o \
	 ../../smokestack.o \
	 ../../speed.o \
	 ../../sramstream.o \
	 ../../stylus.o \
	 ../../victory.o \
	 ../../encyclopedia.o \
	 ../../glbdef.o \
	 ../../credits.o \
	 ../../license.o \
	 ../../gfx/all_bitmaps.o \
	 ../../rooms/allrooms.o

include ../../make/makerules.GP2X

CFLAGS = -O3 -g -I$(GP2XSDK)/include $(shell $(SDL_CONFIG) --cflags)

CXXFLAGS = $(CFLAGS)
ASFLAGS = $(CFLAGS)

LIBS += $(shell $(SDL_CONFIG) --static-libs) -static

clean:
	cd ../.. ; rm -f *.o
	cd ../../gfx ; rm -f *.o
	rm -f *.o
	cd ../sdl ; rm -f *.o
	cd ../linux ; rm -f *.o
	rm -f $(TARGET)

postmake:
	cp ../../CREDITS.TXT Powder2X/CREDITS.TXT
	cp ../../README.TXT Powder2X/README.TXT
	cp ../../LICENSE.TXT Powder2X/LICENSE.TXT
	cp powder Powder2X/pdata