-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
112 lines (98 loc) · 2.85 KB
/
Makefile
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#
# Makefile for the NWFS module For Linux.
#
CC = gcc
LINK = ld
CFLAGS = -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 \
-fomit-frame-pointer -fno-strength-reduce -pipe -m386 -DCPU=386 \
-I/usr/src/linux/include -c
ifdef MODVERSIONS
CFLAGS+=-DMODVERSIONS
endif
ifdef SMP
CFLAGS+=-D__SMP__
endif
ifdef LINUX_DRIVER
CFLAGS+=-DLINUX_DRIVER=1
CFLAGS+=-DOVERRIDE=1
endif
LFLAGS = -m elf_i386 -Map nwfs.map -r -o
incdeps = nwfs.h nwstruct.h nwdir.h nwhash.h nwproc.h nwvfs.h nwerror.h \
globals.h
objects = nwvfs.o alloc.o disk.o nwpart.o volume.o globals.o lru.o \
lock.o hash.o async.o fat.o bit.o block.o cluster.o dir.o \
mmap.o inode.o super.o file.o ioctl.o nwdir.o nwfile.o nwfix.o \
trustee.o nwext.o suballoc.o create.o date.o \
nwcreate.o symlink.o nwvp.o nwvphal.o
all: nwfs.o
nwfs.o: $(objects)
$(LINK) $(LFLAGS) nwfs.o $(objects)
nwvfs.o: nwvfs.c $(incdeps)
$(CC) $(CFLAGS) nwvfs.c
nwvp.o: nwvp.c $(incdeps)
$(CC) $(CFLAGS) nwvp.c
nwvphal.o: nwvphal.c $(incdeps)
$(CC) $(CFLAGS) nwvphal.c
alloc.o: alloc.c $(incdeps)
$(CC) $(CFLAGS) alloc.c
disk.o: disk.c $(incdeps)
$(CC) $(CFLAGS) disk.c
nwpart.o: nwpart.c $(incdeps)
$(CC) $(CFLAGS) nwpart.c
volume.o: volume.c $(incdeps)
$(CC) $(CFLAGS) volume.c
fat.o: fat.c $(incdeps)
$(CC) $(CFLAGS) fat.c
globals.o: globals.c $(incdeps)
$(CC) $(CFLAGS) globals.c
lock.o: lock.c $(incdeps)
$(CC) $(CFLAGS) lock.c
hash.o: hash.c $(incdeps)
$(CC) $(CFLAGS) hash.c
string.o: string.c $(incdeps)
$(CC) $(CFLAGS) string.c
lru.o: lru.c $(incdeps)
$(CC) $(CFLAGS) lru.c
bit.o: bit.c $(incdeps)
$(CC) $(CFLAGS) bit.c
block.o: block.c $(incdeps)
$(CC) $(CFLAGS) block.c
cluster.o: cluster.c $(incdeps)
$(CC) $(CFLAGS) cluster.c
dir.o: dir.c $(incdeps)
$(CC) $(CFLAGS) dir.c
mmap.o: mmap.c $(incdeps)
$(CC) $(CFLAGS) mmap.c
inode.o: inode.c $(incdeps)
$(CC) $(CFLAGS) inode.c
super.o: super.c $(incdeps)
$(CC) $(CFLAGS) super.c
file.o: file.c $(incdeps)
$(CC) $(CFLAGS) file.c
ioctl.o: ioctl.c $(incdeps)
$(CC) $(CFLAGS) ioctl.c
nwdir.o: nwdir.c $(incdeps)
$(CC) $(CFLAGS) nwdir.c
nwfile.o: nwfile.c $(incdeps)
$(CC) $(CFLAGS) nwfile.c
trustee.o: trustee.c $(incdeps)
$(CC) $(CFLAGS) trustee.c
nwext.o: nwext.c $(incdeps)
$(CC) $(CFLAGS) nwext.c
suballoc.o: suballoc.c $(incdeps)
$(CC) $(CFLAGS) suballoc.c
create.o: create.c $(incdeps)
$(CC) $(CFLAGS) create.c
date.o: date.c $(incdeps)
$(CC) $(CFLAGS) date.c
nwcreate.o: nwcreate.c $(incdeps)
$(CC) $(CFLAGS) nwcreate.c
symlink.o: symlink.c $(incdeps)
$(CC) $(CFLAGS) symlink.c
async.o: async.c $(incdeps)
$(CC) $(CFLAGS) async.c
nwfix.o: nwfix.c $(incdeps)
$(CC) $(CFLAGS) nwfix.c
clean:
rm -f nwvol nwvp nwview nwdump nwdisk nwconfig nwrepair nwfsinfo \
nwimage nwbackup nwrestor *.o *.map *.log *.LOG