#
# object module lists for GemFast...
#   This makefile intended to be used via #include only.
#   The parent makefile must set up the appropriate memory model
#   macros, .PATH.c macro, and a THELIB= macro that names the
#   output library, before it #includes this file.
#

#if THECOMPILER=GCC
#if LONGINT=1
#abort Not set up for GCC 32-bit version yet!
#endif
#endif

#
# aes modules...
#

ANOTE   = aes@note.o
AAP01   = aesappl1.o aesappl2.o
AEV01   = aesevnt1.o aesevnt2.o aesevnt3.o
AEV02   = aesevnt4.o aesevnt5.o aesevnt6.o
AFM01   = aesform1.o aesform2.o aesform3.o
AMN01   = aesmenu1.o aesmenu2.o
AFS01   = aesfsel1.o aesfsel2.o aesfsel3.o aesfsel4.o aesfsimu.o
AGR01   = aesgraf1.o aesgraf2.o aesgraf3.o aesgraf4.o aesgraf5.o
AOB01   = aesobjc1.o aesobjc2.o
ARS01   = aesrsrc1.o aesrsrc2.o
ASH01   = aesshel1.o aesshel2.o aesscrp.o
AWN01   = aeswind1.o aeswind2.o
ACOMN   = aescomn.o

AESOBJ  = $(ANOTE) $(AAP01) $(AEV01) $(AEV02) $(AFM01) $(AMN01) $(AFS01) \
          $(AGR01) $(AOB01) $(ARS01) $(ASH01) $(AWN01) $(ACOMN)

#
# vdi modules...
#

VOB01   = varcpie.o    vbar.o       vcellary.o   vcircle.o    vcontour.o
VOB02   = vcurtext.o   vdspcur.o    vellipse.o   vescapes.o   vextimev.o
VOB03   = vexvecto.o   vfillare.o   vgchar.o     vqgdos.o     vgetpix.o
VOB04   = vgtext.o     vinstrin.o   vjustify.o   vlarcpie.o   vlocator.o
VOB05   = voutwind.o   vpline.o     vpmarker.o   vqchcell.o   vqcolor.o
VOB06   = vqcuradd.o   vqextnd.o    vqfattr.o    vqinmode.o   vqkeys.o
VOB07   = vqlattr.o    vqmattr.o    vqmouse.o    vqtattr.o    vqtextnt.o
VOB08   = vqtfinfo.o   vqtname.o    vqtwidth.o   vrbox.o      vrcpyfm.o
VOB09   = vrecfl.o     vrqchoic.o   vrtrnfm.o    vscform.o    vsclip.o
VOB10   = vscolor.o    vescape1.o   vsetattr.o   vsfudpat.o   vshowc.o
VOB11   = vsinmode.o   vslends.o    vslwidth.o   vsmchoic.o   vsmheigh.o
VOB12   = vspalett.o   vstalign.o   vstfonts.o   vstheigh.o   vstpoint.o
VOB13   = vvaluato.o   vwkstatn.o   vdi@note.o   vmextent.o   vmpagesz.o
VOB14   = vmcoords.o   valphatx.o   vmfilenm.o   vqpfilm.o    vbitimag.o
VOB15   = vwrtmeta.o   vtaxis.o     vqcellar.o   vqdimens.o   vqscan.o
VOBLAST = voutpxy.o    vstrstak.o   vdicomn.o # these MUST be last!

VDIOBJ = $(VOB01) $(VOB02) $(VOB03) $(VOB04) $(VOB05) $(VOB06) $(VOB07) \
         $(VOB08) $(VOB09) $(VOB10) $(VOB11) $(VOB12) $(VOB13) $(VOB14) \
         $(VOB15) $(VOBLAST)

#
# GemFast high-level function modules...
#

HLLOBJ = \
    frmqchoi.o frmqerr.o  frmqmenu.o frmqtext.o frmquest.o \
    frmerror.o frmverro.o frmprtf.o  frmvprtf.o frmnldia.o \
    frmdsdia.o frmnlmen.o frmdsmen.o frmmenu.o  frmprogr.o \
    frmenabl.o frmeflag.o frmdial.o  frmdeskt.o frmconfi.o \
    frmvfmt.o  frmnldsu.o frmmkmov.o fsldialo.o            \
    rsccubtn.o rscrrbtn.o rscsxtyp.o rscgstr.o  rscsstr.o  \
    rscgtree.o rsctrfix.o                                  \
    xobtherm.o xobxform.o xobtscro.o xobnslid.o xob_draw.o \
    objflchg.o objstchg.o objclcal.o objppstr.o objrbutl.o \
    objxtutl.o objbmbtn.o objoxywh.o objgspec.o objdxfin.o \
    objgtype.o                                             \
    mnutbar.o  mnubar.o                                    \
    grfmblit.o grfblit.o  grfmouse.o grfudsli.o            \
    aplvwork.o aplxinit.o aplmallo.o                       \
    wndupdat.o wndtop.o   evnwbtn.o                        \
    evnxtime.o evnxmult.o frmxcent.o frmxdial.o winxget.o  \
    winxcalc.o grfxdrag.o                                  \
    exterror.o rcconfin.o rcptinre.o rcadjust.o rcvtog.o   \
    rcgtov.o   rcscale.o  wcscrcal.o rccopy.o   rcequal.o  \
    rcinters.o rcunion.o

#
# all the object modules in one nice tidy name...
#

#if THECOMPILER=LC
ALLOBJ = $(HLLOBJ)
#else
ALLOBJ = $(HLLOBJ) $(AESOBJ) $(VDIOBJ)
#endif

#
# targets...
#

$(THELIB): $(ALLOBJ)
    $(AR) $(ARREP) $(ARFLAGS) $@ $?

formdemo.prg: formdemo.o
    $(LINK)

formdemo.o: ..\examples\formdemo\formdemo.c

cleanup:
    del *$(LIBSUFFIX) *.o

force: cleanup $(THELIB)

