File: Makefile

package info (click to toggle)
sl 3.03-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 128 kB
  • ctags: 272
  • sloc: ansic: 1,116; makefile: 59; sh: 1
file content (38 lines) | stat: -rw-r--r-- 832 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
#==========================================
#    Makefile: makefile for sl
#	Copyright 1993,1998 Toyoda Masashi 
#		(toyoda@is.titech.ac.jp)
#	Last Modified: 1998/ 7/22
#       Modify for Debian by Kenshi Muto <kmuto@debian.org>
#         1999/ 6/14
#==========================================

CC=cc
CFLAGS=-Wall -O # -DDEBUG
LDFLAGS= -lcurses # -ltermcap

PREFIX=$(DESTDIR)/usr
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/man
INSTALL=install

all: sl sl-h

sl: sl.c sl.h
	$(CC) $(CFLAGS) -o sl sl.c $(LDFLAGS)

sl-h: sl-h.c sl-h.h header.h
	$(CC) $(CFLAGS) -o sl-h sl-h.c $(LDFLAGS)

clean::
	rm -f sl sl-h

distclean:: clean

install::
	$(INSTALL) -m 755 sl $(BINDIR)/
	$(INSTALL) -m 755 sl-h $(BINDIR)/
	$(INSTALL) -m 644 sl.6 $(MANDIR)/man6/
	$(INSTALL) -m 644 sl-h.6 $(MANDIR)/man6/
	$(INSTALL) -m 644 sl.6j $(MANDIR)/ja/man6/sl.6