File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird / tools / Makefile.in
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Aug 22 12:33:54 2017 UTC (6 years, 10 months ago) by misho
Branches: bird, MAIN
CVS tags: v1_6_3p0, v1_6_3, HEAD
bird 1.6.3

    1: # Makefile for the BIRD Internet Routing Daemon
    2: # (c) 1999--2000 Martin Mares <mj@ucw.cz>
    3: 
    4: include Rules
    5: 
    6: .PHONY: all daemon birdc birdcl subdir depend clean distclean tags docs userdocs progdocs
    7: 
    8: all: sysdep/paths.h .dep-stamp subdir daemon birdcl @CLIENT@
    9: 
   10: daemon: $(exedir)/bird
   11: 
   12: birdc: $(exedir)/birdc
   13: 
   14: birdcl: $(exedir)/birdcl
   15: 
   16: bird-dep := $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
   17: 
   18: $(bird-dep): sysdep/paths.h .dep-stamp subdir
   19: 
   20: birdc-dep := client/birdc.o client/all.o lib/birdlib.a
   21: 
   22: $(birdc-dep): sysdep/paths.h .dep-stamp subdir
   23: 
   24: birdcl-dep := client/birdcl.o client/all.o lib/birdlib.a
   25: 
   26: $(birdcl-dep): sysdep/paths.h .dep-stamp subdir
   27: 
   28: 
   29: export client := @CLIENT@
   30: 
   31: depend: sysdep/paths.h .dir-stamp
   32: 	set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
   33: 	set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
   34: 
   35: subdir: sysdep/paths.h .dir-stamp .dep-stamp
   36: 	set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
   37: 	set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
   38: 
   39: $(exedir)/bird: $(bird-dep)
   40: 	@echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
   41: 	@$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
   42: 
   43: $(exedir)/birdc: $(birdc-dep)
   44: 	@echo LD $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
   45: 	@$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
   46: 
   47: $(exedir)/birdcl: $(birdcl-dep)
   48: 	@echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
   49: 	@$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
   50: 
   51: .dir-stamp: sysdep/paths.h
   52: 	mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs)
   53: 	touch .dir-stamp
   54: 
   55: .dep-stamp:
   56: 	$(MAKE) depend
   57: 	touch .dep-stamp
   58: 
   59: docs: userdocs progdocs
   60: 
   61: userdocs progdocs: .dir-stamp
   62: 	$(MAKE) -C doc -f $(srcdir_abs)/doc/Makefile $@
   63: 
   64: sysdep/paths.h:
   65: 	echo >sysdep/paths.h "/* Generated by Makefile, don't edit manually! */"
   66: 	echo >>sysdep/paths.h "#define PATH_CONFIG_FILE \"@CONFIG_FILE@\""
   67: 	echo >>sysdep/paths.h "#define PATH_CONTROL_SOCKET \"@CONTROL_SOCKET@\""
   68: 	if test -n "@iproutedir@" ; then echo >>sysdep/paths.h "#define PATH_IPROUTE_DIR \"@iproutedir@\"" ; fi
   69: 
   70: tags:
   71: 	cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]`
   72: 
   73: install: all
   74: 	$(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/@runtimedir@
   75: 	$(INSTALL_PROGRAM) $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX@
   76: 	$(INSTALL_PROGRAM) $(exedir)/birdcl $(DESTDIR)/$(sbindir)/birdcl@SUFFIX@
   77: 	if test -n "@CLIENT@" ; then								\
   78: 		$(INSTALL_PROGRAM) $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX@ ;	\
   79: 	fi
   80: 	if ! test -f $(DESTDIR)/@CONFIG_FILE@ ; then						\
   81: 		$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/@CONFIG_FILE@ ;	\
   82: 	else											\
   83: 		echo "Not overwriting old bird@SUFFIX@.conf" ;					\
   84: 	fi
   85: 
   86: install-docs:
   87: 	$(INSTALL) -d $(DESTDIR)/$(docdir)
   88: 	$(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(DESTDIR)/$(docdir)/
   89: 
   90: clean:
   91: 	find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f
   92: 	rm -f conf/cf-lex.c conf/cf-parse.* conf/commands.h conf/keywords.h
   93: 	rm -f $(exedir)/bird $(exedir)/birdcl $(exedir)/birdc $(exedir)/bird.ctl $(exedir)/bird6.ctl .dep-stamp
   94: 
   95: distclean: clean
   96: 	rm -f config.* configure sysdep/autoconf.h sysdep/paths.h Makefile Rules
   97: 	rm -rf .dir-stamp $(clean-dirs)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>