!ifndef MDL
MDL=c
!endif
!ifndef MINC
MINC=../../make
!endif
!include $(MINC)/srcpath
SRC=$(SUB)\src\clib\$(SUBD)

makefile: $(OBJS) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
	@del *.obj
	@if exist $(LIBR).BAK del $(LIBR).BAK
	@if exist $(LIBD).BAK del $(LIBD).BAK

.c.obj:
!ifdef WATCOM
	@if exist $*.obj del $*.obj
	$(CC) $(CCFD) $(SRC)\$*.c
	$(LD) $(LIBD) -+$(SRC)\$*
!else
	@if exist $*.obj del $*.obj
	$(CC) $(CCFR) $*.c
	$(LR) $(LIBR) -+$*
!endif
.asm.obj:
!ifdef WATCOM
	@if exist $*.obj del $*.obj
	$(AC) $(ACFD) $(SRC)\$*.asm
	$(LD) $(LIBD) -+$(SRC)\$*
!else
	@if exist $*.obj del $*.obj
	$(AC) $(ACFR) $*.asm
	$(LR) $(LIBR) -+$*
!endif

