- Fix default compiler better
- Add dummy install target to help V's build system
- Don't hardwire 'ar' (fix for #112199).
git-svn-id: svn://svn.valgrind.org/vex/trunk@1397
PRIV_INCLUDES = -Ipriv
-ifeq ($(CC),)
+ifndef $(CC)
CC = gcc
endif
+ifndef $(AR)
+ AR = ar
+endif
+
CCFLAGS = -g -O -Wall -Wmissing-prototypes -Wshadow -Winline \
-Wpointer-arith -Wbad-function-cast -Wcast-qual \
-Wcast-align -Wmissing-declarations \
all: vex
+# Empty, needed for Valgrind
+install:
+
scratch: clean version all
vex: libvex.a test_main.o
libvex.a: $(LIB_OBJS)
rm -f libvex.a
- ar clq libvex.a $(LIB_OBJS)
+ $(AR) clq libvex.a $(LIB_OBJS)
# This doesn't get rid of priv/main/vex_svnversion.h, because
# that can't be regenerated in the final Valgrind tarball, and