Home | History | Annotate | Download | only in tests
      1 
      2 # get includes and libraries from source directory
      3 SRC=$(shell pwd )/../..
      4 CFLAGS=-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 
      9 LDLIBS=-lMagickWand -lMagickCore
     10 
     11 files=$(wildcard *.c)
     12 tests=$(files:%.c=%)
     13 
     14 all: $(tests)
     15 
     16 script-token-test: script-token-test.c ../script-token.[ch]
     17 	$(CC) -o script-token-test script-token-test.c
     18 
     19 clean:
     20 	rm -f $(tests)
     21 
     22 test_script:
     23 	script-token-test.sh | diff script-token-test-results.txt -
     24 
     25