Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / contrib / nslint-3.0a2 / Makefile.in
blob3dc0d49b22ee246cae58b3a86083807adf6a6491
1 # Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2008, 2009
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 242 2009-10-14 08:30:03Z leres (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 = @prefix@/man
33 # The root of the directory tree for read-only
34 datarootdir = @datarootdir@
36 # VPATH
37 srcdir = @srcdir@
38 VPATH = @srcdir@
41 # You shouldn't need to edit anything below here.
44 PROG = nslint
45 CC = @CC@
46 CCOPT = @V_CCOPT@
47 INCLS = @V_INCLS@
48 DEFS = @DEFS@
50 # Standard CFLAGS
51 CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
53 # Standard LDFLAGS
54 LDFLAGS = @LDFLAGS@
56 # Standard LIBS
57 LIBS = @LIBS@
59 INSTALL = @INSTALL@
61 # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
62 # Also, gcc does not remove the .o before forking 'as', which can be a
63 # problem if you don't own the file but can write to the directory.
64 .c.o:
65 @rm -f $@
66 $(CC) $(CFLAGS) -c $(srcdir)/$*.c
68 CSRC = nslint.c savestr.c
69 GENSRC = version.c
71 SRC = $(CSRC) $(GENSRC)
73 # We would like to say "OBJS = $(SRC:.c=.o)" but Ultrix's make cannot
74 # hack the extra indirection
75 OBJS = $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@
77 TAGHDR = \
78 /usr/include/sys/types.h \
79 /usr/include/netinet/in.h
81 TAGFILES = $(SRC) $(TAGHDR)
83 CLEANFILES = $(PROG) $(OBJS) $(GENSRC) purify $(OBJS:.o=_pure_*.o)
85 $(PROG): $(OBJS)
86 @rm -f $@
87 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
89 purify: $(OBJS)
90 @rm -f $@
91 purify $(CC) $(CFLAGS) $(LDFLAGS) -static -o purify $(OBJS) $(LIBS)
93 version.o: version.c
94 version.c: $(srcdir)/VERSION
95 @rm -f $@
96 sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
98 install: force
99 $(INSTALL) -m 555 -o bin -g bin $(PROG) $(DESTDIR)$(BINDEST)/$(PROG)
100 @diff $(srcdir)/$(PROG).8 $(DESTDIR)$(MANDEST)/man8 >/dev/null 2>&1 || \
101 $(INSTALL) -m 444 -o bin -g bin $(srcdir)/$(PROG).8 $(DESTDIR)$(MANDEST)/man8/
103 clean: force
104 rm -f $(CLEANFILES)
106 distclean: force
107 rm -rf $(CLEANFILES) Makefile config.cache config.log config.status \
108 gnuc.h os-proto.h autom4te.cache
110 tags: $(TAGFILES)
111 ctags -wtd $(TAGFILES)
113 tar: force
114 @cwd=`pwd` ; name=$(PROG)-`cat VERSION` ; \
115 list="" ; tar="tar chf" ; temp="$$name.tar.gz" ; \
116 for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
117 echo \
118 "rm -f $$name; ln -s . $$name" ; \
119 rm -f $$name; ln -s . $$name ; \
120 echo \
121 "$$tar - [lots of files] | gzip > $$temp" ; \
122 $$tar - $$list | gzip > $$temp ; \
123 echo \
124 "rm -f $$name" ; \
125 rm -f $$name
127 sign:
128 @name=${PROG}-`cat VERSION`.tar.gz; \
129 set -x; \
130 rm -f $${name}.asc; \
131 gpg --armor --detach-sign $${name}
133 force: /tmp
134 depend: $(GENSRC) force
135 ./mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)