|
From: <sv...@va...> - 2005-09-15 16:01:04
|
Author: sewardj
Date: 2005-09-15 17:00:58 +0100 (Thu, 15 Sep 2005)
New Revision: 1397
Log:
Makefile fixes:
- Fix default compiler better
- Add dummy install target to help V's build system
- Don't hardwire 'ar' (fix for #112199).
Modified:
trunk/Makefile
Modified: trunk/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/Makefile 2005-09-15 14:22:58 UTC (rev 1396)
+++ trunk/Makefile 2005-09-15 16:00:58 UTC (rev 1397)
@@ -63,9 +63,13 @@
PRIV_INCLUDES =3D -Ipriv
=20
=20
-ifeq ($(CC),)=20
+ifndef $(CC)
CC =3D gcc=20
endif=20
+ifndef $(AR)
+ AR =3D ar=20
+endif
+
CCFLAGS =3D -g -O -Wall -Wmissing-prototypes -Wshadow -Winline \
-Wpointer-arith -Wbad-function-cast -Wcast-qual \
-Wcast-align -Wmissing-declarations \
@@ -85,6 +89,9 @@
=20
all: vex
=20
+# Empty, needed for Valgrind
+install:
+
scratch: clean version all
=20
vex: libvex.a test_main.o
@@ -92,7 +99,7 @@
=20
libvex.a: $(LIB_OBJS)
rm -f libvex.a
- ar clq libvex.a $(LIB_OBJS)
+ $(AR) clq libvex.a $(LIB_OBJS)
=20
# This doesn't get rid of priv/main/vex_svnversion.h, because
# that can't be regenerated in the final Valgrind tarball, and
|