SHELL=/bin/sh


CC       = wcl386 /k65536
INCLUDES = -i=.\ -i=..\gen3 -i=\watcom\h
CFLAGS   = /p /4r /Oxt -DDEBUG
C = .

COBJS=obj\dag.obj obj\decl.obj obj\enode.obj obj\error.obj obj\expr.obj obj\init.obj obj\input.obj obj\lex.obj obj\main.obj obj\output.obj obj\profio.obj obj\simp.obj obj\stmt.obj obj\string.obj obj\sym.obj obj\tree.obj obj\types.obj

rcc.exe: $(COBJS) $(OBJS)
  wlink < linkfile
  copy rcc.exe ..\gen3\rcc.exe


.c.obj\obj :
  $(CC) $(INCLUDES) $(CFLAGS) -c $< -fo$*.obj

lex.obj:		$(C)/keywords.h

clean:
  del obj\*.obj
