# Produces MSDOS executable.
# Links with PDPCLIB created by makefile.wcd.

CC=wcl
COPTS=-ecc -q -w -c -ml -zl -D__MSDOS__ -fpi87 -s -zdp -zu -Ihashtab -Icpplib\include -I..\pdpclib

all: clean pdmake.exe

pdmake.exe: main.obj read.obj variable.obj xmalloc.obj rule.obj hashtab\hashtab.obj
  wlink File main.obj,read.obj,variable.obj,xmalloc.obj,rule.obj,hashtab.obj Name pdmake.exe Form dos Library ..\pdpclib\watcom.lib Option quiet

.c.obj:
  $(CC) $(COPTS) $<

clean:
  rm -f *.obj pdmake.exe
