# by default install in /usr/local
ifeq ($(DESTDIR),)
DESTDIR=/usr/local
endif

CC = gcc
CFLAGS = -g -Wall
LIBS = -lmusclecard -lpthread
LDFLAGS = $(LIBS)

all: muscleTool
osx: muscleToolOSX

clean:
	rm -f *.o muscleTool

distclean: clean

install: muscleTool
	install --mode=0755 --strip $^ $(DESTDIR)/bin/$^

muscleToolOSX: muscleTool.c
	$(CC) -g -o muscleTool muscleTool.c -framework PCSC

