File: Makefile

package info (click to toggle)
swish-e 1.1-1
  • links: PTS
  • area: main
  • in suites: hamm, potato, slink
  • size: 380 kB
  • ctags: 340
  • sloc: ansic: 4,540; makefile: 77; sh: 12
file content (54 lines) | stat: -rwxr-xr-x 908 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Makefile for SWISH
# Kevin Hughes, 3/12/95
#
# The code has been tested to compile on 
# Solaris and DEC  G.Hill ghill@library.berkeley.edu 6/11/97
#

#CC= cc
#CC= /usr/ccs/bin/ucbcc
#CC = /vol/moby/moby_a/gnu/sun4_sunos5.1/bin/gcc
CC = gcc

CFLAGS= -O2

LIBS=	-lm

OBJS=	check.o file.o index.o search.o error.o \
	hash.o list.o mem.o string.o merge.o swish.o

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

all:	swish-e

swish-e:	$(OBJS)
	$(CC) -o swish-e $(CFLAGS) $(OBJS) $(LIBS)
	chmod 755 swish-e
	strip swish-e

quant:
	make CFLAGS="-g" $(OBJS)
	make quant-link

quant-link:
	quantify $(CC) -o swish-e -g $(CFLAGS) $(OBJS) $(LIBS)

pure:
	make clean
	make CFLAGS="-g" $(OBJS)
	make pure-link

clean:
	rm -f ./swish-e ./*.o ./index.swish

pure-link:
	$(CC) -o swish-e -g $(CFLAGS) $(OBJS) $(LIBS)

test:
	./swish-e -i test.html -v -f index.swish
	./swish-e -f index.swish -w test

$(OBJS):	Makefile config.h swish.h