!if $d(DEBUG)
SWITCHES= -w -mc -N -f- -v -lv
!else
SWITCHES= -w -mc -N -Z -O -G -f-
!endif

pdsort.exe:	pdsort.obj merge.obj isdev.obj queue.obj pdqsort.obj makefile
	tcc $(SWITCHES) pdsort.obj merge.obj isdev.obj queue.obj pdqsort.obj

pdsort.obj:	pdsort.c queue.h makefile
	tcc -c $(SWITCHES) pdsort

merge.obj:	merge.c queue.h makefile
	tcc -c $(SWITCHES) merge

isdev.obj:	isdev.c makefile
	tcc -c $(SWITCHES) isdev

queue.obj:	queue.c queue.h makefile
	tcc -c $(SWITCHES) queue

pdqsort.obj:	pdqsort.c makefile
	tcc -c $(SWITCHES) pdqsort