# makefile
#
# This is part of the flight simulator 'fly8'.
# Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
#

#
# machine specific makefile for ms windows 3.X, c8
#

CC=      cl

CFLAGS= -I.. $(XFLAGS)
RSP=	$(TMP)\libfly8.rsp

#	Non portable programs
#
COBJS=	drivers.obj console.obj timer.obj mswin.obj grmswin.obj \
	misc.obj stick.obj mouse.obj

AOBJS=	msubs.obj

OBJS= $(COBJS) $(AOBJS)

HFILES = config.h ../fly.h ../keydef.h ../keymap.h

all:	fly8sys.lib

fly8sys.lib:	$(OBJS)
	if exist fly8sys.lib del fly8sys.lib
	echo fly8sys >$(RSP)
	echo y >>$(RSP)
        echo +drivers +console +timer +grmswin +misc +mswin +msubs & >>$(RSP)
	echo +stick +mouse; >>$(RSP)
	lib @$(RSP)
	del $(RSP)

$(COBJS):	$(HFILES)

msubs.obj:	msubsobj
		copy msubsobj msubs.obj

clean:
	-del *.exe
	-del *.obj
	-del *.lib
	-del *.rsp
        -del errs

raw:	clean
        -del build.bat
        -del stick.*
        -del timer.*
        -del config.h
        -del pc8254.h
        -del msubs*.*
        -del mouse.*
        -del makefile

