# UUPC/extended makefile for IBM C Set++ under OS/2

# *--------------------------------------------------------------------*
# *   Changes Copyright (c) 1989-1994 by Kendra Electronic             *
# *   Wonderworks.                                                     *
# *                                                                    *
# *   All rights reserved except those explicitly granted by the       *
# *   UUPC/extended license agreement.                                 *
# *--------------------------------------------------------------------*

#       $Id: iccmake 1.7 1994/03/05 21:03:46 ahd Exp $
#
#       $Log: iccmake $
#       Revision 1.7  1994/03/05  21:03:46  ahd
#       Change del commands to bypass undelete cache
#
#       Revision 1.6  1994/02/21  16:37:38  ahd
#       Clean out MSC DOS vs OS/2 hacks
#       Include specific rules for building based on header updates
#
#       Revision 1.5  1994/02/20  19:04:00  ahd
#       IBM C/Set 2 Conversion, memory leak cleanup
#
#       Revision 1.4  1994/02/14  01:02:48  ahd
#       Add Evam Champion's build params as comments
#
#       Revision 1.3  1994/02/13  14:00:46  rommel
#       Cleanup for OS/2 specific make
#
#       Revision 1.2  1994/01/18  13:27:34  ahd
#       Go to version 1.12i
#       Add compile of dcpepkt.c to UUCICO
#
#       Revision 1.1  1994/01/02  04:32:21  ahd
#       Initial revision
#

.SUFFIXES: .c .asm .zip .obj

VERS = 1.12i

# *--------------------------------------------------------------------*
# *   Various directories.  The TEMP directory is not defined here;    *
# *   rather we expect it to be defined as part of the user's          *
# *   environment variables                                            *
# *--------------------------------------------------------------------*

MAIL    = $(SRCSLASH)mail
UTIL    = $(SRCSLASH)util
UUCP    = $(SRCSLASH)uucp
RNEWS   = $(SRCSLASH)rnews
UULIB   = $(SRCSLASH)lib
TEST    = $(SRCSLASH)test
UUCICO  = $(SRCSLASH)uucico
UUTRAF  = $(SRCSLASH)uutraf

OBJ     = $(SRCSLASH)objicc
PRODP   = \uupc\os2bin32
SCRIPTS = $(SRCSLASH)scripts

# *--------------------------------------------------------------------*
# *                        Various file names                          *
# *--------------------------------------------------------------------*

ZIPPREFIXX=UPC$(VERS:.=)
ZIPPREFIX=$(SRCSLASH)$(VERS)\$(ZIPPREFIXX:C1=C)

OS2ZIPV2 = $(ZIPPREFIX)21.zip
OS2ZIPV3 = $(ZIPPREFIX)22.zip
OS2ZIPV4 = $(ZIPPREFIX)23.zip
LIBCOMM  = $(TMP)\uupcicc.lib
LIBOS2   = $(TMP)\uupcos2.lib
DEFFILE  = $(TMP)\uupcos2.def
OS2LIBS  = $(LIBCOMM) $(LIBOS2)

# *--------------------------------------------------------------------*
# *        The names of various object files that we create.           *
# *--------------------------------------------------------------------*

TIMESTMP = $(OBJ)\timestmp.obj
LIBLIST = $(OBJ)\active.obj \
          $(OBJ)\arbmath.obj $(OBJ)\arpadate.obj $(OBJ)\bugout.obj\
          $(OBJ)\chdir.obj $(OBJ)\checkptr.obj $(OBJ)\configur.obj\
          $(OBJ)\catcher.obj $(OBJ)\dater.obj $(OBJ)\expath.obj\
          $(OBJ)\export.obj $(OBJ)\filebkup.obj $(OBJ)\fopen.obj $(OBJ)\getargs.obj\
          $(OBJ)\getopt.obj $(OBJ)\getseq.obj $(OBJ)\hostable.obj\
          $(OBJ)\importng.obj $(OBJ)\dos2unix.obj  $(OBJ)\execute.obj \
          $(OBJ)\hostatus.obj $(OBJ)\hostrset.obj $(OBJ)\usrcatch.obj \
          $(OBJ)\kanjicnv.obj $(OBJ)\lock.obj $(OBJ)\logger.obj\
          $(OBJ)\mkdir.obj $(OBJ)\mkfilenm.obj $(OBJ)\mkmbox.obj\
          $(OBJ)\mktempnm.obj $(OBJ)\normaliz.obj $(OBJ)\printmsg.obj\
          $(OBJ)\pushpop.obj $(OBJ)\readnext.obj $(OBJ)\rename.obj\
          $(OBJ)\security.obj $(OBJ)\stater.obj $(OBJ)\strpool.obj\
          $(OBJ)\usertabl.obj $(OBJ)\validcmd.obj $(TIMESTMP)

