Initial Commit

This commit is contained in:
klein panic
2024-09-27 19:32:14 -04:00
commit 53610a8c1c
21 changed files with 1340 additions and 0 deletions

26
render/build/Makefile Normal file
View File

@@ -0,0 +1,26 @@
CC = gcc
CFLAGS = -Wall -O2
SRC_DIR = ../src
OBJ_DIR = ../obj
BUILD_DIR = .
TARGET = $(BUILD_DIR)/cube_render
SRCS = $(wildcard $(SRC_DIR)/*.c)
OBJS = $(SRCS:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ -lm
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
@mkdir -p $(OBJ_DIR)
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(OBJ_DIR)/*.o $(TARGET)
rebuild: clean all