ULIB    = ..\dev\lib
UINC    = ..\dev\include

#CFMACH	= -D_ALPHA_=1
CFMACH	= -D_X86_=1
#CFMACH	= -D_MIPS_=1

CFLAGS  = -c -W3 $(CFMACH) -DWIN32 -D_WIN32 /Ox /I $(UINC)
LFLAGS  = -dll -def:$(UINC)\serv.def
# these are the debug flags
#CFLAGS  = -c -W3 $(CFMACH) -DWIN32 -D_WIN32 /Od  /Z7 /I $(UINC)
#LFLAGS  = -dll -def:$(UINC)serv.def /debug /debugtype:both

LLIBS   = $(ULIB)\serv_w.obj $(ULIB)\server.lib libc.lib kernel32.lib

.c.p:
	cl $(CFLAGS) $*.c
	link $(LFLAGS) -out:$@ $*.obj $(LLIBS)

all :  wrapsphe.p
