first commit

This commit is contained in:
Lorenzo Torres 2025-11-01 16:23:17 +01:00
commit aa7b921523
10 changed files with 19537 additions and 0 deletions

19
makefile Normal file
View file

@ -0,0 +1,19 @@
include config.mk
SRC:=topaz.c
ifeq (${BACKEND},gl)
SRC += opengl/gl.c opengl/platform.c
endif
OBJ:=${SRC:.c=.o}
all: ${OBJ}
${CC} ${LIBS} ${OBJ} -o topaz
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
.PHONY: clean
clean:
@rm -rfv ${OBJ} topaz