aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-06-21 11:03:05 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:53 -0700
commitb71b05cdc93efe54ecea639d6cae4c991ed2c999 (patch)
treea7d72468a8ba6dbefe1a6a5cb742f8f4e0fb9c37 /Makefile
parentb020fece6e9b85066d4a6c306e6d2208c61e22f1 (diff)
downloadsparse-dev-b71b05cdc93efe54ecea639d6cae4c991ed2c999.tar.gz
Make it easier to add extra libraries (eg add a "-lefence" thing for
allocation checking etc).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4be9240c..0444e8a9 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ LIB_OBJS= parse.o tokenize.o pre-process.o symbol.o lib.o scope.o \
expression.o show-parse.o evaluate.o inline.o
LIB_FILE= sparse.a
+LIBS=$(LIB_FILE)
all: $(PROGRAMS)
@@ -23,16 +24,16 @@ install: check
install -C check $(PREFIX)/bin/sparse
test-lexing: test-lexing.o $(LIB_FILE)
- gcc -o $@ $< $(LIB_FILE)
+ gcc -o $@ $< $(LIBS)
test-parsing: test-parsing.o $(LIB_FILE)
- gcc -o $@ $< $(LIB_FILE)
+ gcc -o $@ $< $(LIBS)
obfuscate: obfuscate.o $(LIB_FILE)
- gcc -o $@ $< $(LIB_FILE)
+ gcc -o $@ $< $(LIBS)
check: check.o $(LIB_FILE)
- gcc -o $@ $< $(LIB_FILE)
+ gcc -o $@ $< $(LIBS)
$(LIB_FILE): $(LIB_OBJS)
$(AR) rcs $(LIB_FILE) $(LIB_OBJS)