LIBOS2LIST= $(OBJ)\ndiros2.obj $(OBJ)\printerr.obj $(OBJ)\ssleep.obj\
            $(OBJ)\safeio.obj $(OBJ)\safeout.obj $(OBJ)\scrsize2.obj\
            $(OBJ)\trumpet.obj $(OBJ)\import.obj  $(OBJ)\pos2err.obj

# *--------------------------------------------------------------------*
# *             Object file lists for specific programs                *
# *--------------------------------------------------------------------*

MAILCOMOBJ = $(OBJ)\mail.obj $(OBJ)\address.obj $(OBJ)\mailblib.obj\
          $(OBJ)\maillib.obj $(OBJ)\mailsend.obj \
          $(OBJ)\alias.obj
MAILPOBJ  = $(MAILCOMOBJ) $(OBJ)\mlib.obj

UUCPOBJ = $(OBJ)\address.obj $(OBJ)\uucp.obj

RNEWSOBJ = $(OBJ)\rnews.obj $(OBJ)\history.obj $(OBJ)\idx.obj $(OBJ)\hdbm.obj
EXPIREOBJ = $(OBJ)\expire.obj $(OBJ)\history.obj $(OBJ)\idx.obj $(OBJ)\hdbm.obj
GENHISTOBJ = $(OBJ)\genhist.obj $(OBJ)\history.obj $(OBJ)\idx.obj $(OBJ)\hdbm.obj
INEWSOBJ = $(OBJ)\inews.obj

RMAILOBJ = $(OBJ)\address.obj $(OBJ)\rmail.obj $(OBJ)\sysalias.obj \
           $(OBJ)\deliver.obj

UUCICOOBJ1 = $(OBJ)\checktim.obj $(OBJ)\dcp.obj $(OBJ)\dcpepkt.obj \
             $(OBJ)\dcpfpkt.obj \
             $(OBJ)\dcpgpkt.obj $(OBJ)\dcplib.obj $(OBJ)\dcpstats.obj\
             $(OBJ)\dcpxfer.obj
UUCICOOBJ2 = $(OBJ)\modem.obj $(OBJ)\script.obj $(OBJ)\uucico.obj
UUCICOPOBJ3 = $(OBJ)\dcpsys.obj $(OBJ)\dcptpkt.obj \
              $(OBJ)\nbstime.obj $(OBJ)\ulibos2.obj\
              $(OBJ)\commlib.obj $(OBJ)\ulibnmp.obj\
              $(OBJ)\prtyos2.obj $(OBJ)\suspend2.obj

RNOBJ1=$(OBJ)\addng.obj $(OBJ)\art.obj $(OBJ)\artio.obj $(OBJ)\artsrch.obj\
       $(OBJ)\backpage.obj $(OBJ)\bits.obj $(OBJ)\cheat.obj $(OBJ)\final.obj
RNOBJ2=$(OBJ)\head.obj $(OBJ)\help.obj $(OBJ)\init.obj $(OBJ)\intrp.obj\
       $(OBJ)\kfile.obj $(OBJ)\last.obj $(OBJ)\ng.obj $(OBJ)\ngdata.obj
