# Makefile: makefile for weather.c
# 
# make <choice>
# will create a specific climate program.
#
# make
# will create 'england', an English climate program.
#
# make all
# will create all climate programs.
#
# To make addition climate programs, just add the calendar
# and climate choices as -D options.
#
# Calendar choices:
# 
# GREGORIAN - uses essentially modern calendar, without leap years.
#
# JAPAN     - uses medieval Japanese calendar.
#
# MIDDLE_EARTH - uses calendar described in appendices of Tolkien's
#                'The Lord of the Rings'.
#
# Climate choices:
#
# N_ATLANTIC   - useful for Scandinavia coastal or northern interior 
#                continential America or Europe.
# MID_ATLANTIC - useful for England, European coastal, New England, etc.
# S_ATLANTIC   - useful for Spain, Southern coastal US
# GULF         - useful for Gulf States, Mediterranean, etc.
# N_PACIFIC    - useful for Japan, Korea, Southern Alaskan coast, etc.

# uncomment the appropriate line for System V or VMS
#CFLAGS = -DVMS
#CFLAGS = -DSYSV
CFLAGS = 

england: weather.c weather.h c_greg.h w_m_atl.h
	cc -DGREGORIAN -DMID_ATLANTIC -o england weather.c

minnesota: weather.c weather.h c_greg.h w_n_atl.h
	cc -DGREGORIAN -DN_ATLANTIC -o minnesota weather.c

japan: weather.c weather.h c_japan.h w_n_pac.h
	cc -DJAPAN -DN_PACIFIC -o japan weather.c

florida: weather.c weather.h c_greg.h w_gulf.h
	cc -DGREGORIAN -DGULF -o florida weather.c

shire: weather.c weather.h c_shire.h w_m_atl.h
	cc -DMIDDLE_EARTH -DMID_ATLANTIC -o shire weather.c

georgia: weather.c weather.h c_greg.h w_s_atl.h
	cc -DGREGORIAN -DS_ATLANTIC -o georgia weather.c

all: england minnesota japan florida shire georgia

msc: 
	cl -DGREGORIAN -DMID_ATLANTIC -oengland.exe weather.c
	cl -DGREGORIAN -DN_ATLANTIC -ominn.exe weather.c
	cl -DGREGORIAN -DGULF -oflorida.exe weather.c
	cl -DGREGORIAN -DS_ATLANTIC -ogeorgia.exe weather.c
	cl -DJAPAN -DN_PACIFIC -ojapan.exe weather.c
	cl -DMIDDLE_EARTH -DMID_ATLANTIC -oshire.exe weather.c

turboc: 
	tcc -DMSDOS -DGREGORIAN -DMID_ATLANTIC weather.c
	link weather.obj england.exe
	tcc -DMSDOS -DGREGORIAN -DN_ATLANTIC  weather.c
	link weather.obj minn.exe
	tcc -DMSDOS -DGREGORIAN -DGULF  weather.c
	link weather.obj florida.exe
	tcc -DMSDOS -DGREGORIAN -DS_ATLANTIC  weather.c
	link weather.obj georgia.exe
	tcc -DMSDOS -DJAPAN -DN_PACIFIC  weather.c
	link weather.obj japan.exe
	tcc -DMSDOS -DMIDDLE_EARTH -DMID_ATLANTIC  weather.c
	link weather.obj shire.exe

