-
Notifications
You must be signed in to change notification settings - Fork 182
/
Makefile
64 lines (51 loc) · 1.23 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
CLIENT_OBJ=pel.c aes.c sha1.c tsh.c
SERVER_OBJ=pel.c aes.c sha1.c tshd.c
all:
@echo
@echo "Please specify one of these targets:"
@echo
@echo " make linux"
@echo " make freebsd"
@echo " make openbsd"
@echo " make netbsd"
@echo " make cygwin"
@echo " make sunos"
@echo " make irix"
@echo " make hpux"
@echo " make osf"
@echo
clean:
rm -f *.o tsh tshd
linux:
gcc -O -W -Wall -o tsh $(CLIENT_OBJ)
gcc -O -W -Wall -o tshd $(SERVER_OBJ) -lutil -DLINUX
strip tsh tshd
freebsd:
gcc -O -W -Wall -o tsh $(CLIENT_OBJ)
gcc -O -W -Wall -o tshd $(SERVER_OBJ) -lutil -DFREEBSD
strip tsh tshd
openbsd:
gcc -O -W -Wall -o tsh $(CLIENT_OBJ)
gcc -O -W -Wall -o tshd $(SERVER_OBJ) -lutil -DOPENBSD
strip tsh tshd
netbsd: openbsd
cygwin:
gcc -O -W -Wall -o tsh $(CLIENT_OBJ)
gcc -O -W -Wall -o tshd $(SERVER_OBJ) -DCYGWIN
strip tsh tshd
sunos:
gcc -O -W -Wall -o tsh $(CLIENT_OBJ) -lsocket -lnsl
gcc -O -W -Wall -o tshd $(SERVER_OBJ) -lsocket -lnsl -DSUNOS
strip tsh tshd
irix:
cc -O -o tsh $(CLIENT_OBJ)
cc -O -o tshd $(SERVER_OBJ) -DIRIX
strip tsh tshd
hpux:
cc -O -o tsh $(CLIENT_OBJ)
cc -O -o tshd $(SERVER_OBJ) -DHPUX
strip tsh tshd
osf:
cc -O -o tsh $(CLIENT_OBJ)
cc -O -o tshd $(SERVER_OBJ) -DOSF
strip tsh tshd