# Makefile to build the Q Clib module with mingw

QCC = ../../src/qcc
QCCFLAGS = 

CFLAGS = -O3

SHLEXT = .dll

DEFS = -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DSTDC_HEADERS=1 -DHAVE_ERRNO_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DUSE_THREADS

.PHONY: all clean mostlyclean distclean maintainer-clean

all: clib$(SHLEXT)

clib$(SHLEXT): clib.c
	$(QCC) $(QCCFLAGS) -o clib$(SHLEXT) clib.c -- $(CFLAGS) $(DEFS) -I. -I../../libq -I../../glob -I../../regex -I../../../pthread -I../../../gmp --link -L. -L../../glob -lglob -L../../regex -lregex -lwsock32 -L../../../pthread -lpthreadGC -L../../../gmp -lgmp -L../../libq

clean mostlyclean distclean maintainer-clean::
	rm -f *.o *.a *$(SHLEXT) *.def *% *~ *.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