| 1 |
#CFILES = $(wildcard *.c) |
| 2 |
#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 |
| 3 |
CFILES = test-bcontrast-4x.c test-rotate.c test-unsharpmask.c test-samplers.c test-gegl-buffer-access.c |
| 4 |
#CFILES = test-gegl-buffer-access.c |
| 5 |
bins = $(subst ,,$(CFILES:.c=)) |
| 6 |
|
| 7 |
all: $(bins) |
| 8 |
|
| 9 |
%: %.c |
| 10 |
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 |
| 11 |
|
| 12 |
check: $(bins) |
| 13 |
for a in $(bins); do \ |
| 14 |
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;\ |
| 15 |
done |
| 16 |
|
| 17 |
clean: |
| 18 |
rm -f $(bins) |