summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2024-02-04 14:43:37 +0000
committerAiden Gall <aiden@aidengall.xyz>2024-02-04 14:46:37 +0000
commitc44d2805ba480fc7c2faf8ae07f2c1c9febf7e34 (patch)
tree0171574e51da53dbe2664360949cc78259b2da0b /Makefile
parent5ff9d6184771970c14e682ecf55cbd9d27b2fada (diff)
render with raylib
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0a49d95..feb5551 100644
--- a/Makefile
+++ b/Makefile
@@ -19,9 +19,9 @@
include config.mk
-SRC = src/spirt.c src/util.c src/farbfeld.c
+SRC = src/spirt.c src/util.c src/util_cl.c
CLSRC = src/cl/spirt.cl
-HDR = src/util.h src/farbfeld.h
+HDR = src/util.h src/util_cl.h
LL = ${CLSRC:.cl=.ll}
SPV = ${CLSRC:.cl=.spv}
@@ -30,16 +30,16 @@ OBJ = ${SRC:.c=.o} ${CLSRC:.cl=.o}
all: spirt
-src/spirt.o: config.mk src/util.h src/farbfeld.h
src/util.o: config.mk
-src/farbfeld.o: config.mk src/util.h
+src/util_cl.o: config.mk src/util.h
+src/spirt.o: config.mk src/util.h src/util_cl.h
src/cl/spirt.o: config.mk
spirt: ${OBJ}
- ${CC} -o $@ $^ ${LDFLAGS}
+ ${CC} $(LDFLAGS) $^ $(LDLIBS) -o $@
%.o: %.c
- ${CC} -c ${CFLAGS} $< -o $@
+ ${CC} $(CFLAGS) -c -o $@ $<
%.o: %.spv
objcopy ${OBJFLAGS} $< $@