forked from ISDN4Linux/mISDN
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.module
49 lines (36 loc) · 1.15 KB
/
Makefile.module
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
# Master Makefile for the ipppcomp
# (c) 03/2001 Karsten Keil <[email protected]>
# adapted from Kurt Garloffs <[email protected]> SecuMod package
DESTDIR =
KDIR := /usr/src/linux
TARGET := mISDN
TARGETS := Rules.make arch scripts .config include $(TARGET)
TARGETDIR := drivers/isdn/hardware/mISDN
default: $(TARGETS)
all: $(TARGETS)
Rules.make: $(KDIR)/Rules.make Rules.make.ext
cp -pf $(KDIR)/Rules.make .
cat Rules.make.ext >> Rules.make
.config: $(KDIR)/.config
cp -pf $(KDIR)/.config .
cat add.config >> .config
arch: $(KDIR)/arch
rm -f arch
ln -s $(KDIR)/arch .
scripts: $(KDIR)/scripts
rm -f scripts
ln -s $(KDIR)/scripts
include: $(KDIR)/include
rm -f include
ln -s $(KDIR)/include
clean:
rm -f $(TARGETS) $(TARGETDIR)/.*.flags $(TARGETDIR)/*.o $(TARGETDIR)/.depend
rm -f $(TARGETDIR)/*~ newinclude/linux/*~ *~ .kversion
rm -f -r modules .depend .hdepend
$(TARGET):
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) $(TARGET)
install: $(TARGETS)
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) install_mod
install newinclude/linux/mISDNif.h /usr/include/linux
modlist:
$(MAKE) -f Makefile KDIR=$(KDIR) TARGETDIR=$(TARGETDIR) modlist