File: Makefile

package info (click to toggle)
blinkd 0.1-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 128 kB
  • ctags: 50
  • sloc: ansic: 616; sh: 68; makefile: 66; tcl: 62
file content (50 lines) | stat: -rw-r--r-- 1,562 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
49
50
# Makefile for blinkd and blink
# (C) 1998 W. Borgert debacle@debian.org

# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Id: Makefile,v 1.5 1998/10/16 21:34:55 debacle Exp $

CC       = gcc
CFLAGS   = -g -O3 -Wall -ansi -pedantic
CPPFLAGS = -D_GNU_SOURCE -DSERV_TCP_PORT=20013
ifndef prefix
prefix  = /
endif # prefix

all:    blinkd blink

blinkd: blinkd.o

blink:  blink.o

install: blinkd blink
	cp    blink     $(prefix)/bin/blink
	chgrp users     $(prefix)/bin/blink
	chmod u+x       $(prefix)/bin/blink
	cp    blinkd    $(prefix)/sbin/blinkd
	chgrp users     $(prefix)/sbin/blinkd
	chmod u+x       $(prefix)/sbin/blinkd
	cp    blinkd.1  $(prefix)/man/man1/blinkd.1
	chgrp users     $(prefix)/man/man1/blinkd.1
	chmod og+r      $(prefix)/man/man1/blinkd.1
	gzip            $(prefix)/man/man1/blinkd.1
	cd $(prefix)/man/man1; ln -sf blinkd.1.gz blink.1.gz
	sync
	sync

clean:
	rm -f blink blinkd blink.o blinkd.o