1
0

fix makefile

This commit is contained in:
2025-08-28 23:19:49 +08:00
parent 8ddfe0707a
commit bf137a87a0
3 changed files with 14 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
TARGET = xplayer
SRCS = main.cpp
SRCS = src/main.cpp
OBJS = $(SRCS:.cpp=.o)
INCLUDES := -I$(CURDIR)
CFLAGS := -g -Wall $(INCLUDES)
CFLAGS := -O2 -Wall $(shell pkg-config sdl2 --cflags)
CXXFLAGS := $(CFLAGS) -std=c++17
LDFLAGS := `pkg-config sdl2 mpv --libs`
LDFLAGS := -Wl,-Bdynamic $(shell pkg-config sdl2 mpv --libs) \
-mconsole -static-libgcc -static-libstdc++ -static
all: $(TARGET)