File: Makefile.Debian

package info (click to toggle)
unixcw 1.1a-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 252 kB
  • ctags: 301
  • sloc: ansic: 2,491; makefile: 120; sh: 16
file content (28 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (2)
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
CC	= gcc

# information for the installation
BINDIR	= $(DESTDIR)/usr/bin

all:	bins

# build the tutor binaries
bins:	cw cwgen cwcp

cw:	cw.h cw.c
	$(CC) $(CFLAGS) -o cw cw.c

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

cwcp:	cw.h cwcp.c
	$(CC) $(CFLAGS) -I/usr/include/ncurses -o cwcp cwcp.c -lncurses

# install the binaries
install: bins
	install -s -o root -g root -m 4755 cw $(BINDIR)/unixcw
	install -s -o root -g root cwgen $(BINDIR)
	install -s -o root -g root cwcp $(BINDIR)

# clear up for a rebuild
clean:
	-rm -f *.o cw cwgen cwcp