1 2# get includes and libraries from source directory 3SRC=$(shell pwd )/../.. 4CFLAGS=-I$(SRC) -L$(SRC)/MagickWand/.libs -L$(SRC)/MagickCore/.libs 5 6# get includes and libraries from installed ImageMagick-devel Package 7#CFLAGS=-I/usr/include/ImageMagick 8 9LDLIBS=-lMagickWand -lMagickCore 10 11files=$(wildcard *.c) 12tests=$(files:%.c=%) 13 14all: $(tests) 15 16script-token-test: script-token-test.c ../script-token.[ch] 17 $(CC) -o script-token-test script-token-test.c 18 19clean: 20 rm -f $(tests) 21 22test_script: 23 script-token-test.sh | diff script-token-test-results.txt - 24 25