@@ -48,36 +48,34 @@ packagingFlags = $(ENV_VARS) --excludes "$(packagingExcludes)"
4848compileFlags += -I $(vendorDir ) /glfw/include -I $(vendorDir ) /glm -I $(vendorDir ) /freetype/include
4949linkFlags += -l render -l window -l resources -l utils
5050
51- .PHONY : all vulkan-libs pack-assets
51+ .PHONY : all pack-assets
5252
53- all : $(exampleTilemapApp ) vulkan-libs pack-assets
53+ all : $(exampleTilemapApp ) pack-assets
5454
5555# Link the object files and create an executable
5656$(exampleTilemapApp ) : $(renderLib ) $(exampleTilemapObjects )
57- $(MKDIR ) $(call platformpth, $(@D ) )
57+ $(call MKDIR, $(call platformpth,$(@D ) ) )
5858 $(CXX ) $(exampleTilemapObjects ) -o $(exampleTilemapApp ) $(linkFlags )
5959
6060# Add all rules from dependency files
6161-include $(exampleTilemapDepends )
6262
6363# Compile object files to the bin directory
6464$(exampleTilemapBinDir ) /% .o : $(exampleTilemapSrcDir ) /% .cpp
65- $(MKDIR ) $(call platformpth, $(@D ) )
65+ $(call MKDIR, $(call platformpth,$(@D ) ) )
6666 $(CXX ) -MMD -MP -c $(compileFlags ) -I $(engineDir ) $< -o $@ $(CXXFLAGS )
6767
6868# Copy assets directory to the build directory and pack them
6969pack-assets :
70- $(MKDIR ) $(call platformpth, $(exampleTilemapBuildDir ) /assets)
70+ $(call MKDIR, $(call platformpth,$(exampleTilemapBuildDir ) /assets) )
7171 $(call COPY,$(exampleTilemapSrcDir ) /assets,$(exampleTilemapBuildDir ) /assets,$(RWCARDGLOB ) )
72- $(MKDIR ) $(call platformpth,$(exampleTilemapBuildDir ) /assets/shaders)
72+ $(call MKDIR, $(call platformpth,$(exampleTilemapBuildDir ) /assets/shaders) )
7373 $(call COPY,$(binDir ) /engine/render/build/assets/shaders,$(exampleTilemapBuildDir ) /assets/shaders,$(RWCARDGLOB ) )
7474 $(packerApp ) $(exampleTilemapBuildDir ) /app.pck $(exampleTilemapBuildDir ) $(exampleTilemapAssets )
75+ $(RM ) " $( exampleTilemapBuildDir) /assets"
76+ $(call PACK_LIBS_SCRIPT,$(vendorDir ) /vulkan/lib,$(exampleTilemapBuildDir ) )
7577
7678# Package the built application and all its assets to the output directory
7779package :
7880 $(RM ) " $( outputDir) /$( exampleTilemapOutputName) "
79- $(call PACKAGE_SCRIPT, $(exampleTilemapOutputName ) , $(call BASENAME, $(exampleTilemapApp ) ) , $(outputDir ) , $(exampleTilemapBuildDir ) , $(packagingFlags ) )
80-
81- # Copy Vulkan libraries to the build directory
82- vulkan-libs :
83- $(call COPY_VULKAN,$(vendorDir ) ,$(exampleTilemapBuildDir ) )
81+ $(call PACKAGE_SCRIPT, $(exampleTilemapOutputName ) , $(call BASENAME, $(exampleTilemapApp ) ) , $(outputDir ) , $(exampleTilemapBuildDir ) , $(packagingFlags ) )
0 commit comments