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
12ifeq ($(shell [ ! -r ../Makefile.opts ] && echo 1),)
13    include ../Makefile.opts
14endif
15
16LDFLAGS	+= -L../lib -lnl ../src/utils.o
17CIN 	:= $(wildcard test-*.c)
18TOOLS	:= $(CIN:%.c=%)
19
20all: $(TOOLS)
21
22$(TOOLS): ../src/utils.o
23
24test-%: test-%.c
25	@echo "  LD $@"; \
26	$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) -lnl-genl -lnl-route
27
28clean:
29	@echo "  CLEAN src"; \
30	rm -f $(TOOLS)
31
32distclean: clean
33
34install:
35	@true
36
37include ../Makefile.rules
38