9c94426d7a
git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/branches/UNSTABLE@988 6ac86273-5f31-0410-b378-82cca8765d1b
42 lines
959 B
Makefile
42 lines
959 B
Makefile
#
|
|
# makefile for bin2c.com and sys.com
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
!include "../mkfiles/generic.mak"
|
|
|
|
SYS_C=sys.c fdkrncfg.c ..\kernel\prf.c talloc.c
|
|
DEPENDS=$(DEPENDS) *.cfg
|
|
|
|
########################################################################
|
|
|
|
all: bin2c.com ..\bin\sys.com
|
|
|
|
bin2c.com: bin2c.c $(DEPENDS)
|
|
|
|
fat12com.h: ..\boot\fat12.bin bin2c.com
|
|
bin2c ..\boot\fat12.bin $*.h $*
|
|
|
|
fat16com.h: ..\boot\fat16.bin bin2c.com
|
|
bin2c ..\boot\fat16.bin $*.h $*
|
|
|
|
fat32chs.h: ..\boot\fat32chs.bin bin2c.com
|
|
bin2c ..\boot\$*.bin $*.h $*
|
|
|
|
fat32lba.h: ..\boot\fat32lba.bin bin2c.com
|
|
bin2c ..\boot\$*.bin $*.h $*
|
|
|
|
..\bin\sys.com: $(SYS_C) ..\hdr\*.h fat12com.h fat16com.h fat32chs.h fat32lba.h
|
|
$(CL) $(CFLAGST) -DFORSYS -DWITHFAT32 $(SYS_C)
|
|
copy sys.com ..\bin
|
|
del sys.com
|
|
|
|
########################################################################
|
|
|
|
clean:
|
|
-$(RM) *.bak *.cod *.crf *.err *.las *.lst *.map *.obj *.xrf
|
|
|
|
clobber: clean
|
|
-$(RM) bin2c.com fat*.h status.me
|