# Copyright (C) 1999-2000 Qute Corporation. All rights reserved.
#
# makefile for wprojects/othello
#	$Id: $
.SUFFIXES: .fx .bin .obj .a86 .c .h

# startup routines
CRT0_ASCII1=crt0asc1.obj
CRT0_ASCII2=crt0asc2.obj
CRT0_JAPANESE1=crt0jpn1.obj
CRT0_JAPANESE2=crt0jpn2.obj

CRT0=$(CRT0_JAPANESE2)

# copying command
#CP=cp -p
CP=copy

# deleting command
#RM=rm -f
RM=DEL

CFLAGS=
DEFINES=

.bin.fx:
	mkfent ww.cf

.obj.bin:
	lcc86 -a$(CRT0) -k-M -o $*.bin $^

.c.obj:
	lcc86 -c $(CFLAGS) $(DEFINES) -o $@ $<

.c.a86:
	lcc86 -SC $(CFLAGS) $(DEFINES) -o $@ $<

default:	all

clean:
	$(RM) *.OBJ
	$(RM) *.obj
#	$(RM) *.EXE
#	$(RM) *.exe
#	$(RM) *.BIN
#	$(RM) *.bin


all:	othello.fx

othello.fx:	othello.bin
othello.bin:	othello.obj
othello.obj:	othello.c othello.h
