aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 03a145e..f358be1 100644
--- a/Makefile
+++ b/Makefile
@@ -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