diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-09-14 23:28:01 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2007-09-14 23:28:01 (GMT) |
commit | 44d362409d5469aed47d19e7908d19bd194493a4 (patch) | |
tree | 5d1e739a4566f3af796273e5c3f78ca53d234df6 /Makefile | |
download | libnl-44d362409d5469aed47d19e7908d19bd194493a4.zip libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.gz libnl-44d362409d5469aed47d19e7908d19bd194493a4.tar.bz2 |
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..826b9a3 --- /dev/null +++ b/Makefile @@ -0,0 +1,64 @@ +# +# Makefile +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation version 2.1 +# of the License. +# +# Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> +# + +ifeq ($(shell [ ! -r Makefile.opts ] && echo 1),) + include Makefile.opts +endif + +SUBDIRS := lib include doc src tests +.PHONY: all clean distclean install gendoc $(SUBDIRS) + +all: Makefile.opts + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && $(MAKE) -C $$dir || exit $$?; \ + done + +clean: Makefile.opts + rm -f cscope.* + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && $(MAKE) -C $$dir clean || exit $$?; \ + done + +distclean: clean + @$(RM) -rf Makefile.opts autom4te.cache config.log config.status + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && $(MAKE) -C $$dir distclean || exit $$?; \ + done + +install: Makefile.opts + @for dir in $(SUBDIRS); do \ + echo "Entering $$dir" && cd $$dir && $(MAKE) install && cd ..; \ + done + mkdir -p $(DESTDIR)$(libdir)/pkgconfig/ + install -m 0644 libnl-1.pc $(DESTDIR)$(libdir)/pkgconfig/ + +gendoc: + $(MAKE) -C doc gendoc + +show: Makefile.opts + @echo "CC: $(CC)" + @echo "RM: $(RM)" + @echo "CFLAGS: $(CFLAGS)" + @echo "DEPFLAGS: $(DEPFLAGS)" + @echo "LDFLAGS: $(LDFLAGS)" + @echo "DESTDIR: $(DESTDIR)" + @echo "prefix: $(prefix)" + @echo "libdir: $(libdir)" + @echo "includedir: $(includedir)" + +cscope: + cscope -b -q -R -Iinclude -slib -ssrc + + +$(SUBDIRS): + cd $@ && $(MAKE) + +-include Makefile.rules |