actualitzat makefile
This commit is contained in:
@@ -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..."
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user