+# End of manual dependencies section
+
+secnet: $(OBJECTS)
+ $(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
+
+version.c: Makefile
+ echo "#include \"secnet.h\"" >$@.new
+ echo "char version[]=\"secnet $(VERSION)\";" >>$@.new
+ mv -f $@.new $@
+
+installdirs:
+ $(INSTALL) -d $(prefix)/share/secnet $(sbindir)
+
+install: installdirs
+ $(INSTALL_PROGRAM) secnet $(sbindir)/`echo secnet|sed '$(transform)'`
+ $(INSTALL_PROGRAM) ${srcdir}/make-secnet-sites $(sbindir)/`echo make-secnet-sites|sed '$(transform)'`
+ $(INSTALL) ${srcdir}/ipaddr.py $(prefix)/share/secnet/ipaddr.py
+
+clean:
+ $(RM) -f *.o *.yy.c *.tab.[ch] $(TARGETS) core version.c
+ $(RM) -f *.d *~
+
+realclean: clean
+ $(RM) -f *~ Makefile config.h *.d \
+ config.log config.status config.cache \
+ stamp-h Makefile.bak
+
+distclean: realclean
+
+pfname:=$(PACKAGE)-$(VERSION)
+dist:
+ $(RM) -rf $(pfname)
+ mkdir $(pfname)
+ for i in $(DISTDIRS) ; do mkdir $(pfname)/$$i ; done
+ for i in $(DISTFILES) ; do ln -s ../$(srcdir)/$$i $(pfname)/ ; done
+ for i in $(DISTSUBDIRS) ; do ln -s ../../$(srcdir)/$$i $(pfname)/$$i ; done
+ tar hcf ../$(pfname).tar --exclude=CVS --exclude=.cvsignore $(pfname)
+ gzip -9f ../$(pfname).tar
+ $(RM) -rf $(pfname)