LDFLAGS last

This commit is contained in:
kdx 2023-04-13 15:17:36 +02:00
parent dfb72f1a4c
commit 26febade03
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
CC ?= gcc
CC = gcc
CFLAGS = -std=c99 -Wall -Wextra -O3 -I./inc -MMD $(shell sdl2-config --cflags)
LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_mixer $(shell sdl2-config --libs)
@ -8,7 +8,7 @@ OBJS := $(patsubst %.c,%.o,$(wildcard src/*.c))
all: $(OBJ_NAME)
$(OBJ_NAME): $(OBJS)
$(CC) $(LDFLAGS) $(LIBRARIES) -o $(OBJ_NAME) $(OBJS)
$(CC) -o $(OBJ_NAME) $(OBJS) $(LDFLAGS)
strip $(OBJ_NAME)
%.o: %.c