Tizen 2.1 base
[platform/upstream/libnl2.git] / tests / 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 LDFLAGS += -L../lib -lnl ../src/utils.o
17 CIN     := $(wildcard test-*.c)
18 TOOLS   := $(CIN:%.c=%)
19
20 all: $(TOOLS)
21
22 $(TOOLS): ../src/utils.o
23
24 test-%: test-%.c
25         @echo "  LD $@"; \
26         $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -lnl-genl -lnl-route
27
28 clean:
29         @echo "  CLEAN src"; \
30         rm -f $(TOOLS)
31
32 distclean: clean
33
34 install:
35         @true
36
37 include ../Makefile.rules