2 # Makefile for !Antiword (RISC OS version, using !gcc)
9 # must equal to DEBUG or NDEBUG
11 # Optimization: -O<n> or debugging: -g
14 OPTIONS = -mlibscl -mthrowback
15 LDFLAGS = -mlibscl -mthrowback
16 #LDFLAGS = -mlibscl -mthrowback -d
17 LDLIBS = flexlib:o32.flexlib DeskLib:o.DeskLib270
20 CFLAGS = -Wall -pedantic -Wno-char-subscripts $(OPT) -D__riscos -D$(DB) -DTRACE
21 #CFLAGS = -Wall -pedantic -Wno-char-subscripts -D__riscos -D$(DB) -DTRACE
24 o.blocklist o.chartrans o.datalist o.depot o.dib2sprt o.doclist\
25 o.draw o.drawfile o.fail o.finddata o.findtext o.fontlist o.fonts\
26 o.fonts_r o.hdrftrlist o.icons o.imgexam o.imgtrans o.jpeg2sprt\
27 o.listlist o.misc o.notes o.options o.out2window o.pictlist\
28 o.png2sprt o.prop0 o.prop2 o.prop6 o.prop8 o.properties o.propmod\
29 o.rowlist o.riscos o.saveas o.sectlist o.stylelist o.stylesheet\
30 o.summary o.tabstop o.word2text o.worddos o.wordlib o.wordmac\
31 o.wordole o.wordwin o.xmalloc
46 $(LD) $(LDFLAGS) $(OBJS1) $(LDLIBS) -o $@
53 $(LD) $(LDFLAGS) $(OBJS2) $(LDLIBS) -o $@
57 # $(CC) $(CFLAGS) $(OPTIONS) -c $<
59 $(CC) $(CFLAGS) $(OPTIONS) -c $<
62 $(CC) $(CFLAGS) $(OPTIONS) -E $< { > $@ }