diff options
| author | pj@ludd.ltu.se <pj@ludd.ltu.se> | 2004-09-25 10:44:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:21 -0700 |
| commit | fd59b219733d711b36ac70038fcb7496e4501920 (patch) | |
| tree | cd0ba07d1907fdddfd535e9af582b33f2fe09274 /Makefile | |
| parent | f2a405d6a82ea2ddb07a83622ebb587fc980b4f0 (diff) | |
| download | sparse-dev-fd59b219733d711b36ac70038fcb7496e4501920.tar.gz | |
[PATCH] Use $(CC) everywhere in Makefile.
This changes the sparse Makefile to use $(CC) (which is already defined
at the top) instead of using gcc directly. That makes it possible to
use "make CC=/long/path/bin/gcc".
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -27,22 +27,22 @@ install: check if test $< -nt $(PREFIX)/bin/sparse ; then install -v $< $(PREFIX)/bin/sparse ; fi test-lexing: test-lexing.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) test-parsing: test-parsing.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) test-linearize: test-linearize.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) compile: compile.o compile-i386.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< compile-i386.o $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< compile-i386.o $(LIBS) obfuscate: obfuscate.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) check: check.o $(LIB_FILE) - gcc $(LDFLAGS) -o $@ $< $(LIBS) + $(CC) $(LDFLAGS) -o $@ $< $(LIBS) $(LIB_FILE): $(LIB_OBJS) $(AR) rcs $(LIB_FILE) $(LIB_OBJS) |
