a4c844dc62
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@316 6ac86273-5f31-0410-b378-82cca8765d1b
86 lines
1.9 KiB
Makefile
86 lines
1.9 KiB
Makefile
#
|
|
# makefile for bin2c.com and sys.com
|
|
#
|
|
# $Id$
|
|
#
|
|
# $Log$
|
|
# Revision 1.1 2001/11/04 20:10:15 bartoldeman
|
|
# Added new makefile names, utils sources, kconfig.h
|
|
#
|
|
# Revision 1.3 2000/05/25 20:56:23 jimtabor
|
|
# Fixed project history
|
|
#
|
|
# Revision 1.2 2000/05/15 05:28:09 jimtabor
|
|
# Cleanup CRs
|
|
#
|
|
# Revision 1.1.1.1 2000/05/06 19:34:53 jhall1
|
|
# The FreeDOS Kernel. A DOS kernel that aims to be 100% compatible with
|
|
# MS-DOS. Distributed under the GNU GPL.
|
|
#
|
|
# Revision 1.6 1999/09/20 18:34:40 jprice
|
|
# *** empty log message ***
|
|
#
|
|
# Revision 1.5 1999/08/25 03:19:51 jprice
|
|
# ror4 patches to allow TC 2.01 compile.
|
|
#
|
|
# Revision 1.4 1999/05/03 05:01:38 jprice
|
|
# no message
|
|
#
|
|
# Revision 1.3 1999/04/23 03:45:33 jprice
|
|
# Improved by jprice
|
|
#
|
|
|
|
!include "..\config.mak"
|
|
|
|
CFLAGS = -I$(INCLUDEPATH) -I..\hdr -DFORSYS -DWITHFAT32 $(CFLAGST)
|
|
NASMFLAGS = -DSYS=1
|
|
|
|
# *List Macros*
|
|
|
|
BIN2C_EXE_dependencies = \
|
|
bin2c.obj
|
|
|
|
SYS_EXE_dependencies = \
|
|
sys.obj \
|
|
fdkrncfg.obj \
|
|
prf.obj
|
|
|
|
# *Explicit Rules*
|
|
production: bin2c.com ..\bin\sys.com
|
|
|
|
bin2c.com: $(BIN2C_EXE_dependencies)
|
|
$(CC) $(CFLAGST) -L$(LIBPATH) $(BIN2C_EXE_dependencies)
|
|
|
|
..\bin\sys.com: sys.com
|
|
copy sys.com ..\bin
|
|
|
|
b_fat12.h: ..\boot\b_fat12.bin bin2c.com
|
|
.\bin2c ..\boot\b_fat12.bin b_fat12.h b_fat12
|
|
|
|
b_fat16.h: ..\boot\b_fat16.bin bin2c.com
|
|
.\bin2c ..\boot\b_fat16.bin b_fat16.h b_fat16
|
|
|
|
b_fat32.h: ..\boot\b_fat32.bin bin2c.com
|
|
.\bin2c ..\boot\b_fat32.bin b_fat32.h b_fat32
|
|
|
|
prf.obj: ..\kernel\prf.c
|
|
$(CC) $(CFLAGS) -c ..\kernel\prf.c
|
|
|
|
fdkrncfg.obj: fdkrncfg.c ..\hdr\kconfig.h
|
|
|
|
sys.com: $(SYS_EXE_dependencies)
|
|
$(CC) $(CFLAGST) -L$(LIBPATH) $(SYS_EXE_dependencies)
|
|
|
|
clobber: clean
|
|
$(RM) bin2c.com sys.com b_fat12.h b_fat16.h b_fat32.h
|
|
|
|
clean:
|
|
$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las status.me
|
|
|
|
# *Individual File Dependencies*
|
|
bin2c.obj: bin2c.c
|
|
$(CC) $(CFLAGS) -c $*.c
|
|
|
|
sys.obj: sys.c ..\hdr\portab.h ..\hdr\device.h b_fat12.h b_fat16.h b_fat32.h
|
|
$(CC) $(CFLAGS) -c $*.c
|