1
0

Initial commit

This commit is contained in:
2023-04-13 15:21:21 +08:00
commit f2cb06b8f9
9 changed files with 375 additions and 0 deletions

24
Makefile.mingw Normal file
View File

@@ -0,0 +1,24 @@
TARGET := cDrive
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)/include
CFLAGS := -O2 -Wall $(INCLUDES) `curl-config --cflags`
CXXFLAGS := $(CFLAGS) -fno-rtti -std=c++17
LDFLAGS := `curl-config --libs` `pkg-config glfw3 --libs`
.PHONY: all
all: $(TARGET)
$(TARGET): $(OFILES)
$(CXX) -o $@ $^ $(LDFLAGS)
run: all
@./$(TARGET)
clean:
$(RM) $(OFILES) $(TARGET)