OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [userland/] [route/] [Makefile] - Blame information for rev 745

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 745 simons
 
2
CC = or32-uclibc-gcc
3
LD = or32-uclibc-gcc
4
STRIP = or32-uclibc-strip
5
 
6
ROUTE = route
7
ROUTEOBJS = route.o
8
 
9
IFCONFIG = ifconfig
10
IFCONFIGOBJS = ifconfig.o
11
 
12
ARP = arp
13
ARPOBJS = arp.o
14
 
15
CFLAGS += -D_GNU_SOURCE -D__USE_BSD -Wall -Werror-implicit-function-declaration -Ilib/ -Iinclude
16
LDFLAGS += -r -d
17
 
18
LIBROUTE = lib/libroute.a
19
 
20
all: $(ROUTE) $(IFCONFIG) $(ARP)
21
 
22
$(ROUTE): $(ROUTEOBJS) $(LIBROUTE)
23
        $(LD) $(LDFLAGS) -o $@ $(ROUTEOBJS) $(LIBNET) $(LIBROUTE) $(LDLIBS)
24
        $(STRIP) -g $@
25
 
26
$(IFCONFIG): $(IFCONFIGOBJS) $(LIBROUTE)
27
        $(LD) $(LDFLAGS) -o $@ $(IFCONFIGOBJS) $(LIBNET) $(LIBROUTE) $(LDLIBS)
28
        $(STRIP) -g $@
29
 
30
$(ARP): $(ARPOBJS) $(LIBROUTE)
31
        $(LD) $(LDFLAGS) -o $@ $(ARPOBJS) $(LIBNET) $(LIBROUTE) $(LDLIBS)
32
        $(STRIP) -g $@
33
 
34
clean:
35
        -rm -f $(ROUTE) $(IFCONFIG) $(ARP) *.gdb *.o
36
        $(MAKE) -C lib clean
37
 
38
$(LIBROUTE):
39
        $(MAKE) -C lib
40
 
41
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.