# $Id: Makefile,v 1.8 2002/03/12 09:25:38 rousseau Exp $

CFLAGS := $(CFLAGS) $(shell gtk-config --cflags)

all: 	xsst

ultraclean: clean
	rm -f core  *~

clean:
	rm -f xsst *.o

install:
	install --directory $(DESTDIR)/usr/bin
	install --mode 700 xsst $(DESTDIR)/usr/bin/

xsst: interface.o support.o main.o callbacks.o \
	../Functions/debug.o \
	../Functions/smartcard_functions.o \
	../Functions/publickey_db_functions.o \
	../Functions/crypto_functions.o \
	../Functions/crypto_functions.o \
	../Pam_Modules/pam_smartcard_utils.o
	$(CC) $(LDLIBS) `gtk-config --libs` $^ -o $@

tags:
	ctags $(shell find .. -name '*.c') $(shell find .. -name '*.h')

.PHONY: tags ultraclean clean 

