# -*- Mode: Makefile -*-
#
# $Header: /home/gene/library/website/docsrc/test-rpc/src/RCS/Makefile.w32,v 395.1 2008/04/20 17:25:55 gene Exp $
#
# Copyright (c) 2006 Gene Michael Stover.  All rights reserved.
#
# Makefile for Microsloth Winders.
# Builds programs which test ../rpc-4.0.
# Instead of runing "nmake -fMakefile.w32", it's probably better
# to run ".\build".
#

RPCLIB=com-cybertiggyr-rpclib4-000
UNI=com-cybertiggyr-uni1-000

#
# OSTYPE  operating system
# ------  ----------------
#      2  unix, Linux, Unix, POSIX, AIX, HP/UX, ...
#     31  Microsloth Winders
#

CC=cl
CFLAGS=/nologo /I. /Dmc68000=0 /Dsparc=0 /Dvax=0 /Di386=1 /DOSTYPE=31
COMPILE_c=$(CC) $(CFLAGS) /c
LINK_c=$(CC) $(CFLAGS)

LIBS=..\rpc-4.0\lib\$(RPCLIB).lib ..\rpc-4.0\lib\$(UNI).lib Ws2_32.lib User32.lib

HEADERS=src\this.h

all :	bin/test0000.exe \
	bin/test0001.exe \
	bin/test0002.exe \
	bin/test0003.exe \
	bin/test0004.exe \
	bin/test0005.exe \
	bin/test0006.exe \
	bin/test0007.exe \
	bin/test0008.exe

check : all
	bin\test0000
	bin\test0001
	bin\test0002
	bin\test0003
	bin\test0004
	bin\test0005
	bin\test0006
	bin\test0007
	bin\test0008

bin/test0000.exe : tmp/test0000.obj
	link /NOLOGO /OUT:bin\test0000.exe tmp\test0000.obj

tmp/test0000.obj : src/test0000.c
	$(COMPILE_c) src\test0000.c /Fotmp\test0000.obj

bin/test0001.exe : tmp/test0001.obj
	link /NOLOGO /OUT:bin\test0001.exe tmp\test0001.obj $(LIBS)

tmp/test0001.obj : src/test0001.c $(HEADERS)
	$(COMPILE_c) src\test0001.c /Fotmp\test0001.obj

bin/test0002.exe : tmp/test0002.obj
	link /NOLOGO /OUT:bin\test0002.exe tmp\test0002.obj $(LIBS)

tmp/test0002.obj : src/test0002.c $(HEADERS)
	$(COMPILE_c) src\test0002.c /Fotmp\test0002.obj

bin/test0003.exe : tmp/test0003.obj
	link /NOLOGO /OUT:bin\test0003.exe tmp\test0003.obj $(LIBS)

tmp/test0003.obj : src/test0003.c $(HEADERS)
	$(COMPILE_c) src\test0003.c /Fotmp\test0003.obj

bin/test0004.exe : tmp/test0004.obj
	link /NOLOGO /OUT:bin\test0004.exe tmp\test0004.obj $(LIBS)

tmp/test0004.obj : src/test0004.c $(HEADERS)
	$(COMPILE_c) src\test0004.c /Fotmp\test0004.obj

bin/test0005.exe : tmp/test0005.obj
	link /NOLOGO /OUT:bin\test0005.exe tmp\test0005.obj $(LIBS)

tmp/test0005.obj : src/test0005.c $(HEADERS)
	$(COMPILE_c) src\test0005.c /Fotmp\test0005.obj

bin/test0006.exe : tmp/test0006.obj
	link /NOLOGO /OUT:bin\test0006.exe tmp\test0006.obj $(LIBS)

tmp/test0006.obj : src/test0006.c $(HEADERS)
	$(COMPILE_c) src\test0006.c /Fotmp\test0006.obj

bin/test0007.exe : tmp/test0007.obj
	link /NOLOGO /OUT:bin\test0007.exe tmp\test0007.obj $(LIBS)

tmp/test0007.obj : src/test0007.c $(HEADERS)
	$(COMPILE_c) src\test0007.c /Fotmp\test0007.obj

bin/test0008.exe : tmp/test0008.obj
	link /NOLOGO /OUT:bin\test0008.exe tmp\test0008.obj $(LIBS)

tmp/test0008.obj : src/test0008.c $(HEADERS)
	$(COMPILE_c) src\test0008.c /Fotmp\test0008.obj

# --- end of file ---
