#CFILES = $(wildcard *.c) #CFILES = test-blur.c test-bcontrast-minichunk.c test-bcontrast.c test-bcontrast-4x.c test-rotate.c test-scale.c test-unsharpmask.c test-samplers.c test-gegl-buffer-access.c CFILES = test-bcontrast-4x.c test-rotate.c test-unsharpmask.c test-samplers.c test-gegl-buffer-access.c #CFILES = test-gegl-buffer-access.c bins = $(subst ,,$(CFILES:.c=)) all: $(bins) %: %.c PKG_CONFIG_PATH=prefix/lib/pkgconfig:$(PKG_CONFIG_PATH) $(CC) -DTESTS_DATA_DIR=\"../data/\" -o $@ $< `pkg-config babl gegl-0.4 --cflags --libs` -Wall -O2 check: $(bins) for a in $(bins); do \ GEGL_USE_OPENCL=no GEGL_PATH=prefix/lib/x86_64-linux-gnu/gegl-0.4 LD_LIBRARY_PATH=prefix/lib:prefix/lib/x86_64-linux-gnu:$(LD_LIBRARY_PATH) ./$$a;\ done clean: rm -f $(bins)