-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·137 lines (100 loc) · 3.47 KB
/
makefile
File metadata and controls
executable file
·137 lines (100 loc) · 3.47 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Simple Makefile for the COPS system; compiles, and chmods
# the programs.
#
# make all -- makes everything
# make install -- puts things in their place
# make <program_name> -- make a given program
INSTALL_DIR= sun
EXECUTABLE = home.chk user.chk pass.chk is_writable crc crc_check \
addto clearfiles filewriters members tilde is_able \
k_server k_client add_R_users process_success_files
C_SRC = home.chk.c user.chk.c is_able.c pass.c is_something.c \
addto.c clearfiles.c filewriters.c members.c tilde.c \
crc.c crc_check.c
SHELL_PROGS= chk_strings root.chk dev.chk cron.chk is_able.chk \
cops group.chk rc.chk passwd.chk ftp.chk crc.chk \
misc.chk suid.chk kuang init_kuang reconfig res_diff \
yp_pass.chk bug.chk bug.chk.aix bug.chk.apollo \
bug.chk.dec bug.chk.next bug.chk.sgi bug.chk.sun \
bug.chk.svr4 bug_cmp platform
SUPPORT = is_able.lst suid.stop crc_list pass.words
# Running C2 on a sun?
# C2 = -DC2
#
CFLAGS = -O $(C2)
# sequents need "-lseq" as well... uncomment this if you're running on one:
# SEQFLAGS = -lseq
# Certain systems need to uncomment this to compile the pass.chk; Xenix,
# some SysV:
# BRAINDEADFLAGS = -lcrypt
#
# systems with rindex need to uncomment this:
# CRC_FLAG=-Dstrrchr=rindex
#
# Where the programs are....
#
CHMOD=/bin/chmod
TEST=/bin/test
MKDIR=/bin/mkdir
CP=/bin/cp
CC=/bin/cc
RM=/bin/rm
# make default
default: $(EXECUTABLE)
$(CHMOD) u+x $(SHELL_PROGS)
# make all
all: $(EXECUTABLE)
cd docs; make
$(CHMOD) u+x $(SHELL_PROGS)
# hammer the binaries and formatted docs; if compiled fcrypt stuff,
# will trash the *.o files, too.
clean:
$(RM) -f $(EXECUTABLE) pass.o crack-fcrypt.o crack-lib.o
cd docs; make clean
man:
cd docs; make
# make a dir and shove everything in the proper place
install:
-if $(TEST) ! -d $(INSTALL_DIR) ; then $MKDIR $(INSTALL_DIR) ; fi
$(CP) $(EXECUTABLE) $(SHELL_PROGS) $(SUPPORT) $(INSTALL_DIR)
# make the programs
addto: src/addto.c
$(CC) $(CFLAGS) -o addto src/addto.c
clearfiles: src/clearfiles.c
$(CC) $(CFLAGS) -o clearfiles src/clearfiles.c
filewriters: src/filewriters.c
$(CC) $(CFLAGS) -o filewriters src/filewriters.c
members: src/members.c
$(CC) $(CFLAGS) -o members src/members.c
home.chk: src/home.chk.c
$(CC) $(CFLAGS) -o home.chk src/home.chk.c
user.chk: src/user.chk.c
$(CC) $(CFLAGS) -o user.chk src/user.chk.c
is_able: src/is_able.c
$(CC) $(CFLAGS) -o is_able src/is_able.c
is_writable: src/is_something.c
$(CC) $(CFLAGS) -DWRITABLE -o is_writable src/is_something.c
# If fast crypt will work, comment the first CC line, uncomment
# the next two:
# $(CC) $(CFLAGS) -o pass.chk src/pass.c $(BRAINDEADFLAGS)
pass.chk: src/pass.c
$(CC) $(CFLAGS) -Dcrypt=fcrypt -DFCRYPT -o pass.chk src/pass.c \
src/crack-fcrypt.c src/crack-lib.c $(BRAINDEADFLAGS)
tilde: src/tilde.c
$(CC) $(CFLAGS) -o tilde src/tilde.c
crc: src/crc.c
$(CC) $(CFLAGS) -o crc src/crc.c $(SEQFLAGS)
crc_check: src/crc_check.c
$(CC) $(CFLAGS) $(CRC_FLAG) -o crc_check src/crc_check.c $(SEQFLAGS)
####################################################
k_server: server.c
gcc -o k_server -g server.c
k_client: client.c
gcc -o k_client -g client.c
add_R_users: add_R_users.c
gcc -g -o add_R_users add_R_users.c
####################################################
process_success_files: process_success_files.c
gcc -o process_success_files -g process_success_files.c
####################################################
# the end