# makefile
# Copyright (c) 2000 Microsoft Corporation.  All rights reserved.

INCDIR	= ..\inc
DESTDIR	= .
INCS	= -I$(INCDIR)
LIBS	= user32.lib gdi32.lib kernel32.lib

!IFDEF DEBUG

C_FLAGS	= /Z7
L_FLAGS	= /DEBUG

!ELSE

C_FLAGS	=
L_FLAGS	=

!ENDIF


goal:	SDK.dll


SDK.obj:	$(INCDIR)\gauges.h				\
		SDK.cpp						\
		SDK.h						\
		SDK.Attitude.cpp					\
		SDK.Control_Surfaces.cpp				\
		SDK.Fuel.cpp					\
		SDK.Fuel_Selector.cpp				\
		SDK.Temperature.cpp				\
		SDK.Whiskey.cpp                                    \
		SDK.FlightMap.cpp
        cl $(C_FLAGS) -c $(INCS) SDK.cpp

SDK.res:	SDK.rc						\
		SDK.h						\
		res\SDK.Attitude.bg.BMP				\
		res\SDK.Attitude.card1.BMP			\
		res\SDK.Attitude.mask1.BMP			\
		res\SDK.Attitude.card2.BMP			\
		res\SDK.Attitude.mask2.BMP			\
		res\SDK.Control_Surfaces.bg.bmp			\
		res\SDK.Control_Surfaces.Ailerons.bmp		\
		res\SDK.Control_Surfaces.Elevator.bmp		\
		res\SDK.Control_Surfaces.Rudder.bmp		\
		res\SDK.Control_Surfaces.Trim.bmp		\
		res\SDK.Fuel.bg.bmp				\
		res\SDK.Fuel.needle.bmp				\
		res\SDK.Fuel_Selector.Off.BMP			\
		res\SDK.Fuel_Selector.Left.BMP			\
		res\SDK.Fuel_Selector.Right.BMP			\
		res\SDK.Fuel_Selector.Both.BMP			\
		res\SDK.Temperature.bg.bmp			\
		res\SDK.Temperature.F.bmp			\
		res\SDK.Temperature.C.bmp			\
		res\SDK.Whiskey.bg.BMP				\
		res\SDK.Whiskey.card.BMP			\
		res\SDK.Whiskey.mask.BMP			\
		res\SDK.FlightMap.BMP
        rc -r $(INCS) SDK.rc

SDK.dll:	SDK.obj						\
		SDK.res
        link $(L_FLAGS) /dll /out:$(DESTDIR)\SDK.dll SDK.obj SDK.res $(LIBS)

clean:
	del $(DESTDIR)\*.exp
	del $(DESTDIR)\*.dll
	del $(DESTDIR)\*.lib
	del *.obj
	del *.res

