# -*- Mode: Makefile -*-
#
# $Header: /home/gene/library/website/docsrc/test-rpc/src/RCS/Makefile,v 395.1 2008/04/20 17:25:55 gene Exp $
#
# Copyright (c) 2006 Gene Michael Stover.  All rights reserved.
#
# Makefile for unix, POSIX, Unix, AIX, HP/UX, NeXT, Coherent, & yes, Linux.
#

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

CC=gcc
CFLAGS=-Wall -Dmc68000=0 -Dsparc=0 -Dvax=0 -DOSTYPE=2
COMPILE_c=$(CC) $(CFLAGS) -c
LINK_c=$(CC) $(CFLAGS)

LIBS=tmp/testencode.o -lm

HEADERS=src/this.h

all :	bin/make-data \
	bin/make-test0021 \
	bin/test0000 \
	bin/test0001 \
	bin/test0002 \
	bin/test0003 \
	bin/test0004 \
	bin/test0005 \
	bin/test0006 \
	bin/test0007 \
	bin/test0008 \
	bin/test0009 \
	bin/test0010 \
	bin/test0011 \
	bin/test0012 \
	bin/test0015 \
	bin/test0016 \
	bin/test0020 \
	bin/test0021

check : all
	bin/test0000
	bin/test0001
	bin/test0002
	bin/test0003
	bin/test0004
	bin/test0005
	bin/test0006
	bin/test0007
	bin/test0008
	bin/test0009
	bin/test0010
	bin/test0011
	bin/test0012
	bin/test0015
	bin/test0016
	bin/test0020
	bin/test0021

bin/make-data : tmp/make-data.o tmp/testencode.o
	$(LINK_c) tmp/make-data.o -obin/make-data $(LIBS)

tmp/make-data.o : src/make-data.c
	$(COMPILE_c) src/make-data.c -otmp/make-data.o

bin/make-test0021 : tmp/make-test0021.o tmp/testencode.o
	$(LINK_c) tmp/make-test0021.o -obin/make-test0021 $(LIBS)

tmp/make-test0021.o : src/make-test0021.c
	$(COMPILE_c) src/make-test0021.c -otmp/make-test0021.o

tmp/testencode.o : src/testencode.c
	$(COMPILE_c) src/testencode.c -otmp/testencode.o

bin/test0000 : tmp/test0000.o
	$(LINK_c) tmp/test0000.o -obin/test0000

tmp/test0000.o : src/test0000.c
	$(COMPILE_c) src/test0000.c -otmp/test0000.o

bin/test0001 : tmp/test0001.o
	$(LINK_c) tmp/test0001.o $(LIBS) -obin/test0001

tmp/test0001.o : src/test0001.c $(HEADERS)
	$(COMPILE_c) src/test0001.c -otmp/test0001.o

bin/test0002 : tmp/test0002.o
	$(LINK_c) tmp/test0002.o $(LIBS) -obin/test0002

tmp/test0002.o : src/test0002.c $(HEADERS)
	$(COMPILE_c) src/test0002.c -otmp/test0002.o

bin/test0003 : tmp/test0003.o
	$(LINK_c) tmp/test0003.o $(LIBS) -obin/test0003

tmp/test0003.o : src/test0003.c $(HEADERS)
	$(COMPILE_c) src/test0003.c -otmp/test0003.o

bin/test0004 : tmp/test0004.o
	$(LINK_c) tmp/test0004.o $(LIBS) -obin/test0004

tmp/test0004.o : src/test0004.c $(HEADERS)
	$(COMPILE_c) src/test0004.c -otmp/test0004.o

bin/test0005 : tmp/test0005.o
	$(LINK_c) tmp/test0005.o $(LIBS) -obin/test0005

tmp/test0005.o : src/test0005.c $(HEADERS)
	$(COMPILE_c) src/test0005.c -otmp/test0005.o

bin/test0006 : tmp/test0006.o
	$(LINK_c) tmp/test0006.o $(LIBS) -obin/test0006

tmp/test0006.o : src/test0006.c $(HEADERS)
	$(COMPILE_c) src/test0006.c -otmp/test0006.o

bin/test0007 : tmp/test0007.o
	$(LINK_c) tmp/test0007.o $(LIBS) -obin/test0007

tmp/test0007.o : src/test0007.c $(HEADERS)
	$(COMPILE_c) src/test0007.c -otmp/test0007.o

bin/test0008 : tmp/test0008.o
	$(LINK_c) tmp/test0008.o $(LIBS) -obin/test0008

tmp/test0008.o : src/test0008.c $(HEADERS)
	$(COMPILE_c) src/test0008.c -otmp/test0008.o

bin/test0009 : tmp/test0009.o
	$(LINK_c) tmp/test0009.o $(LIBS) -obin/test0009

tmp/test0009.o : src/test0009.c $(HEADERS)
	$(COMPILE_c) src/test0009.c -otmp/test0009.o

bin/test0010 : tmp/test0010.o
	$(LINK_c) tmp/test0010.o $(LIBS) -obin/test0010

tmp/test0010.o : src/test0010.c $(HEADERS)
	$(COMPILE_c) src/test0010.c -otmp/test0010.o

bin/test0011 : tmp/test0011.o
	$(LINK_c) tmp/test0011.o $(LIBS) -obin/test0011

tmp/test0011.o : src/test0011.c $(HEADERS)
	$(COMPILE_c) src/test0011.c -otmp/test0011.o

bin/test0012 : tmp/test0012.o
	$(LINK_c) tmp/test0012.o $(LIBS) -obin/test0012

tmp/test0012.o : src/test0012.c $(HEADERS)
	$(COMPILE_c) src/test0012.c -otmp/test0012.o

bin/test0015 : tmp/test0015.o
	$(LINK_c) tmp/test0015.o $(LIBS) -obin/test0015

tmp/test0015.o : src/test0015.c $(HEADERS)
	$(COMPILE_c) src/test0015.c -otmp/test0015.o

bin/test0016 : tmp/test0016.o
	$(LINK_c) tmp/test0016.o $(LIBS) -obin/test0016

tmp/test0016.o : src/test0016.c $(HEADERS)
	$(COMPILE_c) src/test0016.c -otmp/test0016.o

bin/test0020 : tmp/test0020.o
	$(LINK_c) tmp/test0020.o $(LIBS) -obin/test0020

tmp/test0020.o : src/test0020.c $(HEADERS)
	$(COMPILE_c) src/test0020.c -otmp/test0020.o

bin/test0021 : tmp/test0021.o
	$(LINK_c) tmp/test0021.o $(LIBS) -obin/test0021

tmp/test0021.o : src/test0021.c src/test0021-list.h $(HEADERS)
	$(COMPILE_c) src/test0021.c -otmp/test0021.o

# --- end of file ---
