X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.in;h=a7d9df8175c06a8bf9059ca314b3a8666730dba7;hb=5963521296680c2aeb40baeb72459dffc14cd996;hp=8ec05ce23cea004c55d249862b1368b5c99dabcb;hpb=4efd681a66c15bc6f81eefc69396669e165e5e0f;p=secnet.git diff --git a/Makefile.in b/Makefile.in index 8ec05ce..a7d9df8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -1,24 +1,59 @@ -.DUMMY: all clean realclean dist install +# Makefile for secnet +# Copyright (C) 1995-2001 Stephen Early + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +.PHONY: all clean realclean dist install PACKAGE:=secnet -VERSION:=0.04 +VERSION:=0.07 @SET_MAKE@ srcdir:=@srcdir@ VPATH:=@srcdir@ -CFLAGS:=@CFLAGS@ @DEFS@ -DVERSION=\"$(VERSION)\" -Wall -I. +SHELL:=/bin/sh +RM:=@RM@ +CC:=@CC@ +INSTALL:=@INSTALL@ +INSTALL_PROGRAM:=@INSTALL_PROGRAM@ +CFLAGS:=@CFLAGS@ @DEFS@ -Wall -I. LDFLAGS:=@LDFLAGS@ - LDLIBS:=@LIBS@ +prefix:=@prefix@ +exec_prefix:=@exec_prefix@ +sbindir:=@sbindir@ +sysconfdir:=@sysconfdir@ +transform:=@program_transform_name@ + TARGETS:=secnet OBJECTS:=secnet.o util.o conffile.yy.o conffile.tab.o conffile.o modules.o \ resolver.o random.o udp.o site.o transform.o netlink.o rsa.o dh.o \ - serpent.o md5.o + serpent.o md5.o version.o + +DISTFILES:=COPYING INSTALL Makefile.in NOTES README TODO conffile.c \ + conffile.fl conffile.h conffile.y conffile_internal.h config.h.bot \ + config.h.in config.h.top configure configure.in dh.c \ + example-sites-file example.conf install.sh linux md5.c md5.h \ + modules.c modules.h netlink.c random.c resolver.c rsa.c \ + secnet.c secnet.h serpent.c serpent.h serpentsboxes.h \ + site.c transform.c udp.c unaligned.h util.c util.h %.c: %.y @@ -28,12 +63,35 @@ OBJECTS:=secnet.o util.o conffile.yy.o conffile.tab.o conffile.o modules.o \ %.tab.c: %.y bison -d $< -RM:=@RM@ all: $(TARGETS) +Makefile: Makefile.in config.status + $(SHELL) config.status + +config.status: configure + $(srcdir)/configure --no-create + +config.h: config.h.in config.status + $(SHELL) config.status + +$(OBJECTS): config.h secnet.h util.h +conffile.o conffile.tab.o conffile.yy.o: conffile.h conffile_internal.h +secnet.c: conffile.h +md5.o: md5.h +serpent.o transform.o: serpent.h +serpent.o: serpentsboxes.h +conffile.o: modules.h +site.c util.c: unaligned.h + secnet: $(OBJECTS) +version.c: Makefile + echo "char version[]=\"secnet-$(VERSION)\";" >version.c + +install: all + $(INSTALL_PROGRAM) secnet $(sbindir)/`echo secnet|sed '$(transform)'` + clean: $(RM) -f $(srcdir)/*.o $(srcdir)/*~ $(srcdir)/*.yy.c \ $(srcdir)/*.tab.[ch] @@ -43,10 +101,14 @@ realclean: clean $(srcdir)/config.log $(srcdir)/config.status $(srcdir)/config.cache \ $(srcdir)/Makefile.bak core -dist: realclean - (cd .. ; ln -s $(PACKAGE) $(PACKAGE)-$(VERSION) ; tar hcf - \ - $(PACKAGE)-$(VERSION) | \ - gzip -9 > $(PACKAGE)-$(VERSION).tar.gz ; rm $(PACKAGE)-$(VERSION) ) +pfname:=$(PACKAGE)-$(VERSION) +dist: + $(RM) -rf $(pfname) + mkdir $(pfname) + for i in $(DISTFILES) ; do ln -s ../$$i $(pfname)/ ; done + tar hcf ../$(pfname).tar $(pfname) + gzip -9f ../$(pfname).tar + $(RM) -rf $(pfname) conffile.yy.c: conffile.fl conffile.tab.c conffile.tab.c: conffile.y