8
LIB_INSTALL_DIR= /usr/lib
9
MAN_INSTALL_DIR= /usr/man/man3
11
PACKAGE_SOURCE= README libefence.3 Makefile efence.h \
12
efence.c page.c print.c eftest.c tstheap.c CHANGES
14
# Un-comment the following if you are running HP/UX.
15
# CFLAGS= -Aa -g -D_HPUX_SOURCE -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
17
# Un-comment the following if you are running AIX. This makes sure you won't
18
# get the shared-library malloc() rather than the Electric Fence malloc().
19
# COMPILE THE PROGRAMS YOU ARE DEBUGGING WITH THESE FLAGS, TOO.
20
# CFLAGS= -g -bnso -bnodelcsect -bI:/lib/syscalls.exp
22
# Un-comment the following if you are running SunOS 4.X
23
# Note the definition of PAGE_PROTECTION_VIOLATED_SIGNAL. This may vary
24
# depend on what version of Sun hardware you have.
25
# You'll probably have to link the program you are debugging with -Bstatic
26
# as well if using Sun's compiler, -static if using GCC.
27
# CFLAGS= -g -Bstatic -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
29
OBJECTS= efence.o page.o print.o
31
all: libefence.a tstheap eftest
33
@ echo "Testing Electric Fence."
34
@ echo "After the last test, it should print that the test has PASSED."
38
@ echo "Electric Fence confidence test PASSED."
41
install: libefence.a libefence.3
42
$(MV) libefence.a $(LIB_INSTALL_DIR)
43
$(CHMOD) 644 $(LIB_INSTALL_DIR)/libefence.a
44
$(INSTALL) libefence.3 $(MAN_INSTALL_DIR)/libefence.3
45
$(CHMOD) 644 $(MAN_INSTALL_DIR)/libefence.3
48
- rm -f $(OBJECTS) tstheap.o eftest.o tstheap eftest libefence.a \
49
libefence.cat ElectricFence.shar
52
nroff -man < libefence.3 > libefence.cat
55
ElectricFence.shar: $(PACKAGE_SOURCE)
56
shar $(PACKAGE_SOURCE) > ElectricFence.shar
58
shar: ElectricFence.shar
60
libefence.a: $(OBJECTS)
62
$(AR) crv libefence.a $(OBJECTS)
64
tstheap: libefence.a tstheap.o
66
$(CC) $(CFLAGS) tstheap.o libefence.a -o tstheap
68
eftest: libefence.a eftest.o
70
$(CC) $(CFLAGS) eftest.o libefence.a -o eftest
72
$(OBJECTS) tstheap.o eftest.o: efence.h