File: Makefile.in

package info (click to toggle)
glimpse 4.1-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,344 kB
  • ctags: 2,254
  • sloc: ansic: 32,194; makefile: 561; sh: 170; perl: 142
file content (79 lines) | stat: -rw-r--r-- 2,252 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#/* Copyright (c) 1994 Burra Gopal, Udi Manber.  All Rights Reserved. */
# Makefile for the compress library -- agrep should be linked with it in case
# it wants to search for patterns in a compressed file.

# YOU DON'T HAVE TO CHANGE ANYTHING BELOW THIS LINE

srcdir = @srcdir@
VPATH  = @srcdir@
SHELL  = /bin/sh
CC     = @CC@
RANLIB = @RANLIB@
INSTALL		= @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA	= @INSTALL_DATA@
DEFS		= @DEFS@

prefix = @prefix@
#exec_prefix = $(prefix): suggestion From: Emil Sit <sit@MIT.EDU>, Date: Sat, 08 Jun 1996 15:45:01 EDT
exec_prefix = @exec_prefix@
binprefix =
manprefix =

bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
mandir = $(prefix)/man/man1
manext = 1

INDEX = ../index
INDEXSRC = $(srcdir)/$(INDEX)
AGREP = ../agrep
AGREPSRC = $(srcdir)/$(AGREP)
TEMPLATE = ../libtemplate
TEMPLATESRC = $(srcdir)/$(TEMPLATE)

all: lib tbuild cast uncast test

CFLAGS = @CFLAGS@ -O
ALL_CFLAGS    = $(CFLAGS) $(DEFS) -I$(INDEXSRC) -I$(AGREPSRC) -I$(TEMPLATESRC)/include

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

LIBOBJ = hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
LIB = libcast.a
LINKFLAGS	= @LINKFLAGS@ -I$(INDEXSRC) -I$(AGREPSRC) -I$(TEMPLATESRC)/include

lib: $(LIBOBJ)
	$(AR) rcv $(LIB) $(LIBOBJ)
	$(RANLIB) $(LIB)

test: hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
	 $(CC) -o test hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o

tbuild: hash.o string.o misc.o tbuild.o main_tbuild.o defs.h
	 $(CC) -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o

cast: main_cast.o $(LIB)
	 $(CC) -o cast main_cast.o $(LIBOBJ)

uncast: main_uncast.o $(LIB)
	$(CC) -o uncast main_uncast.o $(LIBOBJ)

hash.o: defs.h $(INDEXSRC)/glimpse.h
string.o: defs.h $(INDEXSRC)/glimpse.h
misc.o: defs.h $(INDEXSRC)/glimpse.h
quick.o: defs.h $(INDEXSRC)/glimpse.h
cast.o: defs.h $(INDEXSRC)/glimpse.h
uncast.o: defs.h $(INDEXSRC)/glimpse.h
main_cast.o: defs.h $(INDEXSRC)/glimpse.h
main_uncast.o: defs.h $(INDEXSRC)/glimpse.h
tsimpletest.o: defs.h $(INDEXSRC)/glimpse.h
tmemlook.o: defs.h $(INDEXSRC)/glimpse.h
test.o : test.c

clean:
	rm -f *.o $(LIB) core test cast uncast tbuild a.out

distclean: clean
	-rm -f Makefile