# $Id: Makefile,v 1.9 2000/09/26 08:18:40 rousseau Exp $

CC=gcc
CFLAGS = -Wall -O2 -g -I..
LDFLAGS = -lSCreader

all: testreader dirc test_errors

test: testreader-local
	export LD_LIBRARY_PATH=.. ; \
	./testreader-local

testreader-local: testreader-local.o
	$(CC) $(CFLAGS) $(LDFLAGS) -L.. $^ -o $@

.PHONY: clean all

clean:
	rm -f testreader testreader.o
	rm -f testreader-local testreader-local.o
	rm -f dirc dirc.o
	rm -f test_errors

