diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-21 11:03:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:53 -0700 |
| commit | b71b05cdc93efe54ecea639d6cae4c991ed2c999 (patch) | |
| tree | a7d72468a8ba6dbefe1a6a5cb742f8f4e0fb9c37 /Makefile | |
| parent | b020fece6e9b85066d4a6c306e6d2208c61e22f1 (diff) | |
| download | sparse-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-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |
