d6ad12a3dc
* Flip \ to / where possible. * Introduce $(DIRSEP) (/ or \) for use inside commands in makefiles where / won't work in DOS. * Override various settings for Linux in owlinux.mak. * Add quotes in exeflat.c to avoid shell expansion of $$$$$. * Let "make all", "make clean", and "make clobber" do the job. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1387 6ac86273-5f31-0410-b378-82cca8765d1b
53 lines
989 B
Makefile
53 lines
989 B
Makefile
# 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
|
|
!endif
|
|
!if $(XCPU) == 386
|
|
TARGETOPT=-3
|
|
!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
|
|
|
|
!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 :
|
|
$(NASM) -D$(COMPILER) $(NASMFLAGS) -f obj $*.asm
|
|
|
|
# *Implicit Rules*
|
|
.c.obj :
|
|
$(CC) $(CFLAGS) $*.c
|
|
|
|
.cpp.obj :
|
|
$(CC) $(CFLAGS) $*.cpp
|
|
|