mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
25697773b5
by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
45 lines
569 B
Plaintext
45 lines
569 B
Plaintext
# Makefile for the BIRD Internet Routing Daemon
|
|
# (c) 1998 Martin Mares <mj@ucw.cz>
|
|
|
|
THISDIR=$(shell pwd)
|
|
RELDIR=$(subst $(TOPDIR)/,,$(THISDIR))
|
|
ONAME=$(subst /,_,$(RELDIR)).o
|
|
|
|
ifndef SRCS
|
|
SRCS=$(subst .o,.c,$(OBJS))
|
|
endif
|
|
|
|
ifdef OBJS
|
|
|
|
ifdef LIB
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
rm -f $(LIB)
|
|
ar rcs $(LIB) $(OBJS)
|
|
ranlib $(LIB)
|
|
|
|
else
|
|
|
|
all: $(ONAME)
|
|
|
|
$(ONAME): $(OBJS)
|
|
$(LD) -r -o $(ONAME) $(OBJS)
|
|
|
|
endif
|
|
|
|
dep: $(SRCS)
|
|
rm -f .depend
|
|
for a in $(SRCS) ; do gcc $(CPPFLAGS) -MM $$a >>.depend ; done
|
|
|
|
else
|
|
|
|
dep:
|
|
|
|
endif
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
include .depend
|
|
endif
|