home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
hf-1.2.tar.gz
/
hf-1.2.tar
/
hf-1.2
/
Makefile.in
< prev
next >
Wrap
Makefile
|
2009-12-13
|
5KB
|
168 lines
# Copyright (c) 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001, 2002, 2008, 2009
# The Regents of the University of California. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that: (1) source code distributions
# retain the above copyright notice and this paragraph in its entirety, (2)
# distributions including binary code include the above copyright notice and
# this paragraph in its entirety in the documentation or other materials
# provided with the distribution, and (3) all advertising materials mentioning
# features or use of this software display the following acknowledgement:
# ``This product includes software developed by the University of California,
# Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
# the University nor the names of its contributors may be used to endorse
# or promote products derived from this software without specific prior
# written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# @(#) $Id: Makefile.in 179 2009-12-13 07:23:09Z leres $ (LBL)
#
# Various configurable paths (remember to edit Makefile.in, not Makefile)
#
# Top level hierarchy
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
# Pathname of directory to install the binary
BINDEST = @bindir@
# Pathname of directory to install the man page
MANDEST = @prefix@/man
# VPATH
srcdir = @srcdir@
VPATH = @srcdir@
#
# You shouldn't need to edit anything below here.
#
PROG = hf
ALL = ${PROG} ef nf pf
CC = @CC@
CCOPT = @V_CCOPT@
INCLS = @V_INCLS@
DEFS = @DEFS@
# Standard CFLAGS
CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
# Standard LDFLAGS
LDFLAGS = @LDFLAGS@
# Standard LIBS
LIBS = @LIBS@
INSTALL = @INSTALL@
LEX = @V_LEX@
# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
# Also, gcc does not remove the .o before forking 'as', which can be a
# problem if you don't own the file but can write to the directory.
.c.o:
@rm -f $@
$(CC) $(CFLAGS) -c $(srcdir)/$*.c
.l.c:
$(LEX) $(srcdir)/$*.l ; rm -f $@ ; mv lex.yy.c $@
GENSRC = hf.c ef.c nf.c pf.c version.c
LIBOBJS = @LIBOBJS@
LIBSRCS = $(LIBOBJS:.o=.c)
ASYNC_LIBS = @V_ASYNC_LIBS@
ASYNC_OBJS = @V_ASYNC_OBJS@
ASYNC_SRCS = $(ASYNC_OBJS:.o=.c)
OBJS = hf.o setsignal.o version.o $(LIBOBJS)
TAGHDR = \
/usr/include/arpa/nameser.h \
/usr/include/resolv.h \
/usr/include/netdb.h
TAGFILES = hf.l nb_dns.c nb_dns.h $(TAGHDR)
CLEANFILES = $(ALL) $(GENSRC) $(OBJS) $(LIBOBJS) $(ASYNC_OBJS) \
purify $(OBJS:.o=_pure_*.o)
all: $(ALL)
hf: $(OBJS) $(ASYNC_OBJS)
@rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(ASYNC_OBJS) $(ASYNC_LIBS) $(LIBS)
hf.c: hf.l
purify: $(OBJS)
@rm -f $@
purify $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(ASYNC_OBJS) $(ASYNC_LIBS) $(LIBS)
version.o: version.c
version.c: $(srcdir)/VERSION
@rm -f $@
sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
ef: ef.c $(LIBOBJS)
@rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LIBOBJS) $(LIBS)
nf: nf.c $(LIBOBJS)
@rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LIBOBJS) $(ASYNC_LIBS) $(LIBS)
pf: pf.c $(LIBOBJS)
@rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $@.c $(LIBOBJS) $(LIBS)
install: install-hf install-ef install-nf install-pf
install-hf: hf
$(INSTALL) -m 555 -o bin -g bin hf $(DESTDIR)$(BINDEST)
@diff $(srcdir)/hf.1 $(DESTDIR)$(MANDEST)/man1 >/dev/null 2>&1 || \
$(INSTALL) -v -m 444 -o bin -g bin $(srcdir)/hf.1 $(DESTDIR)$(MANDEST)/man1
install-ef: ef
$(INSTALL) -m 555 -o bin -g bin ef $(DESTDIR)$(BINDEST)
install-nf: nf
$(INSTALL) -m 555 -o bin -g bin nf $(DESTDIR)$(BINDEST)
install-pf: pf
$(INSTALL) -m 555 -o bin -g bin pf $(DESTDIR)$(BINDEST)
clean: force
rm -f $(CLEANFILES)
distclean: force
rm -rf $(CLEANFILES) Makefile config.cache config.log config.status \
gnuc.h os-proto.h autom4te.cache
tags: $(TAGFILES)
ctags -wtd $(TAGFILES)
dist tar: force
@cwd=`pwd` ; name=${PROG}-`cat VERSION` ; \
list="" ; tar="tar chf" ; temp="$$name.tar.gz" ; \
for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
echo \
"rm -f $$name; ln -s . $$name" ; \
rm -f $$name; ln -s . $$name ; \
echo \
"$$tar - [lots of files] | gzip > $$temp" ; \
$$tar - $$list | gzip > $$temp ; \
echo \
"rm -f $$name" ; \
rm -f $$name
sign:
@name=${PROG}-`cat VERSION`.tar.gz; \
set -x; \
rm -f $${name}.asc; \
gpg --armor --detach-sign $${name}
force: /tmp
depend: $(GENSRC) force
./mkdep -c $(CC) $(DEFS) $(INCLS) $(GENSRC) $(LIBSRCS) $(ASYNC_SRCS) setsignal.c