File: Makefile

package info (click to toggle)
purity 1-7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 140 kB
  • ctags: 87
  • sloc: ansic: 820; makefile: 45; sh: 5
file content (30 lines) | stat: -rw-r--r-- 764 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/lib/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/lib/games/purity
	cp -r tests/* ${DESTDIR}/usr/lib/games/purity