2001-11-04 21:10:15 +01:00
|
|
|
#
|
|
|
|
# makefile for bin2c.com and sys.com
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
!include "..\mkfiles\generic.mak"
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
CFLAGS = -I$(INCLUDEPATH) -I..\hdr -DFORSYS -DWITHFAT32 $(CFLAGST)
|
|
|
|
NASMFLAGS = -DSYS=1
|
|
|
|
|
|
|
|
# *List Macros*
|
|
|
|
|
|
|
|
SYS_EXE_dependencies = \
|
|
|
|
sys.obj \
|
|
|
|
fdkrncfg.obj \
|
|
|
|
prf.obj
|
|
|
|
|
|
|
|
# *Explicit Rules*
|
|
|
|
production: bin2c.com ..\bin\sys.com
|
|
|
|
|
2002-08-02 23:55:14 +02:00
|
|
|
bin2c.com: bin2c.c
|
2002-08-04 03:14:18 +02:00
|
|
|
$(CL) $(CFLAGS) $(TINY) bin2c.c
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
..\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
|
2002-08-02 23:55:14 +02:00
|
|
|
$(CC) $(CFLAGS) ..\kernel\prf.c
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
fdkrncfg.obj: fdkrncfg.c ..\hdr\kconfig.h
|
|
|
|
|
|
|
|
sys.com: $(SYS_EXE_dependencies)
|
2002-08-02 23:55:14 +02:00
|
|
|
$(CL) $(CFLAGST) $(TINY) $(SYS_EXE_dependencies)
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
clobber: clean
|
2001-11-14 00:36:45 +01:00
|
|
|
-$(RM) bin2c.com sys.com b_fat12.h b_fat16.h b_fat32.h
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
clean:
|
2001-11-18 18:48:20 +01:00
|
|
|
-$(RM) *.obj *.bak *.crf *.xrf *.map *.lst *.las *.cod *.err status.me
|
2001-11-04 21:10:15 +01:00
|
|
|
|
|
|
|
# *Individual File Dependencies*
|
|
|
|
sys.obj: sys.c ..\hdr\portab.h ..\hdr\device.h b_fat12.h b_fat16.h b_fat32.h
|
2002-08-02 23:55:14 +02:00
|
|
|
$(CC) $(CFLAGS) $*.c
|
2001-11-18 00:26:45 +01:00
|
|
|
|