# Micro-X - X server for DOS
# Copyright (C) 1992 StarNet Communications Corp.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
# 
# StarNet Communications Corp.
# 550 Lakeside Dr. #3
# Sunnyvale CA 94086 US
# http://www.starnet.com
# x-dos@starnet.com

OBJS1 =	cbrt.obj miarc.obj mibitblt.obj mibstore.obj miclipn.obj \
	micursor.obj midash.obj midispcu.obj mieq.obj
OBJS2 = miexpose.obj mifillar.obj mifillrc.obj mifpolyc.obj miglblt.obj \
	miinitex.obj mipointe.obj mipoly.obj mipolyco.obj
OBJS3 = mipolyge.obj mipolypn.obj mipolyre.obj mipolyse.obj mipolyte.obj \
	mipolyut.obj mipushpx.obj miregion.obj miscrini.obj
OBJS4 = mispans.obj misprite.obj mivaltre.obj miwidear.obj miwideli.obj \
	miwindow.obj mizerarc.obj mizerlin.obj

OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)

INCLUDES = -I..\..\include;..\..\..\..
OPT =-zq
CFLAGS = $(INCLUDES) $(OPT)
MFLAGS=/MX /T
LIBFLAGS=-c
CC = wcc386p
LIB = wlib

mi.lib: $(OBJS)
	$(LIB) $(LIBFLAGS) -n mi +$(OBJS1)
	$(LIB) $(LIBFLAGS) mi +$(OBJS2)
	$(LIB) $(LIBFLAGS) mi +$(OBJS3)
	$(LIB) $(LIBFLAGS) mi +$(OBJS4)

.c.obj:
	$(CC) $(CFLAGS) $*.c