RNOBJ3=$(OBJ)\ngsrch.obj $(OBJ)\ngstuff.obj $(OBJ)\only.obj $(OBJ)\rcln.obj\
       $(OBJ)\rcstuff.obj $(OBJ)\respond.obj $(OBJ)\rn.obj $(OBJ)\search.obj\
       $(OBJ)\sw.obj $(OBJ)\term.obj $(OBJ)\util.obj $(OBJ)\uudecode.obj \
       $(OBJ)\rnpclib.obj
RNOBJ=$(RNOBJ1) $(RNOBJ2) $(RNOBJ3)

NEWSETUPOBJ=$(OBJ)\newsetup.obj $(OBJ)\rnlib.obj

UUSUBOBJ = $(OBJ)\uusub.obj

UUSTATOBJ = $(OBJ)\uustat.obj

UUTRAFOBJ = $(OBJ)\uutraf.obj $(OBJ)\version.obj $(OBJ)\alist.obj\
            $(OBJ)\list.obj $(OBJ)\llist.obj

UUXQTOBJ = $(OBJ)\uuxqt.obj

UUXOBJ = $(OBJ)\uux.obj

POLLPOBJ  = $(OBJ)\uupoll.obj

# *--------------------------------------------------------------------*
# *      Lists of programs to built for various pseudo targets         *
# *--------------------------------------------------------------------*

ICONS   = $(PRODP)\mail.ico $(PRODP)\uucico.ico
INSTALLP =$(INSTALLP2) $(INSTALLP3) $(INSTALLP4) $(INSTALLPS)
INSTALLP2=$(PRODP)\mail.exe $(PRODP)\rmail.exe $(PRODP)\uucico.exe\
          $(PRODP)\uuxqt.exe
INSTALLP3=$(PRODP)\uucp.exe $(PRODP)\uuname.exe $(PRODP)\uupoll.exe\
          $(PRODP)\uustat.exe $(PRODP)\uusub.exe $(PRODP)\uuport.exe\
          $(PRODP)\uux.exe $(FMT) $(PRODP)\gensig.exe $(PRODP)\novrstrk.exe \
          $(PRODP)\fmt.exe
INSTALLPS=$(PRODP)\su.cmd $(PRODP)\uuio.cmd $(PRODP)\uuclean.cmd\
          $(PRODP)\waiting.cmd $(PRODP)\mailchek.cmd $(PRODP)\getuupc.cmd
INSTALLP4=$(PRODP)\uutraf.exe $(PRODP)\rnews.exe $(PRODP)\expire.exe\
          $(PRODP)\genhist.exe $(PRODP)\inews.exe
#         $(PRODP)\rn.exe $(PRODP)\newsetup.exe

# *--------------------------------------------------------------------*
# *                   And, of course, our makefile                     *
# *--------------------------------------------------------------------*

MAKEFILE = $(SRCSLASH)iccmake
README=    docs\00readme.now

# *--------------------------------------------------------------------*
# *                      C compiler and options                        *
# *--------------------------------------------------------------------*

!if "$(DBGOPT)" == ""
#       Use this for debugging
# DBGOPT  = -Ti -DUDEBUG -D__DEBUG_ALLOC__
DBGOPT  = -Ti -DUDEBUG
#       Use this for production
DBGOPT = -O
!endif

#       icc -q -Sp4 -G4 -Gs -O'
#       icc -q -Sp4 -G4 -Gs -O -B"/align:4 /exepack /pm:vio
#                       /base:0x10000 /nologo" -Fe $@
CC      = icc -q -Ss+ -Se  -Gd $(DBGOPT)
CCOPT   = -I$(UULIB) -c -Fi -Si -Fo$@
LDOPT   = -Ti -Fe  $@
#LDOPT   = dde4xtra.obj -Fe $@

{$(UULIB)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(MAIL)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(RN)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(RNEWS)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(TEST)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(UUCICO)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(UUCP)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(UTIL)}.c{$(OBJ)}.obj:
        $(CC) $(CCOPT) $<

{$(UUTRAF)}.c{$(OBJ)}.obj:
        $(CC) -DSYSVR3 -DUUPC -I$(UUTRAF) $(CCOPT) $<

# *--------------------------------------------------------------------*
# *            ZIP, for creating the distributed archive               *
# *--------------------------------------------------------------------*

