1
0

init commit

This commit is contained in:
2025-03-24 18:40:22 +08:00
commit 455ef8587b
5 changed files with 980 additions and 0 deletions

22
Makefile Normal file
View File

@@ -0,0 +1,22 @@
TARGET = gltext
BUILD = build
SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)
CC := gcc
CFLAGS := -O2 -Wall $(INCLUDES) $(shell pkg-config --cflags glfw3)
CXXFLAGS := $(CFLAGS) -std=c++17
LDFLAGS := $(shell pkg-config glfw3 --libs)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS) -static-libgcc -static-libstdc++ -static
run: all
@./$(TARGET)
.PHONY: clean
clean:
$(RM) $(OBJS) $(TARGET)