topaz/makefile
2025-11-01 16:32:49 +01:00

19 lines
237 B
Makefile

include config.mk
SRC:=topaz.c
ifeq (${BACKEND},gl)
SRC += gl/gl.c gl/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