diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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} $< $@ |