!ifndef C0X
! ifndef MAK
!  include ..\srcpath
! else
!  include $(MAK)\srcpath
! endif
!endif

!ifndef BIN
! ifdef SRC
BIN=$(SRC)
! else
BIN=.
! endif
!endif

!if $(DEBUG)
MAP_FILE=$(NAME).map
!endif

$(BIN)\$(NAME).exe: $(OBJS) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
!ifdef __BCC__
 $(LC) $(LFLAGS) @&&|
$(C0X) $(OBJS) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
$(NAME)
$(MAP_FILE)
$(CX)
|
!endif
!ifdef __MCC__
 $(LC) @<<
$(C0X) +
$(OBJS: = +^
) +
$(OBJ1: = +^
) +
$(OBJ2: = +^
) +
$(OBJ3: = +^
) +
$(OBJ4: = +^
)
$@
$(MAP_FILE)
$(CX)
$(DEF_FILE) $(LFLAGS);
<<
!endif
!ifdef __WCC__
 $(LC) $(LFLAGS) @<<
Name $@
File { $(C0X) $(OBJS) $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) }
Library $(CX).lib
OPtion NODefaultlibs
OPtion NOCaseexact
System DOS
<<
!endif
 @del *.obj

clean:
 del *.obj
 del $(NAME).exe
 del $(NAME).map
