# Simple NMAKE Script for Xeyes

!include <ntwin32.mak>

PROGRAM = xeyes

!if "$(CPU)" == "ALPHA"
LIBDIR = Alpha
!endif

!if "$(CPU)" == "i386"
LIBDIR = X86
!endif

!if "$(CPU)" == "MIPS"
LIBDIR = MIPS
!endif

!ifndef LIBDIR
!error Cannot determine CPU type - please set environment variable CPU to i386, ALPHA, or MIPS
!endif

# Libraries must appear in this order
DXLIBS = \
    ..\..\lib\$(LIBDIR)\Xt.lib \
    ..\..\lib\$(LIBDIR)\Xaw.lib ..\..\lib\$(LIBDIR)\Xmu.lib ..\..\lib\$(LIBDIR)\X11.lib

MYFLAGS = $(cflags) $(cdebug) $(cvars) -W2 -D__STDC__ \
    -I\mstools\h -I\mstools\h\sys \
    -I..\..\include \
    -I..\..\include\X11

OBJS = xeyes.obj eyes.obj transform.obj

.c.obj:
    $(cc) $(MYFLAGS) $*.c

all: $(PROGRAM).exe

$(PROGRAM).exe: $(OBJS) $(DXLIBS)
    $(link) $(conlflags) $(ldebug) $(OBJS) -out:$*.exe \
    $(DXLIBS) $(conlibs) advapi32.lib wsock32.lib
