home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
ipsearch-1.0.tar.gz
/
ipsearch-1.0.tar
/
ipsearch-1.0
/
Makefile.in
< prev
next >
Wrap
Makefile
|
2011-07-06
|
4KB
|
142 lines
# Copyright (c) 2011
# 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 4 2011-07-06 22:22:18Z 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 = @mandir@
# VPATH
srcdir = @srcdir@
VPATH = @srcdir@
#
# You shouldn't need to edit anything below here.
#
PROG = ipsearch
ALL = ${PROG}
CC = @CC@
CCOPT = @V_CCOPT@
INCLS = @V_INCLS@
DEFS = @DEFS@
# Standard CFLAGS
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 = ipsearch.c _ipsearch.l version.c
LIBOBJS = @LIBOBJS@
LIBSRCS = $(LIBOBJS:.o=.c)
OBJS = ${PROG}.o version.o $(LIBOBJS)
TAGHDR =
TAGFILES = ${PROG}.l $(TAGHDR)
CLEANFILES = $(ALL) $(GENSRC) $(OBJS) $(LIBOBJS) purify $(OBJS:.o=_pure_*.o)
all: $(ALL)
ipsearch: $(OBJS)
@rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
ipsearch.c: _ipsearch.l
_ipsearch.l: ipsearch.l makerules ipsearch.txt
./makerules ipsearch.l ipsearch.txt > $@
ipsearch.c: _ipsearch.l
$(LEX) $(srcdir)/_ipsearch.l ; rm -f $@ ; mv lex.yy.c $@
purify: $(OBJS)
@rm -f $@
purify $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
version.o: version.c
version.c: $(srcdir)/VERSION
@rm -f $@
sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
install: ipsearch
$(INSTALL) -m 555 -o bin -g bin ipsearch $(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)