actualitzat makefile

This commit is contained in:
2026-04-03 21:27:00 +02:00
parent 5f0d1f9577
commit e150097edc
4 changed files with 195 additions and 253 deletions

View File

@@ -3,7 +3,7 @@
# Variables
CXX := g++
CXXFLAGS := -std=c++20 -Wall -Os -I../../
CXXFLAGS := -std=c++20 -Wall -Os
SOURCES := pack_resources.cpp ../../source/resource_pack.cpp
TARGET := pack_resources
CLEAN_FILES := pack_resources *.pack *.o
@@ -21,7 +21,7 @@ else
endif
# Reglas principales
.PHONY: all pack_tool clean help test_pack
.PHONY: all pack_tool pack clean help test_pack
# Compilar herramienta de empaquetado
all: pack_tool
@@ -37,6 +37,14 @@ clean:
$(CLEAN_CMD) $(call FixPath,$(CLEAN_FILES))
@echo "✓ Archivos limpiados"
# Crear pack de recursos final (invocado desde Makefile raíz)
pack: pack_tool
ifeq ($(OS),Windows_NT)
.\$(TARGET) ..\..\data ..\..\resources.pack
else
./$(TARGET) ../../data ../../resources.pack
endif
# Crear pack de recursos de prueba
test_pack: pack_tool
@echo "Creando pack de recursos de prueba..."

View File

@@ -1,5 +1,5 @@
#include "../source/resource_pack.hpp"
#include "../build/version.h" // Para Version::APP_NAME
#include "../../source/resource_pack.hpp"
#include "../../build/version.h" // Para Version::APP_NAME
#include <iostream>
#include <filesystem>