FreeDOS/sys/makefile
Bart Oldeman 8651581383 Remove old log entries.
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@482 6ac86273-5f31-0410-b378-82cca8765d1b
2002-11-18 22:51:27 +00:00

55 lines
1.2 KiB
Makefile

#
# makefile for bin2c.com and sys.com
#
# $Id$
#
!include "..\mkfiles\generic.mak"
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
bin2c.com: bin2c.c
$(CL) $(CFLAGS) $(TINY) bin2c.c
..\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) ..\kernel\prf.c
fdkrncfg.obj: fdkrncfg.c ..\hdr\kconfig.h
sys.com: $(SYS_EXE_dependencies)
$(CL) $(CFLAGST) $(TINY) $(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 *.cod *.err status.me
# *Individual File Dependencies*
sys.obj: sys.c ..\hdr\portab.h ..\hdr\device.h b_fat12.h b_fat16.h b_fat32.h
$(CC) $(CFLAGS) $*.c