openblt

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

Makefile (851B)


      1 BLTHOME := ../
      2 include $(BLTHOME)make.conf
      3 
      4 CFLAGS 		:= -I$(BLTHOME)include -fno-pic -O2
      5 LIBS 		:= -L$(BLTHOME)lib/obj -lconsole -lkern
      6 ST			:= strip
      7 
      8 all: netrom.hex 
      9 
     10 load: netrom.hex
     11 	./sersend -b 115200 /dev/ports/serial1 < netrom.hex 
     12 
     13 makerom: makerom.c
     14 	gcc -o makerom makerom.c
     15 
     16 netrom: netrom.asm
     17 	nasm netrom.asm
     18 
     19 netrom.hex: netrom netboot.raw makerom
     20 	cat netrom netboot.raw > temp.raw
     21 	./makerom temp.raw netrom.hex
     22 
     23 OBJS = crt0.o netboot.o pci.o ne2000.o 
     24 
     25 netboot.raw: $(OBJS)
     26 	$(LD) -dN -Ttext 0x90000 -o netboot.bin  $(OBJS) $(LIBS)
     27 	$(NM) -nC netboot.bin > netboot.map
     28 	objcopy -O binary netboot.bin netboot.raw
     29 
     30 download: download.c
     31 	cc -o download download.c
     32 
     33 install: download netrom.hex
     34 	./download < netrom.hex
     35 
     36 clean:
     37 	rm -f *.o *~ os.* core *.core *.s *.map netboot.bin temp.raw netboot.raw netrom.hex *.boot makerom download