-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile32.RiscOS
64 lines (48 loc) · 1.47 KB
/
Makefile32.RiscOS
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
#
# Makefile for !Antiword (RISC OS version, using !gcc)
#
CC = gccbin:gcc
LD = gccbin:gcc
TOUCH = stamp
# must equal to DEBUG or NDEBUG
DB = DEBUG
# Optimization: -O<n> or debugging: -g
OPT = -O2
OPTIONS = -mlibscl -mthrowback
LDFLAGS = -mlibscl -mthrowback
#LDFLAGS = -mlibscl -mthrowback -d
LDLIBS = flexlib:o32.flexlib DeskLib:o.DeskLib270
CFLAGS = -Wall -pedantic -Wno-char-subscripts $(OPT) -D__riscos -D$(DB) -DTRACE
#CFLAGS = -Wall -pedantic -Wno-char-subscripts -D__riscos -D$(DB) -DTRACE
OBJS1 = o.main_ros\
o.blocklist o.chartrans o.datalist o.depot o.dib2sprt o.doclist\
o.draw o.drawfile o.fail o.finddata o.findtext o.fontlist o.fonts\
o.fonts_r o.hdrftrlist o.icons o.imgexam o.imgtrans o.jpeg2sprt\
o.listlist o.misc o.notes o.options o.out2window o.pictlist\
o.png2sprt o.prop0 o.prop2 o.prop6 o.prop8 o.properties o.propmod\
o.rowlist o.riscos o.saveas o.sectlist o.stylelist o.stylesheet\
o.summary o.tabstop o.word2text o.worddos o.wordlib o.wordmac\
o.wordole o.wordwin o.xmalloc
OBJS2 = o.startup\
o.riscos\
o.fail
IMAGE1 = @.!Antiword
IMAGE2 = @.!RunImage
all: Startup Antiword
Antiword: $(IMAGE1)
@ time
$(IMAGE1): $(OBJS1)
$(LD) $(LDFLAGS) $(OBJS1) $(LDLIBS) -o $@
@ $(TOUCH) $@
Startup: $(IMAGE2)
@ time
$(IMAGE2): $(OBJS2)
$(LD) $(LDFLAGS) $(OBJS2) $(LDLIBS) -o $@
@ $(TOUCH) $@
#.c.o:
# $(CC) $(CFLAGS) $(OPTIONS) -c $<
o.%: c.%
$(CC) $(CFLAGS) $(OPTIONS) -c $<
i.%: c.%
$(CC) $(CFLAGS) $(OPTIONS) -E $< { > $@ }
o.main_ros: h.version