]> www.wagner.pp.ru Git - oss/catdoc.git/blob - src/Makefile.in
Recreated CVS repository from working copy
[oss/catdoc.git] / src / Makefile.in
1 # Your C compilier and flags
2 SHELL = /bin/sh
3
4 srcdir = @srcdir@
5 top_srcdir = @top_srcdir@
6 VPATH = @srcdir@
7 prefix = @prefix@
8 exec_prefix = @exec_prefix@
9 installroot = @installroot@
10
11 bindir = @bindir@
12 libdir = @libdir@
13 confdir = @sysconfdir@
14 datadir = @datadir@
15 mandir = @mandir@
16 INSTALL = @INSTALL@
17 WISH = @WISH@
18 CC = @CC@
19 COMPAT_OBJ=@LIBOBJS@
20 build_targets = @buildtargets@
21 install_targets = @installtargets@
22 CHARSETPATH=${datadir}/catdoc
23 # Flags to pass to your C compilier
24 # remove -O2 on HP/UX 9. It is known to cause problems
25 FLAGS=-I. @CFLAGS@  @DEFS@ -DCATDOC_VERSION=\"@catdoc_version@\" -DCHARSETPATH=\"${CHARSETPATH}\"
26
27 #Compile-time configuration of catdoc itself. Edit according to taste
28
29 #Directory, where all system-wide stuff resides
30 DATA_DIR=$(datadir)/catdoc
31 #directory, where catdoc binary would be placed
32 #directory where to put man page
33
34 #System-wide configuration file
35 SYSTEMRC=$(confdir)/catdocrc
36
37 #Per-user configration file (in user's home directory
38 USERRC=.catdocrc
39
40 # path where to search for charsets. may be colon-separated list of dirs
41
42 # Extension for map of special character
43 SPEC_EXT=@specsuffix@
44
45 # Extension for map of substitutes (chars which are missing from target
46 # charset)
47 REPL_EXT=@replsuffix@
48
49 # Target charset - one used on your system console or xterm
50 TARGET_CHARSET=@targetcharset@
51
52 # Source charset - one which your Word files are usially in unless they
53 # are UNICODE
54 SOURCE_CHARSET=@sourcecharset@
55
56 # Character which would be printed instead of ones, not found in charset
57 # or replacement map
58 UNKNOWN_CHAR=?
59
60 # END OF COMPILE-TIME CONFIGURATION
61
62 DEFINES=-DSYSTEMRC=\"$(SYSTEMRC)\" -DUSERRC=\"$(USERRC)\"
63
64 CFLAGS=$(FLAGS) $(DEFINES) @DEFS@
65
66 COMMONOBJ=charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o 
67
68 OBJ=catdoc.o reader.o writer.o analyze.o rtfread.o $(COMMONOBJ)
69
70 OBJXLS=xls2csv.o sheet.o xlsparse.o $(COMMONOBJ)
71
72 OBJPPT=catppt.o pptparse.o $(COMMONOBJ)
73 #.c.o:
74 #       $(CC) -c $(CFLAGS) $*
75 all: @buildtargets@
76 catdoc: $(OBJ)
77         $(CC)  -o catdoc  $(OBJ)
78 xls2csv: $(OBJXLS)
79         $(CC) -o xls2csv $(OBJXLS) -lm
80
81 catppt: $(OBJPPT)
82         $(CC) -o catppt $(OBJPPT) -lm
83
84 install: @installtargets@
85 install-catdoc:catdoc xls2csv catppt 
86         ../mkinstalldirs $(installroot)$(bindir)
87         $(INSTALL) -m 755 catdoc $(installroot)$(bindir)/catdoc
88         $(INSTALL) -m 755 xls2csv $(installroot)$(bindir)/xls2csv
89         $(INSTALL) -m 755 catppt $(installroot)$(bindir)/catppt
90 install-wordview: wordview 
91         ../mkinstalldirs $(installroot)$(bindir)
92         $(INSTALL) -m 755 wordview $(installroot)$(bindir)/wordview
93 wordview: wordview.tcl
94         echo "#! $(WISH)" >wordview
95         echo set charset_lib "\"$(CHARSETPATH)\"">>wordview
96         cat wordview.tcl >>wordview
97         chmod 0755 wordview
98 strftime.o: ../compat/strftime.c
99         $(CC) -c $(FLAGS) -o $@ $*
100 clean:
101         rm -f *.o catdoc wordview xls2csv catppt
102 distclean: clean
103         rm Makefile