mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
This change was triggered by BZ #247974 which suggested to include
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
This commit is contained in:
parent
5a74c2d874
commit
721ac5231f
@ -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
|
||||
|
||||
8
VEX/useful/Makefile-vex
Normal file
8
VEX/useful/Makefile-vex
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user