FreeDOS/sys/makefile
Bart Oldeman d6ad12a3dc Add Linux cross-compile capability, using Open Watcom:
* 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
2009-05-19 21:39:29 +00:00

61 lines
1.4 KiB
Makefile

#
# makefile for bin2c.com and sys.com
#
# $Id$
#
!include "../mkfiles/generic.mak"
CFLAGS = -I$(INCLUDEPATH) -I..$(DIRSEP)hdr -DFORSYS -DWITHFAT32 $(CFLAGST)
NASMFLAGS = -DSYS=1
# *List Macros*
SYS_EXE_dependencies = \
sys.obj \
fdkrncfg.obj \
prf.obj \
talloc.obj
# *Explicit Rules*
production: bin2c.com ../bin/sys.com
bin2c.com: bin2c.c
$(CLT) bin2c.c
../bin/sys.com: sys.com
$(CP) sys.com ..$(DIRSEP)bin
fat12com.h: ../boot/fat12com.bin bin2c.com
.$(DIRSEP)bin2c.com ../boot/fat12com.bin fat12com.h fat12com
fat16com.h: ../boot/fat16com.bin bin2c.com
.$(DIRSEP)bin2c.com ../boot/fat16com.bin fat16com.h fat16com
fat32chs.h: ../boot/fat32chs.bin bin2c.com
.$(DIRSEP)bin2c.com ../boot/fat32chs.bin fat32chs.h fat32chs
fat32lba.h: ../boot/fat32lba.bin bin2c.com
.$(DIRSEP)bin2c.com ../boot/fat32lba.bin fat32lba.h fat32lba
prf.obj: ../kernel/prf.c
$(CC) $(CFLAGS) ..$(DIRSEP)kernel$(DIRSEP)prf.c
fdkrncfg.obj: fdkrncfg.c ../hdr/kconfig.h
talloc.obj: talloc.c
sys.com: $(SYS_EXE_dependencies)
$(CL) $(CFLAGST) $(TINY) $(SYS_EXE_dependencies)
clobber: clean
-$(RM) bin2c.com sys.com fat*.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 fat12com.h fat16com.h fat32chs.h fat32lba.h
$(CC) $(CFLAGS) $*.c