]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
This change was triggered by BZ #247974 which suggested to include
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 20 Nov 2014 15:08:56 +0000 (15:08 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 20 Nov 2014 15:08:56 +0000 (15:08 +0000)
VEX/test_main.* in the tarball. We don't want to do that because those
files are really just scaffolding for developers to play with and not
meant for general consumption (and are also bitrotting ATM). Therefore,
this patch moves them to the "useful" subdirectory and adds a crude
Makefile there to build the executable.
Makefile-gcc updated accordingly.

git-svn-id: svn://svn.valgrind.org/vex/trunk@2998

VEX/Makefile-gcc
VEX/useful/Makefile-vex [new file with mode: 0644]
VEX/useful/test_main.c [moved from VEX/test_main.c with 100% similarity]
VEX/useful/test_main.h [moved from VEX/test_main.h with 100% similarity]
VEX/useful/test_main.h.base [moved from VEX/test_main.h.base with 100% similarity]

index 12bf1ed1658b83d44978d673cd7a772010d6e450..c29d1520a19988fbe86ab882d78623fa0fa926c6 100644 (file)
@@ -131,8 +131,7 @@ install:
 
 scratch: clean all
 
-vex: libvex.a test_main.o
-       $(CC) $(CCFLAGS) -o vex test_main.o libvex.a
+vex: libvex.a
 
 libvex.a: $(LIB_OBJS)
        rm -f libvex.a
@@ -206,15 +205,14 @@ TAG-arm64-linux:
 
 
 clean:
-       rm -f $(LIB_OBJS) *.a vex test_main.o TAG-* \
+       rm -f $(LIB_OBJS) *.a TAG-* \
                pub/libvex_guest_offsets.h \
                auxprogs/genoffsets.s
 
 minidist:
        rm -f vex--minidist-2005MMDD.tar
        tar cf vex--minidist-2005MMDD.tar $(PUB_HEADERS) $(PRIV_HEADERS) \
-               test_main.c test_main.h                         \
-               Makefile                                        \
+               Makefile-gcc                                    \
                `echo $(LIB_OBJS) | sed "s/\.o/\.c/g"`
        @echo 
        @echo minidist done, size follows:
@@ -241,10 +239,6 @@ pub/libvex_guest_offsets.h:
 ALL_HEADERS  = $(PUB_HEADERS) $(PRIV_HEADERS)
 ALL_INCLUDES = $(PUB_INCLUDES) $(PRIV_INCLUDES)
 
-test_main.o: $(PUB_HEADERS) test_main.c test_main.h
-       $(CC) $(CCFLAGS) $(PUB_INCLUDES) -o test_main.o \
-                                        -c test_main.c
-
 priv/ir_defs.o: $(ALL_HEADERS) priv/ir_defs.c
        $(CC) $(CCFLAGS) $(ALL_INCLUDES) -o priv/ir_defs.o \
                                         -c priv/ir_defs.c
diff --git a/VEX/useful/Makefile-vex b/VEX/useful/Makefile-vex
new file mode 100644 (file)
index 0000000..eb0b461
--- /dev/null
@@ -0,0 +1,8 @@
+# Crude makefile to build the "vex" executable from test_main.c
+
+vex:
+       (cd ..; make -f Makefile-gcc)
+       cc -I../pub -o vex test_main.c ../libvex.a
+
+clean:
+       rm -f vex
similarity index 100%
rename from VEX/test_main.c
rename to VEX/useful/test_main.c
similarity index 100%
rename from VEX/test_main.h
rename to VEX/useful/test_main.h