2012-10-15 02:08:06 +02:00
|
|
|
# These are generic definitions
|
|
|
|
|
|
|
|
#**********************************************************************
|
|
|
|
#* TARGET : we create a %TARGET%.sys file
|
|
|
|
#* TARGETOPT : options, handled down to the compiler
|
|
|
|
#**********************************************************************
|
|
|
|
|
|
|
|
TARGETOPT=-1-
|
|
|
|
|
|
|
|
!if $(XCPU) == 186
|
|
|
|
TARGETOPT=-1
|
2017-09-26 02:10:43 +02:00
|
|
|
ALLCFLAGS=$(ALLCFLAGS) -DI186
|
2012-10-15 02:08:06 +02:00
|
|
|
!endif
|
|
|
|
!if $(XCPU) == 386
|
|
|
|
TARGETOPT=-3
|
2017-09-26 02:10:43 +02:00
|
|
|
ALLCFLAGS=$(ALLCFLAGS) -DI386
|
2012-10-15 02:08:06 +02:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(XFAT) == 32
|
|
|
|
ALLCFLAGS=$(ALLCFLAGS) -DWITHFAT32
|
|
|
|
NASMFLAGS=$(NASMFLAGS) -DWITHFAT32
|
|
|
|
!endif
|
|
|
|
|
|
|
|
NASM=$(XNASM)
|
|
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/ -DXCPU=$(XCPU)
|
|
|
|
|
|
|
|
LINK=$(XLINK)
|
|
|
|
|
|
|
|
INITPATCH=@rem
|
|
|
|
DIRSEP=\ #a backslash
|
|
|
|
RM=..\utils\rmfiles
|
|
|
|
CP=copy
|
|
|
|
ECHOTO=..\utils\echoto
|
|
|
|
CLDEF=0
|
|
|
|
|
|
|
|
!if $(LOADSEG)0 == 0
|
|
|
|
LOADSEG=0x60
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!include "../mkfiles/$(COMPILER).mak"
|
|
|
|
|
|
|
|
!if $(CLDEF) == 0
|
|
|
|
CLT=$(CL) $(CFLAGST) $(TINY) -I$(INCLUDEPATH)
|
|
|
|
CLC=$(CL) $(CFLAGSC) -I$(INCLUDEPATH)
|
|
|
|
!endif
|
|
|
|
|
|
|
|
TARGET=$(TARGET)$(XCPU)$(XFAT)
|
|
|
|
|
|
|
|
.asm.obj :
|
2017-12-19 14:22:58 +01:00
|
|
|
$(NASM) -D$(COMPILER) -f obj $(NASMFLAGS) $*.asm
|
2012-10-15 02:08:06 +02:00
|
|
|
|
|
|
|
# *Implicit Rules*
|
|
|
|
.c.obj :
|
|
|
|
$(CC) $(CFLAGS) $*.c
|
|
|
|
|
|
|
|
.cpp.obj :
|
|
|
|
$(CC) $(CFLAGS) $*.cpp
|
|
|
|
|