anthony | 85836c5 | 2012-03-29 11:54:02 +0000 | [diff] [blame] | 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) |
anthony | 3731b34 | 2012-04-19 05:12:09 +0000 | [diff] [blame] | 21 | |
| 22 | test_script: |
| 23 | script-token-test.sh | diff script-token-test-results.txt - |
anthony | d28c6a6 | 2012-05-08 00:12:56 +0000 | [diff] [blame] | 24 | |