aboutsummaryrefslogtreecommitdiff
path: root/Makefile.deps
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-09-12 12:10:47 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-09-12 12:10:47 +0200
commit85c7ff11bdaf7f6a5d230744f71c5b9b7bc9bf6f (patch)
treeb915b402fb5f20ab114d9286f98be31a4987254b /Makefile.deps
parent6e8f68f653a832491d9bf05f06bfab81aea0a9cb (diff)
Added ThreadArgs, Event, WorkItem.
* added/modified WorkQueue example * enable additional EASTL features in user space Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile.deps')
-rw-r--r--Makefile.deps17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile.deps b/Makefile.deps
index 0010a52..cfe3393 100644
--- a/Makefile.deps
+++ b/Makefile.deps
@@ -20,10 +20,8 @@ EASTL_DEPS := $(wildcard $(DPP_ROOT)/EASTL/source/*.cpp) $(wildcard $(DPP_ROOT)/
all: deps
-$(LIBCRT_BUILD_DIR):
- $(Q)mkdir -p '$(LIBCRT_BUILD_DIR)'
-
-$(LIBCRT_STATIC_LIB): $(LIBCRT_BUILD_DIR) $(LIBCRT_OBJECTS)
+$(LIBCRT_STATIC_LIB): $(LIBCRT_OBJECTS)
+ $(Q)test -d '$(LIBCRT_BUILD_DIR)' || mkdir -p '$(LIBCRT_BUILD_DIR)'
ifneq ($(Q),@)
$(Q)$(AR) -rsv '$@' $(LIBCRT_OBJECTS)
else
@@ -31,7 +29,8 @@ else
endif
@echo 'AR $@'
-$(LIBCXXRT_STATIC_LIB): $(LIBCRT_BUILD_DIR) $(LIBCXXRT_OBJECTS)
+$(LIBCXXRT_STATIC_LIB): $(LIBCXXRT_OBJECTS)
+ $(Q)test -d '$(LIBCRT_BUILD_DIR)' || mkdir -p '$(LIBCRT_BUILD_DIR)'
ifneq ($(Q),@)
$(Q)$(AR) -rsv '$@' $(LIBCXXRT_OBJECTS)
else
@@ -39,7 +38,8 @@ else
endif
@echo 'AR $@'
-$(LIBUSERCRT_STATIC_LIB): $(LIBCRT_BUILD_DIR) $(LIBUSERCRT_OBJECTS)
+$(LIBUSERCRT_STATIC_LIB): $(LIBUSERCRT_OBJECTS)
+ $(Q)test -d '$(LIBCRT_BUILD_DIR)' || mkdir -p '$(LIBCRT_BUILD_DIR)'
ifneq ($(Q),@)
$(Q)$(AR) -rsv '$@' $(LIBUSERCRT_OBJECTS)
else
@@ -137,7 +137,7 @@ deps-build: \
deps: deps-print-local-notice deps-build
$(EASTL_STATIC_LIB): $(CXX) $(EASTL_DEPS)
- mkdir -p $(EASTL_BUILDDIR)
+ $(Q)test -d '$(EASTL_BUILDDIR)' || mkdir -p $(EASTL_BUILDDIR)
cd $(EASTL_BUILDDIR) && \
$(CMAKE) ../EASTL \
-DCMAKE_CXX_COMPILER="$(realpath $(CXX))" \
@@ -185,11 +185,10 @@ deps-build: \
deps: deps-build
$(EASTL_STATIC_LIB): $(CXX) $(EASTL_DEPS)
- mkdir -p $(EASTL_BUILDDIR)
+ $(Q)test -d '$(EASTL_BUILDDIR)' || mkdir -p $(EASTL_BUILDDIR)
cd $(EASTL_BUILDDIR) && \
$(CMAKE) ../EASTL \
-DCMAKE_CXX_COMPILER="$(realpath $(CXX))" \
- -DCMAKE_SYSTEM_NAME="Linux" \
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-DCMAKE_CXX_FLAGS='$(CFLAGS) $(CXXFLAGS) $(EASTL_CXXFLAGS)' && \
$(MAKE) $(CMAKE_Q)