4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation version 2.1
9 # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
12 ifeq ($(shell [ ! -r Makefile.opts ] && echo 1),)
16 SUBDIRS := lib include doc src
17 .PHONY: all clean distclean install gendoc $(SUBDIRS)
20 @for dir in $(SUBDIRS); do \
21 echo "Entering $$dir" && cd $$dir && $(MAKE) && cd ..; \
26 @for dir in $(SUBDIRS); do \
27 echo "Entering $$dir" && cd $$dir && $(MAKE) clean && cd ..; \
31 @$(RM) -rf Makefile.opts autom4te.cache config.log config.status
32 @for dir in $(SUBDIRS); do \
33 echo "Entering $$dir" && cd $$dir && $(MAKE) distclean && cd ..; \
36 install: Makefile.opts
37 @for dir in $(SUBDIRS); do \
38 echo "Entering $$dir" && cd $$dir && $(MAKE) install && cd ..; \
40 mkdir -p $(DESTDIR)$(libdir)/pkgconfig/
41 install -m 0644 libnl-1.pc $(DESTDIR)$(libdir)/pkgconfig/
49 @echo "CFLAGS: $(CFLAGS)"
50 @echo "DEPFLAGS: $(DEPFLAGS)"
51 @echo "LDFLAGS: $(LDFLAGS)"
52 @echo "DESTDIR: $(DESTDIR)"
53 @echo "prefix: $(prefix)"
54 @echo "libdir: $(libdir)"
55 @echo "includedir: $(includedir)"
58 cscope -b -q -R -Iinclude -slib -ssrc
64 -include Makefile.rules