ZIP     = zip
ZIPOPT1 = -o -9 -u $@ -@
ZIPOPT2 = -j $(ZIPOPT1)

# *--------------------------------------------------------------------*
# *                Begin rules for building modules.                   *
# *--------------------------------------------------------------------*

# *--------------------------------------------------------------------*
# *        The first definition is the one built by default.           *
# *--------------------------------------------------------------------*

# *--------------------------------------------------------------------*
# *   testp builds the basic OS/2 UUPC modules in the source           *
# *   directory.                                                       *
# *--------------------------------------------------------------------*

testP:  $(OBJ) mailp.exe rmailp.exe uucicop.exe\
        uupollp.exe uucpp.exe uusubp.exe uustatp.exe uuxp.exe uuxqtp.exe\
        uunamep.exe uuportp.exe gensigp.exe expirep.exe rnewsp.exe\
        genhistp.exe inewsp.exe
#       rnp.exe newsetpp.exe
!if  "$(LIBDIR)" == "$(TMP)"
        - $(ERASE) $(LIBCOMM)
        - $(ERASE) $(LIBOS2)
!endif

# *--------------------------------------------------------------------*
# *   Prod build the basic modules and then moves them to $(PROD)      *
# *--------------------------------------------------------------------*

prodp:  $(OBJ) $(INSTALLP) regen
!if  "$(LIBDIR)" == "$(TMP)"
        - $(ERASE) $(LIBCOMM)
        - $(ERASE) $(LIBOS2)
!endif


installp:  $(OBJ) $(OS2ZIPV2) $(OS2ZIPV3)  $(OS2ZIPV4)
!if  "$(LIBDIR)" == "$(TMP)"
        - $(ERASE) $(LIBCOMM)
        - $(ERASE) $(LIBOS2)
!endif

zip:    installp

# *--------------------------------------------------------------------*
# *          Do a purge of various temporary output files.             *
# *--------------------------------------------------------------------*

clean:  xclean
        - del /f $(SRCSLASH)*.bak
        - del /f *.map

# *--------------------------------------------------------------------*
# *      Do a clean of just executable files and related files.        *
# *--------------------------------------------------------------------*

xclean:
        - del /f $(OBJ)\*.obj
        - del /f $(OBJ)\*.exe
        - del /f $(TMP)\*.lib
        - del /f $(SRCSLASH)*.obj
        - del /f $(SRCSLASH)*.exe

# *--------------------------------------------------------------------*
# *             Protected mode (OS/2) production modules               *
# *--------------------------------------------------------------------*

$(PRODP)\expire.exe: expirep.exe
        - del /f $@
        move $? $@

$(PRODP)\genhist.exe: genhistp.exe
        - del /f $@
        move $? $@

$(PRODP)\inews.exe: inewsp.exe
        - del /f $@
        move $? $@

$(PRODP)\fmt.exe: fmtp.exe
        - del /f $@
        move $? $@

$(PRODP)\gensig.exe: gensigp.exe
        - del /f $@
        move $? $@

$(PRODP)\mail.exe: mailp.exe
        - del /f $@
        move $? $@

$(PRODP)\novrstrk.exe: novrstrp.exe
        - del /f $@
        move $? $@

$(PRODP)\rmail.exe: rmailp.exe
        - del /f $@
        move $? $@

$(PRODP)\rnews.exe: rnewsp.exe
        - del /f $@
        move $? $@

$(PRODP)\uucp.exe: uucpp.exe
        - del /f $@
        move $? $@

$(PRODP)\uucico.exe: uucicop.exe
        - del /f $@
        move $? $@

$(PRODP)\uupoll.exe: uupollp.exe
        - del /f $@
        move $? $@

$(PRODP)\uuport.exe: uuportp.exe
        - del /f $@
        move $? $@

$(PRODP)\uusub.exe: uusubp.exe
        - del /f $@
        move $? $@

$(PRODP)\uustat.exe: uustatp.exe
        - del /f $@
        move $? $@

$(PRODP)\uutraf.exe: uutrafp.exe
        - del /f $@
        move $? $@

