changeset 3390:d31a4f29aed1

CC version check done by Makefile to allow overriding CC from envvar
author arpi
date Sun, 09 Dec 2001 01:24:01 +0000
parents 02f11cf93a27
children 52232859b567
files Makefile version.sh
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Dec 08 20:16:21 2001 +0000
+++ b/Makefile	Sun Dec 09 01:24:01 2001 +0000
@@ -218,7 +218,7 @@
 dep:	depend
 
 depend:
-	./version.sh
+	./version.sh `$(CC) --version`
 	$(CC) -MM $(CFLAGS) mplayer.c mencoder.c $(SRCS_MPLAYER) $(SRCS_MENCODER) 1>.depend
 	@for a in $(PARTS); do $(MAKE) -C $$a dep; done
 
@@ -233,7 +233,7 @@
 
 # rebuild at every config.h/config.mak change:
 version.h: config.h config.mak Makefile
-	./version.sh
+	./version.sh `$(CC) --version`
 ifeq ($(wildcard .developer),)
 	$(MAKE) distclean
 endif
--- a/version.sh	Sat Dec 08 20:16:21 2001 +0000
+++ b/version.sh	Sun Dec 09 01:24:01 2001 +0000
@@ -5,7 +5,5 @@
 	# probably no gnu date installed(?), use current date
 	last_cvs_update=`date +%y%m%d-%H:%M`
 fi
-cc=`cat config.mak |grep CC | cut -d '=' -f 2`
-cc_version=`${cc} --version`
 
-echo "#define VERSION \"CVS-${last_cvs_update}${cc}-${cc_version} \"" >version.h
+echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h