This commit was generated by cvs2svn to compensate for changes in r786,
[libnl.git] / src / Makefile
1 #
2 # src/Makefile
3 #
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
7 #       of the License.
8 #
9 # Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
10 #
11
12 ifeq ($(shell [ ! -r ../Makefile.opts ] && echo 1),)
13     include ../Makefile.opts
14 endif
15
16 CFLAGS  += -L../lib
17 CIN     := $(wildcard nl-*.c)
18 TOOLS   := $(CIN:%.c=%)
19
20 all: $(TOOLS)
21
22 $(TOOLS): utils.o
23
24 nl-%: nl-%.c
25         $(CC) $(CFLAGS) -o $@ $< -lnl utils.o
26
27 clean:
28         rm -f $(TOOLS) utils.o
29
30 distclean: clean
31
32 install:
33         @true