[go: up one dir, main page]

File: Makefile.solaris9

package info (click to toggle)
autossh 1.3-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 176 kB
  • ctags: 91
  • sloc: ansic: 1,175; makefile: 48; sh: 20
file content (48 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download
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
#
# Adjust SSH below to suit.
#
# $Id: Makefile.src,v 1.18 2005/03/23 02:05:12 harding Exp $
#

VER=1.3

SSH=		/usr/bin/ssh
PREFIX?=	/usr/local

CC=		gcc
CFLAGS=		-Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes \
		-D"SSH_PATH=\"$(SSH)\""\
		-D"VER=\"$(VER)\""
OFILES=		autossh.o
LIBS=		-lnsl -lsocket -lresolv

TARGET=		autossh

all:		$(TARGET)


$(TARGET):	$(OFILES)
		$(CC) -o $(TARGET) $(OFILES) $(LIBS)

clean:
		- /bin/rm -f *.o *.a *.core *~

allclean:	clean
		- /bin/rm -f $(TARGET)

install:	$(TARGET)
		mkdir -p -m 755 ${PREFIX}/bin
		mkdir -p -m 755 ${PREFIX}/share/doc/autossh
		mkdir -p -m 755 ${PREFIX}/share/examples/autossh
		mkdir -p -m 755 ${PREFIX}/man/man1
		cp $(TARGET) ${PREFIX}/bin
		cp CHANGES README ${PREFIX}/share/doc/autossh
		cp autossh.host ${PREFIX}/share/examples/autossh
		cp rscreen ${PREFIX}/share/examples/autossh
		cp autossh.1 ${PREFIX}/man/man1
		chmod 755 ${PREFIX}/bin/$(TARGET)
		chmod 644 ${PREFIX}/share/doc/autossh/CHANGES
		chmod 644 ${PREFIX}/share/doc/autossh/README
		chmod 644 ${PREFIX}/share/examples/autossh/autossh.host 
		chmod 644 ${PREFIX}/share/examples/autossh/rscreen
		chmod 644 ${PREFIX}/man/man1/autossh.1