#
#   Microsoft C v6.00ax makefile for grafbutn.exe
#
CFLAGS=-Gcsw2 -Od -W3 -Zp -Zi -EM

#Where:
#   -Gcsw2  - Pascal-style functions, no stack
#             checking, generate Windows epilog
#             and prolog, use 80286 instructions.
#   -Od     - Turn off optimizations (cause they
#             sometimes cause bugs).
#   -W3     - Warning level 3
#   -Zp     - pack structures on byte boundaries
#   -Zi     - generate debugging information
#   -EM     - Use DOS-extended version of compiler

MODEL   =s
WLIBS   = libw $(MODEL)libcew

APPNAME =grafbutn
OBJ     =$(APPNAME).obj

.rc.res:
        rc -r $*.rc

$(APPNAME).exe  : $(OBJ) $(APPNAME).res makefile $(APPNAME).def
        link $(LFLAGS) $(OBJ),,,$(WLIBS) $(LIBS),$(APPNAME).def
        rc $(APPNAME).res $(APPNAME).exe

$(APPNAME).res  : $(APPNAME).rc
