VERSION = 20

#if THECOMPILER=GCC

OBJDIR = gccobj\ 
ARADD  = qs
CFLAGS = -O -I..\include -mshort

.s.o:
    jas.ttp -u -o$@ $<
    
#else
#abort not set up for this compiler!
#endif

.PATH.c = gemfuncs\
.PATH.s = gemfbind\
.PATH.o = $(OBJDIR)

#
# High level library functions...
#

OBJ03  = frmqchoi.o frmqerr.o  frmqmenu.o frmqtext.o frmquest.o
OBJ05  = frmerror.o frmverro.o frmprtf.o  frmvprtf.o
OBJ10  = frmnldia.o frmdsdia.o frmnlmen.o frmdsmen.o
OBJ13  = frmmenu.o  frmprogr.o frmenabl.o frmeflag.o frmdial.o
OBJ15  = frmdeskt.o frmconfi.o frmvfmt.o  frmnldsu.o frmmkmov.o
OBJ20  = fsldialo.o grfmblit.o grfblit.o  grfmouse.o
OBJ25  = rsccubtn.o rscrrbtn.o rscsxtyp.o
OBJ30  = rscgstr.o  rscsstr.o  rscgtree.o rsctrfix.o
OBJ35  = objflchg.o objstchg.o objclcal.o objppstr.o objtherm.o
OBJ40  = objmxud.o  objrbutl.o objxtutl.o objbmbtn.o objoxywh.o
OBJ45  = objtscro.o objnslid.o obj_draw.o objgspec.o objdxfin.o
OBJ50  = wndupdat.o aplvwork.o aplxinit.o aplmallo.o
OBJ55  = mnutbar.o  mnubar.o   exterror.o rcconfin.o rcptinre.o
OBJ60  = rcadjust.o rcvtog.o   rcgtov.o   rcscale.o  evnwbtn.o
OBJ65  = evnxmult.o frmxcent.o frmxdial.o winxget.o  winxcalc.o
OBJ70  = grfxdrag.o grfudsli.o wndtop.o   wcscrcal.o evnxtime.o
OBJ75  = rccopy.o   rcequal.o  rcinters.o rcunion.o

ALLOBJ = $(OBJ03) $(OBJ05) $(OBJ10) $(OBJ13) $(OBJ15) $(OBJ20) \
         $(OBJ25) $(OBJ30) $(OBJ35) $(OBJ40) $(OBJ45) $(OBJ50) \
         $(OBJ55) $(OBJ60) $(OBJ65) $(OBJ70) $(OBJ75)

#
# the library target...
#

$(LIB): $(ALLOBJ)
    pushdir $(OBJDIR)
    del   ..\$(LIB)
    $(AR) $(ARADD) ..\$(LIB) $(ALLOBJ)
    popdir

#
# other handy targets, invoked only when named on make command line...
#

archive:
    del gemfsc$(VERSION).lzh
    -lharc a -xpr gemfsc$(VERSION) *.c *.h *.s* *.mak *.prj *.wp *.doc *.rs*

arcupd:
    -lharc u -xpr gemfsc$(VERSION) *.c *.h *.s* *.mak *.prj *.wp *.doc *.rs*

distrib:
    -lharc a -xp gemfhs$(VERSION) distrib\*.* examples\*.*


