a904ce9dc3
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@319 6ac86273-5f31-0410-b378-82cca8765d1b
50 lines
1016 B
Makefile
50 lines
1016 B
Makefile
#**********************************************************************
|
|
#* TARGET : we create a %TARGET%.sys file
|
|
#* TARGETOPT : options, handled down to the compiler
|
|
#**********************************************************************
|
|
|
|
TARGETOPT=-1-
|
|
|
|
!if $(XCPU)+1 != 1
|
|
!if $(XCPU) == 186
|
|
TARGETOPT=-1
|
|
!endif
|
|
!if $(XCPU) == 386
|
|
TARGETOPT=-3
|
|
!endif
|
|
!endif
|
|
|
|
!if $(XFAT)+1 != 1
|
|
!if $(XFAT) == 32
|
|
ALLCFLAGS=$(ALLCFLAGS) -DWITHFAT32
|
|
!endif
|
|
!endif
|
|
|
|
!if $(XCPU) == 386
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/ -DI386
|
|
!else
|
|
NASMFLAGS = $(NASMFLAGS) -i../hdr/
|
|
!endif
|
|
|
|
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)
|
|
# These are generic definitions
|
|
RM=-del
|
|
|
|
.asm.obj :
|
|
$(NASM) $(NASMFLAGS) -f obj $*.asm
|
|
|
|
# *Implicit Rules*
|
|
.c.obj :
|
|
$(CC) $(CFLAGS) -c $*.c
|
|
|
|
.cpp.obj :
|
|
$(CC) $(CFLAGS) -c $*.cpp
|
|
|