diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-26 18:01:51 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-26 18:01:51 -0400 |
| commit | 2e8af6099010dc3b525cfd6517b8754bca9e99b9 (patch) | |
| tree | 2406ab0893cb81b4d7a94fc6352741014875b6e4 /Makefile | |
| download | balls-2e8af6099010dc3b525cfd6517b8754bca9e99b9.zip | |
initCL()
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec42712 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC = gcc +CFLAGS = -std=c99 -Wall -pedantic -Wno-deprecated-declarations +LDFLAGS = -lOpenCL -lglut -lGLU -lGL -lGLX + +SRC = balls.c sysfatal.c +OBJ = ${SRC:.c=.o} + +balls: ${OBJ} + ${CC} -o $@ ${LDFLAGS} $^ + +%.o: %.c + ${CC} -c ${CFLAGS} $< + +clean: + rm -f *.o balls + +${OBJ}: sysfatal.h |