Skip to content

Commit 64630db

Browse files
committed
Make it easier to disable Electric Fence.
1 parent 22defe5 commit 64630db

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

MakeMakefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/sh
22

3+
if [ -e libefence.a ]
4+
then EFENCE=libefence.a
5+
else EFENCE=
6+
fi
7+
38
OBJS=$(
49
for i in *.c
510
do
@@ -29,11 +34,11 @@ echo "MYCFLAGS=-pedantic -Wall -Werror -std=c99"
2934
echo ".PHONY=clean debug"
3035
echo
3136
echo 'debug: MYCFLAGS += -g -DDEBUG'
32-
echo 'debug: LIBS += libefence.a -lpthread'
37+
echo 'debug: LIBS += '$EFENCE' -lpthread'
3338
echo 'debug: '$1
3439
echo
3540
echo 'debuglite: MYCFLAGS += -g -DDEBUGLITE'
36-
echo 'debuglite: LIBS += libefence.a -lpthread'
41+
echo 'debuglite: LIBS += '$EFENCE' -lpthread'
3742
echo 'debuglite: '$1
3843
echo
3944
echo 'gcov: MYCFLAGS += -fprofile-arcs -ftest-coverage'

0 commit comments

Comments
 (0)