$(PRODP)\uuxqt.exe: uuxqtp.exe
        - del /f $@
        move $? $@

$(PRODP)\uux.exe: uuxp.exe
        - del /f $@
        move $? $@

$(PRODP)\uuname.exe: uunamep.exe
        - del /f $@
        move $? $@

$(PRODP)\uuio.cmd: $(SCRIPTS)\uuio.cmd
        copy $? $@

$(PRODP)\waiting.cmd: $(SCRIPTS)\waiting.cmd
        copy $? $@

$(PRODP)\su.cmd: $(SCRIPTS)\su.cmd
        copy $? $@

$(PRODP)\mailchek.cmd: $(SCRIPTS)\mailchek.cmd
        copy $? $@

$(PRODP)\uuclean.cmd: $(SCRIPTS)\uuclean.cmd
        copy $? $@

$(PRODP)\getuupc.cmd: $(SCRIPTS)\getuupc.cmd
        copy $? $@

# *--------------------------------------------------------------------*
# *               The commands to actually link files                  *
# *--------------------------------------------------------------------*

expirep.exe: $(DEFFILE) $(EXPIREOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(EXPIREOBJ) $(OS2LIBS) $(DEFFILE)

genhistp.exe: $(DEFFILE) $(GENHISTOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(GENHISTOBJ) $(OS2LIBS) $(DEFFILE)

inewsp.exe: $(DEFFILE) $(INEWSOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(INEWSOBJ) $(OS2LIBS) $(DEFFILE)

fmtp.exe: $(DEFFILE) $(OBJ)\fmt.obj $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(OBJ)\fmt.obj $(OS2LIBS) $(DEFFILE)

gensigp.exe:     $(DEFFILE) $(OBJ)\gensig.obj $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(OBJ)\gensig.obj $(OS2LIBS) $(DEFFILE)

novrstrp.exe:     $(DEFFILE) $(OBJ)\novrstrk.obj $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(OBJ)\novrstrk.obj $(OS2LIBS) $(DEFFILE)

mailp.exe:         $(DEFFILE) $(MAILPOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(MAILPOBJ) $(OS2LIBS) $(DEFFILE)

newsetpp.exe:     $(DEFFILE) $(NEWSETUPOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(NEWSETUPOBJ) $(OS2LIBS) $(DEFFILE)

rnp.exe:        $(DEFFILE) $(RNOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(RNOBJ1) $(RNOBJ2) $(RNOBJ3) \
          $(OS2LIBS) $(DEFFILE)

rmailp.exe:     $(DEFFILE) $(RMAILOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(RMAILOBJ) $(OS2LIBS) $(DEFFILE)

rnewsp.exe:     $(DEFFILE) $(RNEWSOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(RNEWSOBJ) $(OS2LIBS) $(DEFFILE)

uucicop.exe:      $(DEFFILE) $(UUCICOOBJ1) $(UUCICOOBJ2) $(UUCICOPOBJ3) \
                  $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUCICOOBJ1) $(UUCICOOBJ2) $(UUCICOPOBJ3) \
          $(OS2LIBS) $(DEFFILE)

uucpp.exe:     $(DEFFILE) $(UUCPOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUCPOBJ) $(OS2LIBS) $(DEFFILE)

uunamep.exe:     $(DEFFILE) $(OBJ)\uuname.obj $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(OBJ)\uuname.obj $(OS2LIBS) $(DEFFILE)

uupollp.exe:     $(DEFFILE)  $(POLLPOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(POLLPOBJ) $(OS2LIBS) $(DEFFILE)

uuportp.exe:     $(DEFFILE)  $(OBJ)\uuport.obj $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(OBJ)\uuport.obj $(OS2LIBS) $(DEFFILE)

uustatp.exe:     $(DEFFILE)  $(UUSTATOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUSTATOBJ) $(OS2LIBS) $(DEFFILE)

uusubp.exe:      $(DEFFILE) $(UUSUBOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUSUBOBJ) $(OS2LIBS) $(DEFFILE)

uutrafp.exe:      $(DEFFILE) $(UUTRAFOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUTRAFOBJ) $(OS2LIBS) $(DEFFILE)

uuxp.exe:      $(DEFFILE) $(UUXOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUXOBJ) $(OS2LIBS) $(DEFFILE)

uuxqtp.exe:      $(DEFFILE) $(UUXQTOBJ) $(LIBCOMM) $(LIBOS2)
        $(CC) $(LDOPT) $(UUXQTOBJ) $(OS2LIBS) $(DEFFILE)

# *--------------------------------------------------------------------*
# *                        Clean up after rn                           *
# *--------------------------------------------------------------------*

rn-clean:
                - del /f $(RNOBJ)
                - del /f rnp.exe

# *--------------------------------------------------------------------*
# *                          The zip files                             *
# *--------------------------------------------------------------------*

$(OS2ZIPV2):  $(INSTALLP2) $(README)
       - mkdir $(SRCSLASH)$(VERS)
       -12 $(ZIP) $(ZIPOPT2) < <<
       $(?: =^
       )
<<
       $(ZIP) -z $@  < <<
Kendra Electronic Wonderworks: UUPC/extended $(VERS) OS/2 executables (1 of 3)

Changes and Compilation Copyright (c) 1989-1994 by Kendra Electronic
Wonderworks.  May be distributed freely if original source and documentation
files are included.  Please direct all questions on UUPC/extended to
help@kew.com.
<<

$(OS2ZIPV3):  $(INSTALLP3) $(INSTALLPS) $(README)
       - mkdir $(SRCSLASH)$(VERS)
       -12 $(ZIP) $(ZIPOPT2) < <<
       $(?: =^
       )
<<
       $(ZIP) -z $@  < <<
Kendra Electronic Wonderworks: UUPC/extended $(VERS) OS/2 executables (2 of 3)

Changes and Compilation Copyright (c) 1989-1994 by Kendra Electronic
Wonderworks.  May be distributed freely if original source and documentation
files are included.  Please direct all questions on UUPC/extended to
help@kew.com.
<<

$(OS2ZIPV4):  $(INSTALLP4) $(README)
       - mkdir $(SRCSLASH)$(VERS)
       -12 $(ZIP) $(ZIPOPT2) < <<
       $(?: =^
       )
<<
       $(ZIP) -z $@  < <<
Kendra Electronic Wonderworks: UUPC/extended $(VERS) OS/2 executables (3 of 3)

Changes and Compilation Copyright (c) 1989-1994 by Kendra Electronic
Wonderworks.  May be distributed freely if original source and documentation
files are included.  Please direct all questions on UUPC/extended to
help@kew.com.
<<

# *--------------------------------------------------------------------*
# *                    Build the object libraries                      *
# *--------------------------------------------------------------------*

$(LIBCOMM): $(LIBLIST)
        - del /f $@
        lib /noignorecase $@ $(LIBLIST);

$(LIBOS2): $(LIBOS2LIST)
        - del /f $@
        lib /noignorecase $@ $(LIBOS2LIST);

# *--------------------------------------------------------------------*
# *     The timestamp module has a reference to this MAKEFILE,         *
# *     which insures whenever we change the version number the        *
# *     time stamp gets re-generated.                                  *
# *--------------------------------------------------------------------*

$(TIMESTMP): $(UULIB)\timestmp.c $(UULIB)\lib.h $(UULIB)\timestmp.h\
        $(UULIB)\win32ver.h \
        $(MAKEFILE) $(REGEN)
        $(CC) $(CCOPT) $(UULIB)\$(@B).c

# *--------------------------------------------------------------------*
# *     Force a regeneration of the time stamp/version module.         *
# *--------------------------------------------------------------------*

regen:  $(UULIB)\timestmp.c
        - del /f $(OBJ)\timestmp.obj

$(OBJ):
        - mkdir $(OBJ)

$(DEFFILE):     $(MAKEFILE)
       copy << $@
name windowcompat newfiles
Description 'UUPC/extended $(VERS), Changes Copyright (c) 1989-1994 Kendra Electronic Wonderworks, All Rights Reserved'
stacksize 0x80000
<<

!include mscmake.inc
