File: makefile

package info (click to toggle)
powder 118%2Bdfsg1-4
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 10,524 kB
  • sloc: cpp: 55,308; java: 824; makefile: 541; sh: 260; objc: 245; ansic: 107; xml: 55; csh: 54
file content (91 lines) | stat: -rw-r--r-- 1,705 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
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
#################################
# HAM Makefile
#################################

include $(HAMDIR)/system/master.mak

#
# Set the name of your desired GBA image name here
#
PROGNAME = powder

#
# Set a list of files you want to compile 
# Please keep these alphabetical.
# 
OFILES += action.o \
	  ai.o \
	  artifact.o \
	  assert.o \
	  buf.o \
	  build.o \
	  control.o \
	  creature.o \
	  credits.o \
	  dpdf_table.o \
	  encyclopedia.o \
	  encyc_support.o \
	  gfxengine.o \
	  glbdef.o \
	  grammar.o \
	  hiscore.o \
	  input.o \
	  intrinsic.o \
	  item.o \
	  license.o \
	  main.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 \
	  gfx/all_bitmaps.o \
	  rooms/allrooms.o

######################################
# Standard Makefile targets start here
######################################

all : premake $(PROGNAME).$(EXT) postmake

premake:
	${HOME}/bin/enummaker source.txt
	${HOME}/bin/txt2c LICENSE.TXT license.cpp
	${HOME}/bin/txt2c CREDITS.TXT credits.cpp
	${HOME}/bin/encyclopedia2c encyclopedia.txt

postmake: powder.gba
	${HOME}/bin/gbafix powder.gba -tPOWDER`cat VERSION.TXT`


#
# Most Makefile targets are predefined for you, suchas
# vba, clean ... in the following file
#
include $(HAMDIR)/system/standard-targets.mak

######################################
# custom  Makefile targets start here
######################################


gfx: 
	cd gfx
	gfx2gba -t8 -m -fsrc *.bmp
	
clean:
	rm -f *.o *.i *.ii *.s
	rm -f gfx/*.o
	rm -f rooms/*.o
	rm -f glbdef.cpp glbdef.h
	rm -f license.cpp
	rm -f credits.cpp
	rm -f encyclopedia.cpp
	rm -f encyclopedia.h