1998-04-22 20:58:34 +08:00
|
|
|
# Makefile for the BIRD Internet Routing Daemon
|
|
|
|
# (c) 1998 Martin Mares <mj@ucw.cz>
|
|
|
|
|
|
|
|
THISDIR=$(shell pwd)
|
|
|
|
RELDIR=$(subst $(TOPDIR)/,,$(THISDIR))
|
|
|
|
ANAME=$(subst /,_,$(RELDIR)).a
|
1998-04-28 22:39:34 +08:00
|
|
|
SRCS=$(subst .o,.c,$(OBJS))
|
1998-04-22 20:58:34 +08:00
|
|
|
|
|
|
|
all: $(ANAME)
|
|
|
|
|
|
|
|
$(ANAME): $(OBJS)
|
|
|
|
rm -f $(ANAME)
|
|
|
|
ar rcs $(ANAME) $(OBJS)
|
1998-04-28 22:39:34 +08:00
|
|
|
|
|
|
|
ifdef OBJS
|
|
|
|
|
|
|
|
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
|