1
0

Initial commit

This commit is contained in:
2023-08-29 02:06:18 +00:00
commit 0b55bf645c
10 changed files with 527 additions and 0 deletions

21
Makefile.mingw Normal file
View File

@@ -0,0 +1,21 @@
TARGET = xplayer
SRCS = main.cpp
OBJS = $(SRCS:.cpp=.o)
INCLUDES := -I$(CURDIR)
CFLAGS := -g -Wall $(INCLUDES)
CXXFLAGS := $(CFLAGS) -std=c++17
LDFLAGS := `pkg-config sdl2 --libs`
all: $(TARGET)
$(TARGET): $(OBJS)
$(CXX) -o $@ $^ $(LDFLAGS)
run: all
@./$(TARGET)
.PHONY: clean
clean:
$(RM) $(OBJS) $(TARGET)