openblt

a hobby OS from the late 90s
git clone http://frotz.net/git/openblt.git
Log | Files | Refs | LICENSE

Makefile (829B)


      1 BLTHOME := .
      2 include make.conf
      3 
      4 ifeq ($(BUILDLOG),)
      5 BUILDLOG := `pwd`/build.log
      6 endif
      7 
      8 SUBDIRS		:= lib kernel srv boot bin util
      9 
     10 image: log subdirs
     11 	./util/bootmaker $(INIFILES) $(LOCALINIFILES) -o boot/openblt.boot
     12 
     13 floppy: subdirs
     14 	./util/bootmaker $(INIFILES) $(LOCALINIFILES) -o boot/openblt.boot --floppy
     15 
     16 fimage: floppy
     17 	dd if=/dev/zero of=fd.img bs=1024 count=1440
     18 	dd if=boot/openblt.boot of=fd.img conv=notrunc
     19 
     20 bfloppy: floppy
     21 	dd if=boot/openblt.boot of=/dev/disk/floppy/raw bs=18k
     22 	
     23 lfloppy: floppy
     24 	dd if=boot/openblt.boot of=/dev/fd0 bs=18k
     25 
     26 run: image
     27 	./util/netboot boot/openblt.boot $(IP)
     28 
     29 go:
     30 	./util/bootmaker $(INIFILES) $(LOCALINIFILES) -o boot/openblt.boot
     31 	./util/netboot boot/openblt.boot $(IP)
     32 
     33 all:: log
     34 
     35 log::
     36 	@echo "### `date`" > $(BUILDLOG)
     37 
     38 clean::
     39 	@rm -f boot/openblt.boot
     40 
     41 include make.actions