-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (33 loc) · 816 Bytes
/
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
OBJS = dopewars.o
CC = m68k-palmos-coff-gcc
#uncomment this if you want to build a gdb debuggable version
#DEFINES = -DDEBUG
INCLUDES =
CSFLAGS = -O2 -S $(DEFINES) $(INCLUDES)
CFLAGS = -O2 -g $(DEFINES) $(INCLUDES)
PILRC = pilrc
TXT2BITM = txt2bitm
OBJRES = m68k-palmos-coff-obj-res
BUILDPRC = build-prc
ICONTEXT = "DopeWars"
APPID = Dope
PRC = dopewars.prc
all: $(PRC)
.S.o:
$(CC) $(TARGETFLAGS) -c $<
.c.s:
$(CC) $(CSFLAGS) $<
$(PRC): code.stamp bin.stamp
$(BUILDPRC) $@ $(ICONTEXT) $(APPID) *.grc *.bin
code.stamp: dopewars
$(OBJRES) dopewars
touch code.stamp
bin.stamp: dopewars.rcp
$(PILRC) dopewars.rcp
touch bin.stamp
dopewars: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $@
fullclean:
rm -rf *.[oa] dopewars *.bin *.stamp *.grc dopewars.prc
clean:
rm -rf *.[oa] dopewars *.bin *.stamp *.grc