mISDN/Makefile.module

50 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2001-10-01 10:21:52 +00:00
# Master Makefile for the ipppcomp
# (c) 03/2001 Karsten Keil <kkeil@suse.de>
# adapted from Kurt Garloffs <garloff@suse.de> SecuMod package
DESTDIR =
KDIR := /usr/src/linux
2003-07-21 12:07:51 +00:00
TARGET := mISDN
2001-10-01 23:22:43 +00:00
TARGETS := Rules.make arch scripts .config include $(TARGET)
2003-07-21 12:07:51 +00:00
TARGETDIR := drivers/isdn/hardware/mISDN
2001-10-01 10:21:52 +00:00
default: $(TARGETS)
all: $(TARGETS)
Rules.make: $(KDIR)/Rules.make Rules.make.ext
2001-10-01 10:21:52 +00:00
cp -pf $(KDIR)/Rules.make .
cat Rules.make.ext >> Rules.make
2001-10-01 10:21:52 +00:00
2001-10-01 23:22:43 +00:00
.config: $(KDIR)/.config
cp -pf $(KDIR)/.config .
2001-11-14 10:41:26 +00:00
cat add.config >> .config
2001-10-01 23:22:43 +00:00
2001-10-01 10:21:52 +00:00
arch: $(KDIR)/arch
rm -f arch
ln -s $(KDIR)/arch .
2001-10-01 23:22:43 +00:00
scripts: $(KDIR)/scripts
rm -f scripts
ln -s $(KDIR)/scripts
include: $(KDIR)/include
rm -f include
ln -s $(KDIR)/include
2001-10-01 10:21:52 +00:00
clean:
rm -f $(TARGETS) $(TARGETDIR)/.*.flags $(TARGETDIR)/*.o $(TARGETDIR)/.depend
2001-10-01 23:22:43 +00:00
rm -f $(TARGETDIR)/*~ newinclude/linux/*~ *~ .kversion
rm -f -r modules .depend .hdepend
2001-10-01 10:21:52 +00:00
$(TARGET):
2001-10-01 12:42:31 +00:00
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) $(TARGET)
2001-10-01 10:21:52 +00:00
install: $(TARGETS)
2001-10-01 12:42:31 +00:00
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) install_mod
2003-07-21 12:00:05 +00:00
install newinclude/linux/mISDNif.h /usr/include/linux
modlist:
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) modlist