# change this to the place where you installed pcsc-lite
PCSC=/home/aj/pcsc

# add -DDEBUG if debugging errors
CFLAGS=-I$(PCSC)/include -Wall -Werror -g -DDEBUG
LDFLAGS=-L$(PCSC)/lib
LIBS=-lusb

# we also need libusb, i hope you have 0.1.4 or better installed.
LIBS=-lusb
CC=gcc

OBJS=ifdhandler.o etoken.o t1.o

all: libetoken.so test1

libetoken.so: $(OBJS)
	$(LD) -shared -o libetoken.so $(LDFLAGS) $(OBJS) $(LIBS)

test1: $(OBJS) test1.o
	$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)

clean:
	rm -rf *.o libetoken.so *~ test1

indent:
	indent -kr -i8 -ts8 *.c *.h

dep:
	makedepend $(CFLAGS) *.c *.h

# DO NOT DELETE
