-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
75 lines (62 loc) · 2.17 KB
/
makefile
File metadata and controls
75 lines (62 loc) · 2.17 KB
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
HSOURCES=basename.c expunge.c errout.c\
do_nrm.c nrmmain.c urmmain.c needsmade.c \
restore.c updatetime.c gtime.c printtimes.c
NSOURCES=efopen.c strindex.c ttyin.c isdir.c pick.c
OBJECTS=efopen.o ttyin.o errout.o pick.o strindex.o\
basename.o expunge.o updatetime.o
ALL=README nrm.1 makefile $(HSOURCES) $(NSOURCES) nrm.h\
dofmv.c savefile.c\
nrm.cleanup make_nrm.h
NLINTSRC= efopen.c ttyin.c errout.c pick.c strindex.c\
basename.c expunge.c updatetime.c\
do_nrm.c nrmmain.c savefile.c
ULINTSRC= efopen.c ttyin.c errout.c pick.c strindex.c\
basename.c expunge.c updatetime.c\
urmmain.c isdir.c dofmv.c restore.c
SYSBIN=/usr/local/bin/
MANDIR=/usr/local/man/man1/
CATDIR=/usr/local/man/cat1/
CLEANUP=/etc
SRC=/usr/local/src/cmd/nrm/nrm/
CP=./ncp
CCFLAGS=-O
all: nrm urm gtime needsmade
nrm: $(OBJECTS) do_nrm.o nrmmain.o savefile.o
cc $(OBJECTS) do_nrm.o nrmmain.o savefile.o -o nrm $(CCFLAGS)
strip nrm
urm: $(OBJECTS) urmmain.o isdir.o dofmv.o restore.o
cc $(OBJECTS) urmmain.o isdir.o dofmv.o restore.o -o urm $(CCFLAGS)
strip urm
gtime: gtime.o printtimes.o errout.o
cc gtime.o printtimes.o errout.o $(CCFLAGS) -o gtime
install: nrm urm nrm.1 nrm.cleanup
/bin/cp ncp $(SYSBIN)
-$(CP) nrm $(SYSBIN)
-$(CP) urm $(SYSBIN)
-$(CP) gtime $(SYSBIN)
-$(CP) nrm.1 $(MANDIR)
/bin/rm -f $(CATDIR)nrm.1
-$(CP) nrm.cleanup $(CLEANUP)
clean:
-$(RM) $(OBJECTS)
shar: $(ALL)
shar -b -c -v $(ALL) > sharfile
lint: $(NLINTSRC) $(ULINTSRC)
echo "******** lint output for nrm files *********" > fluff
lint $(NLINTSRC) >> fluff
echo "******** lint output for urm files *********" >> fluff
lint $(ULINTSRC) >> fluff
$(HSOURCES):nrm.h
.c.o:
cc -c $(CCFLAGS) $<
##### other stuff not included in shar:
ncalls:
cat $(NLINTSRC) | calls -
ucalls:
cat $(ULINTSRC) | calls -
rmdir: killdir.o killdirmain.o isdir.o errout.o
cc killdir.o killdirmain.o isdir.o errout.o $(CCFLAGS) -o rmdir
rlist: rlist.o rmain.o isdir.o
cc rlist.o rmain.o isdir.o $(CCFLAGS) -o rlist
mvdir: ttyin.o efopen.o linkdir.o pick.o expunge.o mvdir.o updatetime.o mvdirmain.o isdir.o errout.o
cc ttyin.o linkdir.o efopen.o mvdir.o pick.o expunge.o mvdirmain.o updatetime.o isdir.o errout.o $(CCFLAGS) -o mvdir