1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
# $Id: Makefile,v 1.3 1998/01/07 08:43:49 rth Exp $
include ../Makeconfig
# Enable debugging by adding the option debug to kerneld: "kerneld debug"
# (Debugging can also be enabled via the kdstat utility: "kdstat debug")
DEBUG=-DDEBUG
# If you have gdbm, and if you want to use it for persistent module storage,
# remove (or comment) the following line:
NO_GDBM=-DNO_GDBM
#----------------------------------------------------------------------
DEFS += $(DEBUG) $(NO_GDBM)
PROGS= kerneld
ifndef NO_GDBM
PROGS += admpersist
LDLIBS = -lgdbm
endif
all: $(PROGS)
kerneld: kerneld.o ../util/libutil.a
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(LDLIBS)
install install-bin: all
for i in $(PROGS); do \
$(INSTALL) $$i $(sbindir); \
done
install-scripts:
$(INSTALL) request-route.sh $(sbindir)/request-route
UTILS= kdstat
TESTPROGS= kdsend
#
# Build the fake kerneld message generator: kdsend and the kdstat "utility"
# Used for debugging purposes only
#
test: all $(TESTPROGS)
utils: all $(UTILS)
install-utils: utils
for i in $(UTILS); do \
$(INSTALL) $$i $(sbindir); \
done
realclean clean:
rm -f $(PROGS) $(TESTPROGS) $(UTILS) *.o .depend
depend dep:
$(CC) -M $(CFLAGS) $(DEFS) *.c > .depend
check_persist.o: check_persist.c
$(CC) $(CFLAGS) $(DEFS) -DMODULE -D__KERNEL__ -c check_persist.c
# include a dependency file if one exists
ifeq (.depend,$(wildcard .depend))
include .depend
endif
|