3065 some functions in the tcp module can be static
[unleashed.git] / usr / src / cmd / man / src / util / nsgmls.src / Makefile
blob1ac99418424bf6d1d17dca0ad5e2afb29499a62e
1 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
2 # Use is subject to license terms.
6 # Copyright 1994, 1995 James Clark
9 #ident "%Z%%M% %I% %E% SMI"
11 include ../../../../Makefile.cmd
12 prefix=$(ROOTLIB)
13 exec_prefix=$(prefix)
14 # Where to install the binaries
15 bindir=$(exec_prefix)/sgml
16 # Extension for man pages.
17 man1ext=1
18 # Directory for man pages
19 man1dir=$(prefix)/man/man$(man1ext)
20 INSTALL=cp
21 # You might want to change this to uncomment this on BSD systems
22 #INSTALL=install
24 # If you use gcc, then you must have at least version 2.6.1 and
25 # you must use -fno-implicit-templates
26 # and -O (or any optimization level >= 1).
27 # c++ is a front-end for gcc which takes care of linking with -lstdc++
28 #CXX=c++ -fno-implicit-templates -O2
29 #CXX=$(CCC) -O
30 WARN=-Wall -Wno-reorder -Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast
31 # Executables will be *very* large if you use -g.
32 DEBUG=
33 # Add -DSP_HAVE_BOOL if you have the bool type.
34 # Add -DSP_ANSI_CLASS_INST for ANSI style explicit class template instantiation.
35 # Add -DSP_MULTI_BYTE for multi-byte support.
36 # Add -DSP_HAVE_LOCALE if you have setlocale().
37 # Add -DSP_HAVE_GETTEXT if you gettext() and friends (eg Solaris 2.3).
38 # Add -DSP_HAVE_SOCKET if you have sockets and you want support for HTTP
39 # Add -DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/lib/sgml/catalog\"
40 # (for example) to change the value used if the SGML_CATALOG_FILES
41 # environment variable is unset. SP now automatically searches for a file
42 # called "catalog" in the same directory as the document entity.
43 XDEFINES=-DSP_MULTI_BYTE -DSP_HAVE_LOCALE -DSP_HAVE_GETTEXT -DSP_HAVE_SOCKET -DSGML_CATALOG_FILES_DEFAULT=\"/usr/share/lib/sgml/locale/C/dtds/catalog\"
44 DEFINES=$(XDEFINES)
45 #CXXFLAGS=-ansi $(DEBUG) $(WARN)
46 CXXFLAGS=
47 # Flag to pass to CXX to make it output list of dependencies as a Makefile.
48 LDFLAGS += -norunpath -nolib
49 OPT=
50 CFLAGS += $(OPT) $(DEBUG)
51 CCFLAGS += -noex
52 # Missing library functions
53 # Uncomment these if your C++ system doesn't provide them.
54 LIBOBJS=#strerror.o memmove.o
55 # iostreams are required
56 # If you defined SP_HAVE_SOCKET, add any libraries that are needed for sockets
57 #-lsocket -lnsl needed on Solaris 2.x
58 # -lnsl on SunOS 4.1.3
59 XLIBS=-lsocket -lnsl
60 # -L/usr/local/lib may be needed on the RS/6000
61 LIBS += $(ENVLDLIBS1) $(ENVLDLIBS2) $(XLIBS) $(CCNEEDED) -lc
62 # If you're building in another directory, copy or link this Makefile
63 # to the build directory, and set srcdir to point to the source directory.
64 srcdir=.
65 AR=ar
66 RANLIB=:
67 # Uncomment this for SunOS 4.1.3 or FreeBSD
68 # (and probably other BSD flavor systems as well)
69 #RANLIB=ranlib
70 M4=m4
71 # perl is needed if you change or add messages
72 PERL=perl
73 # Suffix for executables.
74 EXE=
75 # Uncomment this for OS/2.
76 #EXE=.exe
78 LIBDIRS=lib $(XLIBDIRS)
79 PROGDIRS=nsgmls $(XPROGDIRS)
80 dodirs=$(LIBDIRS) $(PROGDIRS)
81 PURIFYFLAGS=
82 PURIFY=purify $(PURIFYFLAGS) -g++=yes -collector=`dirname \`gcc -print-libgcc-file-name\``/ld
84 MDEFINES='CXX=$(CXX)' 'CC=$(CC)' 'LIBOBJS=$(LIBOBJS)' 'CXXFLAGS=$(CXXFLAGS)' \
85 'CCFLAGS=$(CCFLAGS)' \
86 'CFLAGS=$(CFLAGS)' 'LDFLAGS=$(LDFLAGS)' 'DEFINES=$(DEFINES)' \
87 'srcdir=$(srcdir)' 'AR=$(AR)' 'RANLIB=$(RANLIB)' \
88 'M4=$(M4)' 'PERL=$(PERL)' 'LIBS=$(LIBS)' 'PURIFY=$(PURIFY)' \
89 'PIC_FLAG=$(PIC_FLAG)' 'XPROGDIRS=$(XPROGDIRS)' 'XLIBDIRS=$(XLIBDIRS)' \
90 'libMakefile=$(libMakefile)' 'EXE=$(EXE)' 'bindir=$(bindir)' \
91 'man1dir=$(man1dir)' 'man1ext=$(man1ext)' 'INSTALL=$(INSTALL)'
94 # Automatic template instantiation can cause compilers to generate
95 # various extra files; the clean target won't delete these.
96 TARGETS=all install depend gen clean clobber
97 libMakefile=Makefile.lib
98 do=all
100 $(TARGETS): FORCE
101 @$(MAKE) -f $(srcdir)/Makefile $(MDEFINES) do=$@ $(dodirs)
104 $(LIBDIRS): FORCE
105 @if test $(srcdir) = .; \
106 then srcdir=.; \
107 else srcdir=`cd $(srcdir); pwd`/$@; \
108 fi; \
109 test -d $@ || mkdir $@; \
110 cd $@; \
111 test -f $$srcdir/Makefile.dep || touch $$srcdir/Makefile.dep; \
112 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
113 -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
114 -f $$srcdir/../$(libMakefile) -f $$srcdir/Makefile.dep $(do)
116 $(PROGDIRS): FORCE
117 @if test $(srcdir) = .; \
118 then srcdir=.; \
119 else srcdir=`cd $(srcdir); pwd`/$@; \
120 fi; \
121 test -d $@ || mkdir $@; \
122 cd $@; \
123 test -f $$srcdir/Makefile.dep || touch $$srcdir/Makefile.dep; \
124 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
125 -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
126 -f $$srcdir/../Makefile.prog -f $$srcdir/Makefile.dep $(do)
128 $(PROGDIRS): lib
130 # GNU tar
131 TAR=tar
133 dist: FORCE
134 #cd test; ./CLEAN
135 #version=`cat VERSION`; \
136 #rm -f sp-$$version; \
137 #ln -s `pwd` sp-$$version; \
138 #$(TAR) -c -f sp-$$version.tar.gz -h -z \
139 #--exclude sp-$$version/test/cap \
140 #--exclude sp-$$version/test/out \
141 #--exclude sp-$$version/test/err \
142 #`sed -e "s|.*|sp-$$version/&|" FILES`; \
143 #rm -f sp-$$version
145 #check: FORCE
146 #NSGMLS=`pwd`/nsgmls/nsgmls; export NSGMLS; cd $(srcdir); ./dotest
148 FORCE: