Compare commits

..

2 Commits

Author SHA1 Message Date
Ulysse Cura 54204542c1 Removed warnings for the moment. 2026-04-12 21:02:17 +02:00
Ulysse Cura 80d304afeb Compiling and liking with no poblems 2026-04-12 21:02:04 +02:00
2 changed files with 7 additions and 3 deletions

View File

@ -8,9 +8,9 @@ CORE_SOURCES := \
# Compiler and flags
CORE_CC = gcc
CORE_CFLAGS = $(sdl2-config --cflags --libs) -Wall -Wextra -std=c17 -fPIC -g
CORE_CFLAGS = -Wall -Wextra -std=c17 -fPIC -g
CORE_INCLUDE_DIRS = $(CORE_DIR)/headers
CORE_LDFLAGS =
CORE_LDFLAGS = $(shell sdl2-config --cflags --libs)
# Deduce objects
CORE_OBJECTS = $(CORE_SOURCES:%.c=$(BUILD_DIR)/$(CORE_DIR)/%.o)
@ -33,7 +33,7 @@ count_core_build:
# Link core target
$(BUILD_DIR)/libCore.so: $(CORE_OBJECTS)
@echo -e "[100%] $(YELLOW)Linking libCore.so$(RESET)"
$(Q)$(CORE_CC) -shared $(CORE_LDFLAGS) -o $@ $(CORE_OBJECTS)
$(Q)$(CORE_CC) -shared $(CORE_OBJECTS) -o $@ $(CORE_LDFLAGS)
# Build .o files
$(BUILD_DIR)/$(CORE_DIR)/%.o: $(CORE_DIR)/%.c

View File

@ -23,6 +23,10 @@ inline void destroy_texture(texture_t *texture)
inline void draw_texture(const texture_t *texture, const rect_t *src_rect, const rect_t *dst_rect, bool flip)
{
(void)texture;
(void)src_rect;
(void)dst_rect;
(void)flip;
//display_subimage(texture->image, src_rect, dst_rect, flip);
}