diff options
| author | NPScript <nathan@reinerweb.ch> | 2022-08-18 17:04:05 +0200 |
|---|---|---|
| committer | NPScript <nathan@reinerweb.ch> | 2022-08-18 17:04:05 +0200 |
| commit | 95361c8c2229840a5e05f49622be629cf654371d (patch) | |
| tree | 280a6d7706b349563959852057e1741f846d5f60 /Makefile | |
first sketch
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
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 |