Imported from antiword-0.37.tar.gz.
[antiword.git] / Makefile.RiscOS
blob8ce023fa5c39cfeeb8321e7bda8c26749b8b08cb
2 # Makefile for !Antiword (RISC OS version)
5 CC      = cc
6 LD      = link
7 TOUCH   = stamp
9 # must equal to DEBUG or NDEBUG
10 DB = DEBUG
12 OPTIONS = -throwback
13 #LDFLAGS = -d
14 LDLIBS  = C:o.stubs DeskLib:o.DeskLib230
16 CFLAGS  = -IC:,DeskLib:,flexlib: -D__riscos -D$(DB) -DTRACE
17 #CFLAGS = -IC:,DeskLib:,flexlib: -g -D__riscos -D$(DB)
19 OBJS1   = o.main_ros\
20         o.blocklist o.chartrans o.datalist o.depot o.dib2sprt o.doclist\
21         o.draw o.drawfile o.fail o.finddata o.findtext o.fontlist o.fonts\
22         o.fonts_r o.hdrftrlist o.icons o.imgexam o.imgtrans o.jpeg2sprt\
23         o.listlist o.misc o.notes o.options o.out2window o.pictlist\
24         o.png2sprt o.prop0 o.prop2 o.prop6 o.prop8 o.properties o.propmod\
25         o.rowlist o.riscos o.saveas o.sectlist o.stylelist o.stylesheet\
26         o.summary o.tabstop o.word2text o.worddos o.wordlib o.wordmac\
27         o.wordole o.wordwin o.xmalloc
29 OBJS2   = o.startup\
30         o.riscos\
31         o.fail
33 IMAGE1  = @.!Antiword
34 IMAGE2  = @.!RunImage
36 All:            Antiword Startup
38 Antiword:       $(IMAGE1)
39         @       time
41 $(IMAGE1):      $(OBJS1)
42                 $(LD) $(LDFLAGS) $(OBJS1) $(LDLIBS) -o $@
43         @       $(TOUCH) $@
45 Startup:        $(IMAGE2)
46         @       time
48 $(IMAGE2):      $(OBJS2)
49                 $(LD) $(LDFLAGS) $(OBJS2) $(LDLIBS) -o $@
50         @       $(TOUCH) $@
52 .c.o:
53                 $(CC) $(CFLAGS) $(OPTIONS) -c c.$*
55 o.main_ros:     h.version