current: irix5

# ----------------------- NT ----------------------------

nt: rightshift.dll leftshift.dll pique.dll

.SUFFIXES: .dll

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

PDNTINCLUDE = /I. /I..\..\src \
	/I"\Program Files\DevStudio\VC\include"

PDNTLDIR = "\Program Files\DevStudio\VC\lib"
PDNTLIB = $(PDNTLDIR)\libc.lib \
	$(PDNTLDIR)\oldnames.lib \
	$(PDNTLDIR)\kernel32.lib \
	..\..\bin\pd.lib 

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


# ----------------------- IRIX ----------------------------

irix5: rightshift.pd_irix5 leftshift.pd_irix5 pique.pd_irix5

.SUFFIXES: .pd_irix5
SGIINCLUDE = -I../../src

.c.pd_irix5:
	cc -g -w2 -fullwarn -mips2 -DFTS $(SGIINCLUDE) -c $*.c
	ld -elf -shared -rdata_shared -o $*.pd_irix5 $*.o
	rm $*.o

clean:
	rm *.pd_irix5 so_locations

