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
|
2004-01-25 23:20:48 +01:00
|
|
|
NASMFLAGS=$(NASMFLAGS) -DWITHFAT32
|
2001-11-04 22:43:35 +01:00
|
|
|
!endif
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
NASM=$(XNASM)
|
2004-04-13 22:41:15 +02:00
|
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/ -DXCPU=$(XCPU)
|
2001-11-04 22:43:35 +01:00
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
LINK=$(XLINK)
|
|
|
|
|
2002-01-23 23:29:41 +01:00
|
|
|
INITPATCH=@rem
|
2009-05-19 23:39:29 +02:00
|
|
|
DIRSEP=\ #a backslash
|
|
|
|
RM=..\utils\rmfiles
|
|
|
|
CP=copy
|
|
|
|
ECHOTO=..\utils\echoto
|
|
|
|
CLDEF=0
|
|
|
|
|
|
|
|
!include "../mkfiles/$(COMPILER).mak"
|
2001-11-04 22:43:35 +01:00
|
|
|
|
2009-05-19 23:39:29 +02:00
|
|
|
!if $(CLDEF) == 0
|
|
|
|
CLT=$(CL) $(CFLAGST) $(TINY) -I$(INCLUDEPATH)
|
|
|
|
CLC=$(CL) $(CFLAGSC) -I$(INCLUDEPATH)
|
|
|
|
!endif
|
2001-11-04 22:43:35 +01:00
|
|
|
|
2004-04-11 14:21:25 +02:00
|
|
|
TARGET=$(TARGET)$(XCPU)$(XFAT)
|
2001-11-04 22:43:35 +01:00
|
|
|
|
|
|
|
.asm.obj :
|
2002-01-23 23:29:41 +01:00
|
|
|
$(NASM) -D$(COMPILER) $(NASMFLAGS) -f obj $*.asm
|
2001-11-04 22:43:35 +01:00
|
|
|
|
|
|
|
# *Implicit Rules*
|
|
|
|
.c.obj :
|
2002-08-02 23:53:00 +02:00
|
|
|
$(CC) $(CFLAGS) $*.c
|
2001-11-04 22:43:35 +01:00
|
|
|
|
|
|
|
.cpp.obj :
|
2002-08-02 23:53:00 +02:00
|
|
|
$(CC) $(CFLAGS) $*.cpp
|
2001-11-04 22:43:35 +01:00
|
|
|
|