~ubuntu-branches/ubuntu/oneiric/libnl3/oneiric

« back to all changes in this revision

Viewing changes to tests/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Heiko Stuebner
  • Date: 2011-05-21 19:25:13 UTC
  • Revision ID: james.westby@ubuntu.com-20110521192513-1ieyu9w9kym4bt16
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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