1 # Your C compilier and flags
5 top_srcdir = @top_srcdir@
8 exec_prefix = @exec_prefix@
9 installroot = @installroot@
13 confdir = @sysconfdir@
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}\"
27 #Compile-time configuration of catdoc itself. Edit according to taste
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
34 #System-wide configuration file
35 SYSTEMRC=$(confdir)/catdocrc
37 #Per-user configration file (in user's home directory
40 # path where to search for charsets. may be colon-separated list of dirs
42 # Extension for map of special character
45 # Extension for map of substitutes (chars which are missing from target
49 # Target charset - one used on your system console or xterm
50 TARGET_CHARSET=@targetcharset@
52 # Source charset - one which your Word files are usially in unless they
54 SOURCE_CHARSET=@sourcecharset@
56 # Character which would be printed instead of ones, not found in charset
60 # END OF COMPILE-TIME CONFIGURATION
62 DEFINES=-DSYSTEMRC=\"$(SYSTEMRC)\" -DUSERRC=\"$(USERRC)\"
64 CFLAGS=$(FLAGS) $(DEFINES) @DEFS@
66 COMMONOBJ=charsets.o substmap.o fileutil.o confutil.o numutils.o ole.o
68 OBJ=catdoc.o reader.o writer.o analyze.o rtfread.o $(COMMONOBJ)
70 OBJXLS=xls2csv.o sheet.o xlsparse.o $(COMMONOBJ)
72 OBJPPT=catppt.o pptparse.o $(COMMONOBJ)
74 # $(CC) -c $(CFLAGS) $*
77 $(CC) -o catdoc $(OBJ)
79 $(CC) -o xls2csv $(OBJXLS) -lm
82 $(CC) -o catppt $(OBJPPT) -lm
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
98 strftime.o: ../compat/strftime.c
99 $(CC) -c $(FLAGS) -o $@ $*
101 rm -f *.o catdoc wordview xls2csv catppt