Imported from antiword-0.37.tar.gz.
[antiword.git] / Makefile.gprof
blob551d29949f8e276cbe79ea03b9f47428fa27f58b
2 # Makefile for antiword (Linux version)
4 # Used for profiling (gprof)
7 CC      = gcc
8 LD      = gcc
10 # must be equal to DEBUG or NDEBUG
11 DB      = NDEBUG
12 # Optimization: -O<n> or debugging: -g
13 OPT     = -O2
15 LDLIBS  =
17 CFLAGS  = -pg -Wall -pedantic $(OPT) -D$(DB)
18 LDFLAGS = -pg
20 OBJS    =\
21         main_u.o asc85enc.o blocklist.o chartrans.o datalist.o depot.o\
22         dib2eps.o doclist.o fail.o finddata.o findtext.o fmt_text.o fontlist.o\
23         fonts.o fonts_u.o hdrftrlist.o imgexam.o imgtrans.o jpeg2eps.o\
24         listlist.o misc.o notes.o options.o out2window.o output.o pdf.o\
25         pictlist.o png2eps.o postscript.o prop0.o prop2.o prop6.o prop8.o\
26         properties.o propmod.o rowlist.o sectlist.o stylelist.o stylesheet.o\
27         summary.o tabstop.o text.o unix.o utf8.o word2text.o worddos.o\
28         wordlib.o wordmac.o wordole.o wordwin.o xmalloc.o xml.o
30 PROGS =\
31         antiword\
32         kantiword
34 INSTALL_DIR = $(HOME)/bin
36 all:            $(PROGS)
38 install:        all
39         [ -d $(INSTALL_DIR) ] || mkdir $(INSTALL_DIR)
40         cp -pf $(PROGS) $(INSTALL_DIR)
42 clean:
43         rm -f $(OBJS)
44         rm -f $(PROGS)
46 antiword:       $(OBJS)
47         @rm -f $@
48         $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
49         @chmod 750 $@
51 kantiword:      Unix-only/KDE3-only/kantiword.sh
52         @rm -f $@
53         echo "#!/bin/bash" > $@
54         cat $? >> $@
55         @chmod 750 $@
57 .c.o:
58         $(CC) $(CFLAGS) -c $<
60 main_u.o:       version.h
61 postscript.o:   version.h
62 pdf.o:          version.h
63 fonts_u.o:      fontinfo.h
65 fontinfo.h:     Unix-only/fontinfo.h
66                 cp -rp $? $@
68 Unix-only/fontinfo.h:   Unix-only/fontinfo.pl
69         Unix-only/fontinfo.pl > Unix-only/fontinfo.h