Compiling and liking with no poblems
This commit is contained in:
parent
9282b15528
commit
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue