Compare commits
2 Commits
9282b15528
...
54204542c1
| Author | SHA1 | Date |
|---|---|---|
|
|
54204542c1 | |
|
|
80d304afeb |
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue