Debian Codegraph @

Makefile

raw
1 # Generated automatically from Makefile.in by configure.
2 #
3 # pconsole WJ101
4 # Copyright (C) 2001 Walter de Jong <[email protected]>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #
20 # pconsole Makefile.in WJ101
21 #
22
23 prefix = /home/walter/.local
24 exec_prefix = ${prefix}
25 bindir = ${exec_prefix}/bin
26
27 CC = gcc
28 CFLAGS = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer
29 LFLAGS =
30 LIBS =
31 INCLUDE = include
32
33 INSTALL = /usr/bin/install -c
34 INSTALL_PROGRAM = /usr/bin/install -c -m 0750
35 INSTALL_SCRIPT = /usr/bin/install -c -m 0750
36 INSTALL_DATA = /usr/bin/install -c -m 0640
37
38 .c.o:
39 $(CC) -I$(INCLUDE) -I. $(CFLAGS) -c $<
40
41 OBJS = List.o Conn.o cstring.o terminal.o commands.o pconsole.o
42
43 CFILES = $(OBJS:.o=.c)
44
45 TARGETS = pconsole
46
47 all: config.status config.log $(TARGETS)
48
49 include .depend
50
51 #
52 # Targets
53 #
54
55 config.status config.log:
56 @( \
57 echo "Not yet configured. Type './configure' to configure." ; \
58 echo \
59 ) ; \
60 exit 1
61
62 pconsole: $(OBJS)
63 $(CC) $(LFLAGS) $(OBJS) -o pconsole $(LIBS)
64
65
66 neat:
67 rm -f core *~
68
69 clean:
70 rm -f core *.o $(TARGETS) *~
71
72 mrproper: clean
73 rm -f .depend config.status config.cache config.log config.h pconsole.sh
74 touch .depend
75
76 depend dep .depend:
77 $(CC) -I$(INCLUDE) -I. -M $(CFILES) > .depend
78
79
80 install: all
81 @( \
82 echo "installing pconsole ..."; \
83 mkdir -p $(bindir) 2>/dev/null ; \
84 ${INSTALL} pconsole $(bindir) ; \
85 ${INSTALL_PROGRAM} pconsole.sh $(bindir) ; \
86 ${INSTALL_PROGRAM} ssh.sh $(bindir) ; \
87 echo ; \
88 echo "Note: You may want to make pconsole setuid root with the following commands:"; \
89 echo ; \
90 echo " sudo chown root $(bindir)/pconsole && sudo chmod 4110 $(bindir)/pconsole" ; \
91 echo \
92 )
93
94 uninstall:
95 rm -f $(bindir)/pconsole $(bindir)/pconsole.sh $(bindir)/ssh.sh ; \
96 rmdir $(bindir) 2>/dev/null
97
98 # EOB