home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / rtfprsr / makefile < prev    next >
Makefile  |  1995-05-18  |  13KB  |  463 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. ###########################################################################
  10. # Makefile generated from "Imake.tmpl" and </tmp/IIf.a07127>.
  11. #
  12. # Platform-specific parameters may be set in the appropriate .cf
  13. # configuration files.  Site-wide parameters may be set in the file
  14. # site.def.  Full rebuilds are recommended if any parameters are changed.
  15. #
  16. #
  17. # If your C preprocessor doesn't define any unique symbols, you'll need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make Makefile", "make Makefiles", or "make World").
  20. #
  21. # If you absolutely can't get imake to work, you'll need to set the
  22. # variables at the top of each Makefile as well as the dependencies at the
  23. # bottom (makedepend will do this automatically).
  24. #
  25.  
  26. ###########################################################################
  27. # platform-specific project configuration parameters
  28. # edit sun.pcf to change
  29.  
  30. ###########################################################################
  31. # platform-specific configuration parameters - edit sun.cf to change
  32.  
  33. # platform:  sun.cf    91/07/01
  34. # operating system:  SunOS 4.1.1
  35.  
  36. ###########################################################################
  37. # site-specific project configuration parameters - edit site.pdef to change
  38.  
  39. ###########################################################################
  40. # site-specific configuration parameters - edit site.def to change
  41.  
  42. # site:  Primate Center 89/12/22
  43.  
  44. # System characteristics.  Should be overridden as necessary in
  45. # platform-specific .cf file.
  46.  
  47. ###########################################################################
  48. # definitions common to all Makefiles - do not edit
  49.  
  50.             SHELL = /bin/sh
  51.  
  52.           DESTDIR =
  53.               TOP = .
  54.       CURRENT_DIR = .
  55.  
  56.   VARARGS_DEFINES = -DVARARGS
  57.  
  58.                AR = ar clq
  59.   BOOTSTRAPCFLAGS =
  60.                CC = cc
  61.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  62.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  63.           INSTALL = install
  64.                LD = ld
  65.              LINT = lint
  66.       LINTLIBFLAG = -C
  67.          LINTOPTS = -axz
  68.                LN = ln -s
  69.              MAKE = make
  70.                MV = mv
  71.                CP = cp
  72.            RANLIB = ranlib
  73.   RANLIBINSTFLAGS =
  74.                RM = rm -f
  75.      STD_INCLUDES =
  76.   STD_CPP_DEFINES =
  77.       STD_DEFINES =
  78.  EXTRA_LOAD_FLAGS =
  79.   EXTRA_LIBRARIES =
  80.              TAGS = ctags
  81.  
  82.         INSTOWNER = -o bin
  83.         INSTGROUP = -g bin
  84.     INSTFILEFLAGS =
  85.         INSTSTRIP =
  86.  
  87.      INSTBINFLAGS = -m 0755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
  88.      INSTUIDFLAGS = -m 04755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
  89.      INSTGIDFLAGS = -m 02755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
  90.     INSTUGIDFLAGS = -m 06755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS} ${INSTSTRIP}
  91.      INSTLIBFLAGS = -m 0664 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  92.   INSTSCRIPTFLAGS = -m 0755 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  93.      INSTINCFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  94.      INSTDATFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  95.      INSTMANFLAGS = -m 0444 ${INSTOWNER} ${INSTGROUP} ${INSTFILEFLAGS}
  96.  
  97.       INCLUDEPATH = $(DESTDIR)/usr/include
  98.  
  99.    EXTRA_INCLUDES = ${PROJECT_INCLUDES}
  100.       ALLINCLUDES = $(EXTRA_INCLUDES) $(INCLUDES) $(STD_INCLUDES)
  101.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(DEFINES)
  102.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  103.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  104.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  105.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS)
  106.  
  107.           MANPATH = $(DESTDIR)/usr/man
  108.     MANSOURCEPATH = $(MANPATH)/man
  109.            MANDIR = $(MANSOURCEPATH)l
  110.         LIBMANDIR = $(MANSOURCEPATH)3
  111.         SYSMANDIR = $(MANSOURCEPATH)8
  112.  
  113.               EQN = eqn
  114.         MANMACROS = -man
  115.          MEMACROS = -me
  116.          MMMACROS = -mm
  117.          MSMACROS = -ms
  118.               PIC = pic
  119.           PRINTER = lwa
  120.            SOELIM = soelim
  121.               TBL = gtbl
  122.             TROFF = groff
  123.             NROFF = nroff
  124.  
  125.       CDEBUGFLAGS = -O
  126.         CCOPTIONS =
  127.  
  128.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *.a .emacs_* tags TAGS make.log MakeOut
  129.  
  130. ###########################################################################
  131. # project-specific project group configuration parameters
  132. # Edit Project.ptmpl to change
  133.  
  134. ###########################################################################
  135. # Standard project group configuration parameters
  136. # Edit Project.tmpl to change
  137.  
  138. ###########################################################################
  139. # Standard project group configuration parameters
  140.  
  141. ###########################################################################
  142. # Section 1.  Cpp symbols
  143.  
  144. # Configuration group identification - name and release level
  145.  
  146. # Project identfication - name and release level
  147.  
  148. # Project-specific system directories and file locations
  149.  
  150. # Project-specific include file directories
  151.  
  152. # Configuration tools (files and directories)
  153.  
  154. ###########################################################################
  155. # Section 2.  Makefile symbols; needs to be coordinated with Imake.tmpl
  156.  
  157. # Configuration group identification - name and version
  158.  
  159.         CONFIGGROUPNAME = WRPRC
  160. CONFIGGROUPMAJORRELEASE = 1
  161. CONFIGGROUPMINORRELEASE = 03
  162.      CONFIGGROUPRELEASE = ${CONFIGGROUPMAJORRELEASE}.${CONFIGGROUPMINORRELEASE}
  163.  
  164. # Project identfication - name and release level
  165.  
  166.         PROJECTNAME = Rich Text Format Tools
  167. PROJECTMAJORRELEASE = 1
  168. PROJECTMINORRELEASE = 06a2
  169.      PROJECTRELEASE = ${PROJECTMAJORRELEASE}.${PROJECTMINORRELEASE}
  170.  
  171. # Project-specific system directories and file locations
  172.  
  173.           PATHSEP = /
  174.  
  175.            BINDIR = $(DESTDIR)/usr/local
  176.         USRLIBDIR = $(DESTDIR)/usr/lib
  177.  
  178.            TMPDIR = ${DESTDIR}/tmp
  179.  
  180. # Project-specific include file directories
  181.  
  182.        INCLUDESRC = .
  183.  
  184.  PROJECT_INCLUDES = -I${INCLUDESRC}
  185.  
  186. # Configuration tools (files and directories)
  187.  
  188.     PUBCONFIGPATH = ${USRLIBDIR}/config
  189.      PUBCONFIGDIR = ${PUBCONFIGPATH}/WRPRC
  190.     PRIVCONFIGDIR = ${TOP}/config
  191.  
  192.         CONFIGSRC = $(TOP)/config
  193.          IMAKESRC = $(CONFIGSRC)
  194.  
  195.           UTILSRC = $(TOP)/util
  196.         SCRIPTSRC = $(UTILSRC)/scripts
  197.         DEPENDSRC = $(UTILSRC)/makedepend
  198.           MSUBSRC = $(UTILSRC)/msub
  199.         SOELIMSRC = $(UTILSRC)/soelim
  200.  
  201.             IMAKE = imake
  202.            DEPEND = makedepend
  203.             IMKMF = imkmf
  204.              MSUB = msub
  205.         MKDIRHIER = /bin/sh $(SCRIPTSRC)/mkdirhier.sh
  206.  
  207.     IMKMF_DEFINES =
  208.     IMAKE_DEFINES =
  209.          IRULESRC = $(CONFIGSRC)
  210.         MACROFILE = sun.cf
  211.  
  212.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(NEWTOP)$(PRIVCONFIGDIR) -I$(PUBCONFIGDIR) $(IMAKE_DEFINES)
  213.  
  214.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl \
  215.             $(IRULESRC)/Imake.rules \
  216.             $(IRULESRC)/ProjectGroup.tmpl \
  217.             $(IRULESRC)/$(MACROFILE) \
  218.             $(IRULESRC)/site.def \
  219.             Imakefile \
  220.             $(EXTRA_CONFIGFILES)
  221.  
  222. ###########################################################################
  223. # Project-specific imake rules
  224. # Edit Imake.prules to change
  225.  
  226. ###########################################################################
  227. # Standard imake rules
  228. # Edit Imake.rules to change
  229.  
  230. ###########################################################################
  231. # Imake rules.
  232. # Hacked from X Window System R3 and R4 imake rules.
  233.  
  234. ###########################################################################
  235. # start of Imakefile
  236.  
  237. #    RTF Tools Imakefile
  238.  
  239. #    Try "make Bootstrap" to rebuild the initial Makefile.
  240. #    (assuming you have the WRPRC configuration project 1.03 or
  241. #    higher installed.)
  242.  
  243. #    Look at the files in the config subdirectory to see if you want
  244. #    to change anything.
  245.  
  246. # any special -D's or other flags for compiling
  247. DEFINES = ${VARARGS_DEFINES}
  248.  
  249. # any special -I's for compiling
  250. INCLUDES =
  251.  
  252. # any special libraries needed for linking
  253. LIBRARIES =
  254.  
  255. # stuff common to all translators
  256. COMMONSRCS = reader.c
  257. COMMONOBJS = reader.o
  258.  
  259. # RTF-to-nothing translator (the minimal translator)
  260. NULLSRCS = rtf2null.c
  261. NULLOBJS = rtf2null.o ${COMMONOBJS}
  262.  
  263. # RTF-to-troff
  264. TROFFSRCS = rtf2troff.c trf-charmap.c trf-stack.c trf-flush.c \
  265.     trf-table.c trf-nwid.c
  266. TROFFOBJS = rtf2troff.o trf-charmap.o trf-stack.o trf-flush.o \
  267.     trf-table.o trf-nwid.o ${COMMONOBJS}
  268.  
  269. # RTF-to-text translator
  270. TEXTSRCS = rtf2text.c
  271. TEXTOBJS = rtf2text.o ${COMMONOBJS}
  272.  
  273. # RTF diagnostic "translator"
  274. DIAGSRCS = rtfdiag.c
  275. DIAGOBJS = rtfdiag.o ${COMMONOBJS}
  276.  
  277. # RTF word count "translator"
  278. WCSRCS = rtfwc.c
  279. WCOBJS = rtfwc.o ${COMMONOBJS}
  280.  
  281. # skeleton RTF translator
  282. SKELSRCS = rtfskel.c
  283. SKELOBJS = rtfskel.o ${COMMONOBJS}
  284.  
  285. # RTF file indenter ("beautifier")
  286. INDSRCS = rtfindent.c
  287. INDOBJS = rtfindent.o
  288.  
  289. SRCS = ${COMMONSRCS} ${NULLSRCS} ${TROFFSRCS} ${DIAGSRCS} \
  290.     ${TEXTSRCS} ${WCSRCS} ${SKELSRCS} ${INDSRCS}
  291.  
  292. all:: rtf2null
  293.  
  294. clean::
  295.     $(RM) rtf2null
  296. rtf2null::  ${NULLOBJS}
  297.     $(RM) $@
  298.     $(CC) -o $@  ${NULLOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  299.  
  300. install:: i.rtf2null
  301. i.rtf2null:: rtf2null
  302.     $(INSTALL) -c ${INSTBINFLAGS} rtf2null  ${BINDIR}/rtf2null
  303.  
  304. all:: rtf2troff
  305.  
  306. clean::
  307.     $(RM) rtf2troff
  308. rtf2troff::  ${TROFFOBJS}
  309.     $(RM) $@
  310.     $(CC) -o $@  ${TROFFOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  311.  
  312. install:: i.rtf2troff
  313. i.rtf2troff:: rtf2troff
  314.     $(INSTALL) -c ${INSTBINFLAGS} rtf2troff  ${BINDIR}/rtf2troff
  315.  
  316. all:: rtf2text
  317.  
  318. clean::
  319.     $(RM) rtf2text
  320. rtf2text::  ${TEXTOBJS}
  321.     $(RM) $@
  322.     $(CC) -o $@  ${TEXTOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  323.  
  324. install:: i.rtf2text
  325. i.rtf2text:: rtf2text
  326.     $(INSTALL) -c ${INSTBINFLAGS} rtf2text  ${BINDIR}/rtf2text
  327.  
  328. all:: rtfdiag
  329.  
  330. clean::
  331.     $(RM) rtfdiag
  332. rtfdiag::  ${DIAGOBJS}
  333.     $(RM) $@
  334.     $(CC) -o $@  ${DIAGOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  335.  
  336. install:: i.rtfdiag
  337. i.rtfdiag:: rtfdiag
  338.     $(INSTALL) -c ${INSTBINFLAGS} rtfdiag  ${BINDIR}/rtfdiag
  339.  
  340. all:: rtfwc
  341.  
  342. clean::
  343.     $(RM) rtfwc
  344. rtfwc::  ${WCOBJS}
  345.     $(RM) $@
  346.     $(CC) -o $@  ${WCOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  347.  
  348. install:: i.rtfwc
  349. i.rtfwc:: rtfwc
  350.     $(INSTALL) -c ${INSTBINFLAGS} rtfwc  ${BINDIR}/rtfwc
  351.  
  352. # this isn't installed anywhere...
  353.  
  354. all:: rtfskel
  355.  
  356. clean::
  357.     $(RM) rtfskel
  358. rtfskel::  ${SKELOBJS}
  359.     $(RM) $@
  360.     $(CC) -o $@  ${SKELOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  361.  
  362. all:: rtfindent
  363.  
  364. clean::
  365.     $(RM) rtfindent
  366. rtfindent::  ${INDOBJS}
  367.     $(RM) $@
  368.     $(CC) -o $@  ${INDOBJS} $(LDOPTIONS)    ${LIBRARIES} $(LDLIBS)
  369.  
  370. install:: i.rtfindent
  371. i.rtfindent:: rtfindent
  372.     $(INSTALL) -c ${INSTBINFLAGS} rtfindent  ${BINDIR}/rtfindent
  373.  
  374. # documents
  375.  
  376. t.rtf.ms:: rtf.ms
  377.     ${SOELIM} rtf.ms  | ${TROFF} ${MSMACROS} |${PRINTER}
  378.  
  379. t.rtf-misc.ms:: rtf-misc.ms
  380.     ${SOELIM} rtf-misc.ms  | ${TROFF} ${MSMACROS} |${PRINTER}
  381.  
  382. t.rtf2troff.ms:: rtf2troff.ms
  383.     ${SOELIM} rtf2troff.ms  | ${TROFF} ${MSMACROS} |${PRINTER}
  384.  
  385. # other
  386.  
  387. depend::
  388.     $(DEPEND) -s "# DO NOT DELETE" -- $(ALLDEFINES) -I$(INCLUDEPATH) -- $(SRCS)
  389.  
  390. Bootstrap::
  391.     ${IMKMF} -d -C ${CONFIGGROUPNAME} ${IMKMF_DEFINES} ${TOP}
  392.  
  393. World::
  394.     @echo "Making ${PROJECTNAME} project, Release ${PROJECTRELEASE}"
  395.     ${MAKE} Bootstrap
  396.     ${MAKE} clean
  397.     ${MAKE} depend
  398.     ${MAKE} all
  399.  
  400. ###########################################################################
  401. # common rules for all Makefiles - do not edit
  402.  
  403. emptyrule::
  404.  
  405. clean::
  406.     $(RM_CMD) \#*
  407.  
  408. Makefile::
  409.     -@if [ -f Makefile ]; then \
  410.     echo "    $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
  411.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  412.     else exit 0; fi
  413.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  414.  
  415. tags::
  416.     $(TAGS) -w *.[ch]
  417.     $(TAGS) -xw *.[ch] > TAGS
  418.  
  419. ###########################################################################
  420. # empty rules for directories that do not have SUBDIRS - do not edit
  421.  
  422. install::
  423.     @echo "install in $(CURRENT_DIR) done"
  424.  
  425. install.man::
  426.     @echo "install.man in $(CURRENT_DIR) done"
  427.  
  428. Makefiles::
  429.  
  430. depend::
  431.  
  432. ###########################################################################
  433. # dependencies generated by makedepend
  434.  
  435. # DO NOT DELETE
  436.  
  437. reader.o: /usr/include/stdio.h /usr/include/ctype.h /usr/include/varargs.h
  438. reader.o: rtf.h
  439. rtf2null.o: /usr/include/stdio.h rtf.h
  440. rtf2troff.o: /usr/include/stdio.h /usr/include/sys/types.h
  441. rtf2troff.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  442. rtf2troff.o: /usr/include/ctype.h rtf.h rtf2troff.h
  443. trf-charmap.o: /usr/include/stdio.h /usr/include/sys/types.h
  444. trf-charmap.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h rtf.h
  445. trf-charmap.o: rtf2troff.h
  446. trf-stack.o: /usr/include/stdio.h /usr/include/sys/types.h
  447. trf-stack.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h rtf.h
  448. trf-stack.o: rtf2troff.h
  449. trf-flush.o: /usr/include/stdio.h /usr/include/sys/types.h
  450. trf-flush.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h
  451. trf-flush.o: /usr/include/varargs.h rtf.h rtf2troff.h
  452. trf-table.o: /usr/include/stdio.h /usr/include/sys/types.h
  453. trf-table.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h rtf.h
  454. trf-table.o: rtf2troff.h
  455. trf-nwid.o: /usr/include/stdio.h /usr/include/sys/types.h
  456. trf-nwid.o: /usr/include/sys/stdtypes.h /usr/include/sys/sysmacros.h rtf.h
  457. trf-nwid.o: rtf2troff.h
  458. rtfdiag.o: /usr/include/stdio.h rtf.h
  459. rtf2text.o: /usr/include/stdio.h rtf.h
  460. rtfwc.o: /usr/include/stdio.h rtf.h
  461. rtfskel.o: /usr/include/stdio.h rtf.h
  462. rtfindent.o: /usr/include/stdio.h
  463.