2001-11-14 00:36:45 +01:00
|
|
|
# These are generic definitions
|
|
|
|
|
2001-11-04 22:43:35 +01:00
|
|
|
#**********************************************************************
|
|
|
|
#* TARGET : we create a %TARGET%.sys file
|
|
|
|
#* TARGETOPT : options, handled down to the compiler
|
|
|
|
#**********************************************************************
|
|
|
|
|
|
|
|
TARGETOPT=-1-
|
|
|
|
|
|
|
|
!if $(XCPU) == 186
|
|
|
|
TARGETOPT=-1
|
|
|
|
!endif
|
|
|
|
!if $(XCPU) == 386
|
|
|
|
TARGETOPT=-3
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(XFAT) == 32
|
|
|
|
ALLCFLAGS=$(ALLCFLAGS) -DWITHFAT32
|
|
|
|
!endif
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
NASM=$(XNASM)
|
2001-11-04 22:43:35 +01:00
|
|
|
!if $(XCPU) == 386
|
|
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/ -DI386
|
|
|
|
!else
|
|
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/
|
|
|
|
!endif
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
LINK=$(XLINK)
|
|
|
|
|
2001-11-04 22:43:35 +01:00
|
|
|
PATCHOBJ=@rem
|
|
|
|
INITPATCH = CODE=INIT _DATA=IDATA DATA=ID BSS=ID DGROUP=IGROUP CONST=IC
|
|
|
|
STDPATCH = CODE=HMA CONST=DCONST
|
|
|
|
DYNPATCH = _DATA=DYN_DATA DATA=DYN_DATA CODE=HMA CONST=DCONST
|
|
|
|
|
|
|
|
!include "..\mkfiles\$(COMPILER).mak"
|
|
|
|
|
|
|
|
THETARGET=$(TARGET)$(XCPU)$(XFAT)
|
2001-11-14 00:36:45 +01:00
|
|
|
RM=..\utils\rmfiles
|
2001-11-04 22:43:35 +01:00
|
|
|
|
|
|
|
.asm.obj :
|
|
|
|
$(NASM) $(NASMFLAGS) -f obj $*.asm
|
|
|
|
|
|
|
|
# *Implicit Rules*
|
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
.cpp.obj :
|
|
|
|
$(CC) $(CFLAGS) -c $*.cpp
|
|
|
|
|