TARGET = libX.a
CFILES = xentry_form.c X.c build_option.c dialog.c text.c list.c
OFILES = xentry_form.o X.o build_option.o dialog.o text.o list.o


TARGET:	$(OFILES)
	ar r $(TARGET) $(OFILES)
	$(RANLIB) $(TARGET)
	mv $(TARGET) $(LIBDIR)

clean:
	rm -f *.o core *.a

include:
	CURRENT=`pwd`;\
	for i in *.h; do \
		echo $$i;\
		cd $(INCDIR);\
		if [ -h $(INCDIR)/$$i ]; then rm -f $(INCDIR)/$$i; fi; \
		ln -s $$CURRENT/$$i .; \
	done
