aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
authorpj@ludd.ltu.se <pj@ludd.ltu.se>2004-09-25 10:44:04 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:21 -0700
commitfd59b219733d711b36ac70038fcb7496e4501920 (patch)
treecd0ba07d1907fdddfd535e9af582b33f2fe09274 /Makefile
parentf2a405d6a82ea2ddb07a83622ebb587fc980b4f0 (diff)
downloadsparse-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--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 16dd8a35..33bfc80f 100644
--- a/Makefile
+++ b/Makefile
@@ -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)