Imported from antiword-0.36.tar.gz.
[antiword.git] / Makefile.RiscOS
blobbb9bbde8469557f089c9bd0a2d90f2f6d3df8b46
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 C:o.RISC_OSLib
16 CFLAGS  = -D__riscos -D$(DB)
17 #CFLAGS = -g -D__riscos -D$(DB)
19 OBJS1   = o.main_r\
20         o.blocklist o.chartrans o.datalist o.dib2sprt o.depot o.draw o.fail\
21         o.finddata o.findtext o.fontlist o.fonts o.fonts_r o.icons\
22         o.imgexam o.imgtrans o.jpeg2sprt o.listlist o.misc o.notes o.options\
23         o.out2window o.pictlist o.png2sprt o.prop0 o.prop2 o.prop6 o.prop8\
24         o.properties o.propmod o.rowlist o.riscos o.saveas o.sectlist\
25         o.stylelist o.stylesheet o.summary o.tabstop o.word2text o.worddos\
26         o.wordlib o.wordmac o.wordole o.wordwin o.xmalloc
28 OBJS2   = o.startup\
29         o.fail
31 IMAGE1  = @.!Antiword
32 IMAGE2  = @.!RunImage
34 All:            Antiword Startup
36 Antiword:       $(IMAGE1)
37         @       time
39 $(IMAGE1):      $(OBJS1)
40                 $(LD) $(LDFLAGS) $(OBJS1) $(LDLIBS) -o $@
41         @       $(TOUCH) $@
43 Startup:        $(IMAGE2)
44         @       time
46 $(IMAGE2):      $(OBJS2)
47                 $(LD) $(LDFLAGS) $(OBJS2) $(LDLIBS) -o $@
48         @       $(TOUCH) $@
50 .c.o:
51                 $(CC) $(CFLAGS) $(OPTIONS) -c c.$*
53 o.main_r:       h.version