File: Makefile

package info (click to toggle)
contest 0.61-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 228 kB
  • ctags: 217
  • sloc: ansic: 2,121; makefile: 98; sh: 3
file content (36 lines) | stat: -rw-r--r-- 802 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
31
32
33
34
35
36
INSTPATH=/usr
BIN=$(INSTPATH)/bin
MAN=$(INSTPATH)/man
CC=gcc
CFLAGS= -W -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations \
	-g -O2

ifeq ($(shell uname),FreeBSD)
KVM=-lkvm
endif

objs=main.o bmark.o trivial.o sysinfo.o ctar_load.o xtar_load.o \
     read_load.o mem_load.o io_load.o dbench_load.o process_load.o \
     list_load.o

contest: $(objs)
	$(CC) $(CFLAGS) -o $@ $(objs) $(KVM)
contest.1.gz: contest.1
	gzip -c9 contest.1 > contest.1.gz
install: contest contest.1.gz
	install -m 755 contest $(BIN)/contest
	install -m 644 contest.1.gz $(MAN)/man1/contest.1.gz
deinstall:
	rm -f $(BIN)/contest
	rm -f $(MAN)/man1/contest.1.gz
uninstall: deinstall
clean:
	rm -f *.o
	rm -f contest
	rm -f contest.1.gz
distclean: clean
	rm -f *~
	rm -f *.orig
	rm -f *.log
	rm -f tmp
	rm -f dump