1
0

Initial commit

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

26
Makefile.mingw Normal file
View File

@@ -0,0 +1,26 @@
TARGET = xPlayer
BUILD := build
SRCS := src
VPATH := $(foreach dir,$(SRCS),$(CURDIR)/$(dir))
CFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.c)))
CPPFILES := $(foreach dir,$(SRCS),$(notdir $(wildcard $(dir)/*.cpp)))
OFILES := $(CPPFILES:.cpp=.o) $(CFILES:.c=.o)
INCLUDES := -I$(CURDIR)/imgui
CFLAGS := -O2 -Wall $(INCLUDES) `pkg-config --cflags glfw3`
CXXFLAGS := $(CFLAGS) -std=c++17
LDFLAGS := `pkg-config glfw3 --libs` -lgdi32
all: $(TARGET)
$(TARGET): $(OFILES)
$(CXX) -o $@ $^ $(LDFLAGS)
run: all
@./$(TARGET)
.PHONY: clean
clean:
$(RM) $(OFILES) $(TARGET)