mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
xray: integrate into build system
This commit is contained in:
parent
0e5a1ca5f9
commit
672a4e8d88
3 changed files with 31 additions and 0 deletions
|
@ -63,6 +63,7 @@ pte:
|
|||
|
||||
libs:
|
||||
@echo Build OpenMP Runtime and iRCCE
|
||||
$Q$(MAKE) TARGET=$(TARGET) CC_FOR_TARGET=$(CC_FOR_TARGET) CFLAGS_FOR_TARGET="$(CFLAGS_FOR_TARGET)" LDFLAGS_FOR_TARGET="$(LDFLAGS_FOR_TARGET)" -C xray
|
||||
$Q$(MAKE) TARGET=$(TARGET) CXX_FOR_TARGET=$(CXX_FOR_TARGET) CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" CC_FOR_TARGET=$(CC_FOR_TARGET) AR_FOR_TARGET=$(AR_FOR_TARGET) CFLAGS_FOR_TARGET+="-I. -Wall -pthread" -C $(OMPRT) depend
|
||||
$Q$(MAKE) TARGET=$(TARGET) CXX_FOR_TARGET=$(CXX_FOR_TARGET) CXXFLAGS_FOR_TARGET="$(CXXFLAGS_FOR_TARGET)" CC_FOR_TARGET=$(CC_FOR_TARGET) AR_FOR_TARGET=$(AR_FOR_TARGET) CFLAGS_FOR_TARGET+="-I. -Wall -pthread" -C $(OMPRT)
|
||||
$Q$(MAKE) TARGET=$(TARGET) CC_FOR_TARGET=$(CC_FOR_TARGET) AR_FOR_TARGET=$(AR_FOR_TARGET) CFLAGS_FOR_TARGET+="-I. -Wall" -C ircce depend
|
||||
|
@ -93,6 +94,7 @@ clean:
|
|||
$Q$(MAKE) -C tests clean
|
||||
$Q$(MAKE) -C benchmarks clean
|
||||
$Q$(MAKE) -C openmpbench clean
|
||||
$Q$(MAKE) -C xray clean
|
||||
|
||||
veryclean:
|
||||
@echo Propper cleaning of the toolchain
|
||||
|
|
26
hermit/usr/xray/Makefile
Normal file
26
hermit/usr/xray/Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
NEWLIB = ../x86/x86_64-hermit
|
||||
CP = cp
|
||||
NAME = libxray.a
|
||||
|
||||
CC_FOR_TARGET ?= gcc
|
||||
AR_FOR_TARGET ?= ar
|
||||
|
||||
CFLAGS = -DXRAY -DXRAY_DISABLE_BROWSER_INTEGRATION -DXRAY_NO_DEMANGLE -DXRAY_ANNOTATE
|
||||
|
||||
CFLAGS += ${CFLAGS_FOR_TARGET}
|
||||
|
||||
OBJS = xray.o stringpool.o hashtable.o symtable.o demangle.o parsesymbols.o report.o
|
||||
|
||||
|
||||
$(NAME): $(OBJS)
|
||||
$(AR_FOR_TARGET) rsv $@ $(OBJS)
|
||||
$(CP) $@ $(NEWLIB)/lib
|
||||
$(CP) libxray.spec $(NEWLIB)/lib
|
||||
$(CP) xray.h $(NEWLIB)/include
|
||||
|
||||
%.o: %.c
|
||||
@echo [CC] $@
|
||||
@$(CC_FOR_TARGET) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.o $(NAME)
|
3
hermit/usr/xray/libxray.spec
Normal file
3
hermit/usr/xray/libxray.spec
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Do we really need this? Does this even what we want?
|
||||
*link_xray: -lxray
|
||||
|
Loading…
Add table
Reference in a new issue