File: makefile.unx

package info (click to toggle)
cal 3.5-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 284 kB
  • ctags: 120
  • sloc: ansic: 1,116; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 623 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
# From: cbagwell@rockdal.aud.alcatel.com (Chris Bagwell)

# Makefile for "cal" 
#
# only tested with GNU gcc 

# To use, enter "make -f makefile.unx"

RM=rm -f
CC=gcc
CFLAGS=-O -Wall -DUNIX -DUSE_REMINDER  -g
# Uncomment this if you want 'cal' to use the locale
CFLAGS+=-DUSE_LOCALE 
# Uncomment this if you have /usr/include/langinfo.h
CFLAGS+=-DUSE_LANGINFO

BINDIR=/usr/bin
MANDIR=/usr/man

default: cal

cal     : cal.c
	$(CC) $(CFLAGS) -o cal cal.c

cal.man	: cal.1
	nroff -man cal.1 | col > cal.man

install: cal 
	install -c -m 755 cal $(BINDIR)/cal
	install -c -m 644 cal.1 $(MANDIR)/man1/cal.1

clean:
	$(RM) cal