Mercurial > cospy
changeset 1:4ebd1d0373ee
Change gcc at command line.
- make GCC=/path/to/your/gcc
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 07 Sep 2010 09:58:14 +0800 |
parents | bb756f67f264 |
children | b559bb89912d |
files | src/Makefile |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Makefile Tue Sep 07 09:49:12 2010 +0800 +++ b/src/Makefile Tue Sep 07 09:58:14 2010 +0800 @@ -1,4 +1,4 @@ -GCC=/home/thinker/progm/gcc-4.5.1/dist/bin/gcc +GCC?=gcc PLUGIN_SOURCE_FILES= testplugin.c PLUGIN_OBJECT_FILES= $(patsubst %.c,%.o,$(PLUGIN_SOURCE_FILES)) GCCPLUGINS_DIR:= $(shell $(GCC) -print-file-name=plugin) @@ -11,3 +11,11 @@ test: $(GCC) -fplugin=`pwd`/testplugin.so $(CFLAGS) -c test.c + +clean: + for i in *~ *.o *.so; do \ + if [ -e $$i ]; then \ + echo "delete $$i"; \ + rm -f $$i; \ + fi; \ + done \ No newline at end of file