From 95361c8c2229840a5e05f49622be629cf654371d Mon Sep 17 00:00:00 2001 From: NPScript Date: Thu, 18 Aug 2022 17:04:05 +0200 Subject: first sketch --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..43348e3 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC=gcc +LDFLAGS=-lGL -lglut -lGLU -lm +CFLAGS= +SRC=gragl.c +OBJ=${SRC:.c=.o} + +default_target: all + +.c.o: + ${CC} ${CFLAGS} -c $< + +example: example.c + ${CC} -o $@ ${LDFLAGS} example.c ${OBJ} + +all: ${OBJ} example + +clean: + -rm *.o example + +run: all + ./example -- cgit v1.2.3-70-g09d2