# Makefile to compile Plain Vanilla Posting Program 3.0
# with Borland C/C++ under Windows 98

all : post.exe guipost.exe

BCDIR = C:\PROGRA~1\BORLAND\CBUILDER5
LINK = ILINK32 -c -m -s -L$(BCDIR)\LIB C0X32
LIBS = IMPORT32 CW32MT
INCDIR = $(BCDIR)\INCLUDE
WINLINK = ILINK32 -aa -c -L$(BCDIR)\LIB C0W32

OBJS = post.obj actvar.obj dollar.obj xdate.obj gstring.obj \
       htab.obj general.obj

post.exe : $(OBJS)
  $(LINK) $(OBJS), post, post, $(LIBS)

.cpp.obj:
  BCC32 -j5 -c -x- -RT- -I$(INCDIR) $<

guipost.exe : guipost.obj guipost.res
  $(WINLINK) guipost, guipost, NUL, IMPORT32 CW32MT,, guipost

.rc.res:
  BRC32 -32 -r $<

guipost.obj : guipost.cpp
  BCC32 -j5 -c -RT- -x- -tW -I$(INCDIR) guipost.cpp

