# makefile for tearoff menu code
#
# uses cc.exe, available in file cc.zip in Library 7
# (R&D Publications) of form CLMFORUM on CompuServe.

APP  =demotear
OBJS =$(APP).obj

MODEL   =s
DEBUG   =-d
CCOPT   =$(DEBUG) -m$(MODEL)

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

.c.obj:
    cc -c $(CCOPT) -DSTRICT $*.c

all     : $(APP).exe

$(APP).exe    : $(OBJS) $(APP).res tearoff.dll
    cc $(CCOPT) $(OBJS) tearoff.lib

tearoff.obj : tearoff.c tearoff.h tearutil.h
    cc -c -wd $(CCOPT) $*.c

tearutil.obj : tearutil.c tearoff.h tearutil.h
    cc -c -wd $(CCOPT) $*.c

tearoff.dll : tearoff.obj tearutil.obj
    cc -wd $(CCOPT) tearoff.obj tearutil.obj

clean:
    rm *.obj *.exe *.map *.rsp *.~?? *.res *.pdb *.rws *.out *.tmp
