File: Makefile.in

package info (click to toggle)
pconsole 1.0-12
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 676 kB
  • ctags: 90
  • sloc: ansic: 870; sh: 300; makefile: 63
file content (97 lines) | stat: -rw-r--r-- 2,292 bytes parent folder | download | duplicates (3)
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
#
#   pconsole WJ101
#   Copyright (C) 2001  Walter de Jong <walter@heiho.net>
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#	pconsole Makefile.in	WJ101
#

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@

CC = @CC@
CFLAGS += @CFLAGS@
LFLAGS =
LIBS =
INCLUDE = include

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL@ -m 0750
INSTALL_SCRIPT = @INSTALL@ -m 0750
INSTALL_DATA = @INSTALL@ -m 0640

.c.o:
	$(CC) -I$(INCLUDE) $(CFLAGS) $(CPPFLAGS) -c $<

OBJS = List.o Conn.o cstring.o terminal.o commands.o pconsole.o

CFILES = $(OBJS:.o=.c)

TARGETS = pconsole

all: config.status config.log $(TARGETS)

include .depend

#
#   Targets
#

config.status config.log:
	@( \
		echo "Not yet configured. Type './configure' to configure." ; \
		echo \
	) ; \
	exit 1

pconsole: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -o pconsole $(LIBS)


neat:
	rm -f core *~

clean:
	rm -f core *.o $(TARGETS) *~

mrproper: clean
	rm -f .depend config.status config.cache config.log config.h pconsole.sh
	touch .depend

depend dep .depend:
	$(CC) -I$(INCLUDE) -M $(CFILES) > .depend


install: all
	@( \
		echo "installing pconsole ..."; \
		mkdir -p $(bindir) 2>/dev/null ; \
		@INSTALL_PROGRAM@ pconsole $(bindir) ;		\
		@INSTALL_SCRIPT@ pconsole.sh $(bindir) ;	\
		@INSTALL_SCRIPT@ ssh.sh $(bindir) ;			\
		echo ;	\
		echo "Note: You may want to make pconsole setuid root with the following commands:";	\
		echo ;	\
		echo "   chown root $(bindir)/pconsole ; chmod 4110 $(bindir)/pconsole" ; \
		echo \
	)

uninstall:
	rm -f $(bindir)/pconsole $(bindir)/pconsole.sh $(bindir)/ssh.sh ; \
	rmdir $(bindir) 2>/dev/null

# EOB