# Makefile to build the Q Tk module with MSVC

QCC = ../../src/qcc

CFLAGS = -O
SHLEXT = .dll

# you might have to edit this one
TK_LIBS = tk84.lib tcl84.lib

DEFS = -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRDUP=1 -DRETSIGTYPE=void -DMUST_REINSTALL_SIGHANDLERS=1 -DUSE_THREADS

.PHONY: all clean mostlyclean distclean maintainer-clean

all: tk$(SHLEXT)

tk$(SHLEXT): tk.c
	$(QCC) $(QCCFLAGS) --msc -o tk$(SHLEXT) tk.c -- $(CFLAGS) -I../../libq -I../../../pthread $(DEFS) \
--link $(TK_LIBS) pthreadVC.lib -link -LIBPATH:../../../pthread -LIBPATH:../../libq

clean mostlyclean distclean maintainer-clean::
	rm -f *.o *$(SHLEXT) *% *~ *.bak q.out .q_vars core

distclean maintainer-clean::
	rm -f TAGS Makefile config.h config.status config.cache config.log


syntax highlighted by Code2HTML, v. 0.9.1