Imported from antiword-0.37.tar.gz.
[antiword.git] / Makefile32.RiscOS
blob263028206ab6154d8d14bd59a371286809ee3386
2 # Makefile for !Antiword (RISC OS version, using !gcc)
5 CC      = gccbin:gcc
6 LD      = gccbin:gcc
7 TOUCH   = stamp
9 # must equal to DEBUG or NDEBUG
10 DB      = DEBUG
11 # Optimization: -O<n> or debugging: -g
12 OPT     = -O2
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
23 OBJS1 = o.main_ros\
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
33 OBJS2 = o.startup\
34         o.riscos\
35         o.fail
37 IMAGE1  = @.!Antiword
38 IMAGE2  = @.!RunImage
40 all:            Startup Antiword
42 Antiword:       $(IMAGE1)
43         @       time
45 $(IMAGE1):      $(OBJS1)
46                 $(LD) $(LDFLAGS) $(OBJS1) $(LDLIBS) -o $@
47         @       $(TOUCH) $@
49 Startup:        $(IMAGE2)
50         @       time
52 $(IMAGE2):      $(OBJS2)
53                 $(LD) $(LDFLAGS) $(OBJS2) $(LDLIBS) -o $@
54         @       $(TOUCH) $@
56 #.c.o:
57 #               $(CC) $(CFLAGS) $(OPTIONS) -c $<
58 o.%: c.%
59                 $(CC) $(CFLAGS) $(OPTIONS) -c $<
60                 
61 i.%: c.%
62                 $(CC) $(CFLAGS) $(OPTIONS) -E $< { > $@ }
64 o.main_ros:     h.version