No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / contrib / nslint-2.1a3 / Makefile.in
blob267eb56591fa4884d722161643ad25c732bbdc71
1 # Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 2000
2 # The Regents of the University of California. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that: (1) source code distributions
6 # retain the above copyright notice and this paragraph in its entirety, (2)
7 # distributions including binary code include the above copyright notice and
8 # this paragraph in its entirety in the documentation or other materials
9 # provided with the distribution, and (3) all advertising materials mentioning
10 # features or use of this software display the following acknowledgement:
11 # ``This product includes software developed by the University of California,
12 # Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
13 # the University nor the names of its contributors may be used to endorse
14 # or promote products derived from this software without specific prior
15 # written permission.
16 # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17 # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 # @(#) Id: Makefile.in,v 1.2 2004/07/20 07:13:40 marka Exp (LBL)
23 # Various configurable paths (remember to edit Makefile.in, not Makefile)
26 # Top level hierarchy
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
29 # Pathname of directory to install the binary
30 BINDEST = @bindir@
31 # Pathname of directory to install the man page
32 MANDEST = @mandir@
34 # VPATH
35 srcdir = @srcdir@
36 VPATH = @srcdir@
39 # You shouldn't need to edit anything below here.
42 PROG = nslint
43 CC = @CC@
44 CCOPT = @V_CCOPT@
45 INCLS = @V_INCLS@
46 DEFS = @DEFS@
48 # Standard CFLAGS
49 CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
51 # Standard LIBS
52 LIBS = @LIBS@
54 INSTALL = @INSTALL@
56 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
57 # Also, gcc does not remove the .o before forking 'as', which can be a
58 # problem if you don't own the file but can write to the directory.
59 .c.o:
60 @rm -f $@
61 $(CC) $(CFLAGS) -c $(srcdir)/$*.c
63 CSRC = nslint.c savestr.c
64 GENSRC = version.c
66 SRC = $(CSRC) $(GENSRC)
68 # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
69 # hack the extra indirection
70 OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
72 TAGHDR = \
73 /usr/include/sys/types.h \
74 /usr/include/netinet/in.h
76 TAGFILES = $(SRC) $(TAGHDR)
78 CLEANFILES = $(PROG) $(OBJ) $(GENSRC)
80 $(PROG): $(OBJ)
81 @rm -f $@
82 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
84 version.o: version.c
85 version.c: $(srcdir)/VERSION
86 @rm -f $@
87 sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
89 install: force
90 $(INSTALL) -m 555 -o bin -g bin $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
92 install-man: force
93 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).8 \
94 $(DESTDIR)$(MANDEST)/man8/$(PROG).8
96 clean: force
97 rm -f $(CLEANFILES)
99 distclean: force
100 rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
101 gnuc.h os-proto.h
103 tags: $(TAGFILES)
104 ctags -wtd $(TAGFILES)
106 tar: force
107 @cwd=`pwd` ; name=$(PROG)-`cat VERSION` ; \
108 list="" ; tar="tar chf" ; temp="$$name.tar.gz" ; \
109 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
110 echo \
111 "rm -f $$name; ln -s . $$name" ; \
112 rm -f $$name; ln -s . $$name ; \
113 echo \
114 "$$tar - [lots of files] | gzip > $$temp" ; \
115 $$tar - $$list | gzip > $$temp ; \
116 echo \
117 "rm -f $$name" ; \
118 rm -f $$name
120 force: /tmp
121 depend: $(GENSRC) force
122 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)