# This is a Makefile for a Pd external generated
# automatically from a BlockCompiler patch.
#
# Generated: 2004-03-10 16:23:52
#
# Author: MK
#

current:
	echo make pd_linux, pd_nt, pd_irix5, or pd_irix6

clean: ; rm -f *.pd_linux *.o *.exp *.lib *.obj

# ----------------------- NT -----------------------
pd_nt: kwgd~.dll

.SUFFIXES: .obj .dll

PDNTCFLAGS = /W3 /WX /DNT /DPD /nologo

VC="C:\Program Files\Microsoft Visual Studio .NET\Vc7"

PDNTINCLUDE = /I. /I"C:\Tcl\include" /I"C:\Program Files\Pure Data\src" /I$(VC)\include

PDNTLDIR = $(VC)\lib
PDNTLIB = $(PDNTLDIR)\libc.lib \
	$(PDNTLDIR)\oldnames.lib \
	$(PDNTLDIR)\kernel32.lib \
	"C:\Program Files\Pure Data\bin\pd.lib"

.c.dll:
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
	link /dll /export:$*_setup $*.obj $(PDNTLIB)

# override explicitly for tilde objects like this:
kwgd~.dll: kwgd~.c; 
	cl $(PDNTCFLAGS) $(PDNTINCLUDE) /c $*.c
	link /dll /export:kwgd_tilde_setup $*.obj $(PDNTLIB)
