File: Makefile.generic

package info (click to toggle)
socks4-server 4.3.beta2-20
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 1,512 kB
  • ctags: 1,778
  • sloc: ansic: 19,305; makefile: 399; sh: 52
file content (97 lines) | stat: -rw-r--r-- 3,021 bytes parent folder | download | duplicates (9)
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
#
# Copyright (c) 1991 The Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted provided
# that: (1) source distributions retain this entire copyright notice and
# comment, and (2) distributions including binaries display the following
# acknowledgement:  ``This product includes software developed by the
# University of California, Berkeley and its contributors'' in the
# documentation or other materials provided with the distribution and in
# all advertising materials mentioning features or use of this software.
# Neither the name of the University nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
#	@(#)Makefile.generic	5.5 (Berkeley) 3/1/91
#

# Directory into which rtelnet program will be installed:
BIN_DEST_DIR=/usr/local/bin

# Directory into which rtelnet's man page file will be installed:
MAN_DEST_DIR=/usr/local/man/man1

#=============================================================

INCLUDES= -I.. -I../../include
ARPA_TELNET= ../arpa/telnet.h

SRCS=	commands.c main.c network.c ring.c \
	sys_bsd.c telnet.c terminal.c \
	utilities.c ${GETOPT_SRC}

CFLAGS=	${LCCFLAGS} ${INCLUDES} ${DEFINES}

ALLHC=	${SRCS} \
	defines.h externs.h fdset.h general.h \
	ring.h types.h

OBJS=	authenc.o commands.o main.o network.o ring.o sys_bsd.o \
	telnet.o terminal.o utilities.o ${GETOPT_OBJ}
MAN=	telnet.0

#
# These next three lines are not needed in 4.4BSD
#
.SUFFIXES: .0 .1
.1.0:
	nroff -man -h $< > $@

all: ../rtelnet

../rtelnet:	${OBJS} ${LIBPATH}
	${CC} -o $@ ${CFLAGS} ${OBJS} ${LIBS}

clean: FRC
	rm -f ${OBJS} core errs l.errs ../rtelnet

cleandir: clean
	rm -f ${MAN} tags .depend

clist:	FRC ${SRCS}
	@for i in ${SRCS} ; \
		do (echo ${DIRPATH}$$i); done

hclist:	FRC ${ALLHC}
	@for i in ${ALLHC} ; \
		do (echo ${DIRPATH}$$i); done

depend: FRC ${SRCS}
	mkdep ${CFLAGS} `make clist`

install: ${MAN} FRC
	install -s -o bin -g bin -m 111 ../rtelnet ${BIN_DEST_DIR}
	install -c -o bin -g bin -m 444 rtelnet.1 ${MAN_DEST_DIR}

lint: FRC ${SRCS}
	lint ${CFLAGS} `make clist`

tags: FRC ${SRCS}
	ctags `make hclist`

FRC:

authenc.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
commands.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
main.o: defines.h externs.h ring.h
network.o: defines.h externs.h fdset.h ring.h ${ARPA_TELNET}
ring.o: general.h ring.h
sys_bsd.o: defines.h externs.h fdset.h ring.h types.h ${ARPA_TELNET}
telnet.o: defines.h externs.h general.h ring.h types.h ${ARPA_TELNET}
terminal.o: externs.h ring.h types.h ${ARPA_TELNET}
tn3270.o: defines.h externs.h fdset.h general.h ring.h ${ARPA_TELNET}
utilities.o: defines.h externs.h fdset.h general.h ring.h ${ARPA_TELNET}