~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ElectricFence/Makefile-

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ASFLAGS= -mips2
 
2
CC= cc
 
3
AR= ar
 
4
INSTALL= install
 
5
MV= mv
 
6
CHMOD= chmod
 
7
CFLAGS= -g
 
8
LIB_INSTALL_DIR= /usr/lib
 
9
MAN_INSTALL_DIR= /usr/man/man3
 
10
 
 
11
PACKAGE_SOURCE= README libefence.3 Makefile efence.h \
 
12
        efence.c page.c print.c eftest.c tstheap.c CHANGES
 
13
 
 
14
# Un-comment the following if you are running HP/UX.
 
15
# CFLAGS= -Aa -g -D_HPUX_SOURCE -DPAGE_PROTECTION_VIOLATED_SIGNAL=SIGBUS
 
16
 
 
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
 
21
 
 
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
 
28
 
 
29
OBJECTS= efence.o page.o print.o
 
30
 
 
31
all:    libefence.a tstheap eftest
 
32
        @ echo
 
33
        @ echo "Testing Electric Fence."
 
34
        @ echo "After the last test, it should print that the test has PASSED."
 
35
        ./eftest
 
36
        ./tstheap 3072
 
37
        @ echo
 
38
        @ echo "Electric Fence confidence test PASSED." 
 
39
        @ echo
 
40
 
 
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
 
46
 
 
47
clean:
 
48
        - rm -f $(OBJECTS) tstheap.o eftest.o tstheap eftest libefence.a \
 
49
         libefence.cat ElectricFence.shar
 
50
 
 
51
roff:
 
52
        nroff -man < libefence.3 > libefence.cat
 
53
 
 
54
 
 
55
ElectricFence.shar: $(PACKAGE_SOURCE)
 
56
        shar $(PACKAGE_SOURCE) > ElectricFence.shar
 
57
 
 
58
shar: ElectricFence.shar
 
59
 
 
60
libefence.a: $(OBJECTS)
 
61
        - rm -f libefence.a
 
62
        $(AR) crv libefence.a $(OBJECTS)
 
63
 
 
64
tstheap: libefence.a tstheap.o
 
65
        - rm -f tstheap
 
66
        $(CC) $(CFLAGS) tstheap.o libefence.a -o tstheap
 
67
 
 
68
eftest: libefence.a eftest.o
 
69
        - rm -f eftest
 
70
        $(CC) $(CFLAGS) eftest.o libefence.a -o eftest
 
71
 
 
72
$(OBJECTS) tstheap.o eftest.o: efence.h