<../mkconfig

LIB=libwindows.a

# By default, Windows provides FooW and FooA versions of a function.
# FooW takes Rune strings, while FooA takes ANSI byte strings.
# The FooW routines, for the most part, don't work on Win95/98/ME
# (but do work on NT/2000/XP).  So that we can use Unicode everywhere,
# we provide our own versions of the functions.  We use the Rune
# version when possible, and fall back on the byte version (using UTF8)
# when not possible.

OFILES=\
	CallNamedPipe.$O\
	ChooseFont.$O\
	CreateDirectory.$O\
	CreateEvent.$O\
	CreateFile.$O\
	CreateFileMapping.$O\
	CreateFontIndirect.$O\
	CreateMutex.$O\
	CreateNamedPipe.$O\
	CreateProcess.$O\
	CreateSemaphore.$O\
	CreateWindowEx.$O\
	DefWindowProc.$O\
	DeleteFile.$O\
	DispatchMessage.$O\
	DrawText.$O\
#	EnumFontFamilies.$O\
	ExtTextOut.$O\
	FindExecutable.$O\
	FindFirstFile.$O\
	FindNextFile.$O\
	FindWindow.$O\
	FormatMessage.$O\
	FreeEnvironmentStrings.$O\
	GetCharWidth.$O\
	GetCommandLine.$O\
	GetComputerName.$O\
	GetCurrentDirectory.$O\
	GetDriveType.$O\
	GetEnvironmentStrings.$O\
	GetEnvironmentVariable.$O\
	GetFileAttributes.$O\
	GetFullPathName.$O\
	GetMessage.$O\
	GetModuleFileName.$O\
	GetModuleHandle.$O\
	GetTextFace.$O\
	GetUserName.$O\
	GetVersionEx.$O\
	GetVolumeInformation.$O\
	GetWindowLong.$O\
	LoadCursor.$O\
	LoadIcon.$O\
	LoadLibrary.$O\
	MessageBox.$O\
	MessageBoxEx.$O\
	MoveFile.$O\
	PostMessage.$O\
	PostThreadMessage.$O\
	ReadConsole.$O\
	RegCreateKey.$O\
	RegDeleteKey.$O\
	RegisterClass.$O\
	RegisterClassEx.$O\
	RegOpenKey.$O\
	RegQueryValue.$O\
	RegSetValueEx.$O\
	RemoveDirectory.$O\
	SendMessage.$O\
	SetClassLong.$O\
	SetCurrentDirectory.$O\
	SetEnvironmentVariable.$O\
	SetFileAttributes.$O\
	SetWIndowLong.$O\
	TextOut.$O\
	waveOutGetDevCaps.$O\
	win.$O\
	WNetEnumResource.$O\
	WNetGetUniversalName.$O\
	WNetOpenEnum.$O\
	WriteConsole.$O\
	WSASocket.$O\

HFILES=\
	$9pm/include/9pm/windows.h\

HERE=$9pm/src/libwindows/

<$9pm/src/cmd/mksyslib

