File: Makefile

package info (click to toggle)
purity 1-17
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 148 kB
  • ctags: 83
  • sloc: ansic: 817; makefile: 52; sh: 17
file content (30 lines) | stat: -rw-r--r-- 770 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
29
30
# makefile for the purity test
#
# edit all appropriate paths, and then make
#
# make sure the definitions in pt.h are correct before making


# BINDIR: the directory where the binary will go.
BINDIR = /usr/games

#   LIBDIR: the directory where the test datafiles are kept
LIBDIR = /usr/share/games/purity

# options for the c compiler (-g, -O, etc.)
# Specify -DSYS for sysV, -DLINUX for linux, BSD is default
#CFLAGS = -O
CFLAGS = -O6 -s -DLINUX

# compiler libraries (-ltermcap, etc.)
LIBS =

purity: pt.c pt.h
	cc $(CFLAGS) -DLIBDIR=\"$(LIBDIR)\" -o purity pt.c $(LIBS)
clean:
	rm purity
install: purity
	mkdir -p ${DESTDIR}/usr/games
	install purity ${DESTDIR}/usr/games
	mkdir -p ${DESTDIR}/usr/share/games/purity
	cp -r tests/* ${DESTDIR}/usr/share/games/purity