# Makefile for MEdit under DJGPP
#
# WARNING:
# If you are using a version of GRX higher than 2.0, you should install the
# patch 'newgrx.o' in the MGUI library and change GRXLIB definition.
# See file grxmgui.eng for detailed instructions
#

INC	=       ../include
MGUILIB =       ../lib/libmgui.a
GRXLIB	=	-lgrx20

PROG    =       medit.exe

OBJ     =       medit.o main.o search.o custom.o objattr.o

CFLAGS  =       -c -O -I$(INC)
CC      =       gcc

$(PROG):        $(OBJ) $(MGUILIB)
		$(CC) -s -o $(PROG) $(OBJ) $(MGUILIB) $(GRXLIB)
