OpenCores
URL https://opencores.org/ocsvn/zet86/zet86/trunk

Subversion Repositories zet86

[/] [zet86/] [trunk/] [soc/] [bios/] [Makefile] - Blame information for rev 37

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 zeus
.SUFFIXES: .cc
2
 
3
srcdir = .
4
 
5
 
6
SHELL = /bin/sh
7
 
8
 
9
 
10
CXX = g++
11
CXXFLAGS = -g3 -O0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
12 34 zeus
CC      = gcc
13
CFLAGS  = -g -O2 -Wall -Wstrict-prototypes
14 26 zeus
 
15
LDFLAGS =
16
LIBS =  -lm
17
RANLIB = ranlib
18
 
19
BCC = bcc
20
GCC = gcc
21
GCC32 = gcc -m32
22
AS86 = as86
23
 
24
BX_INCDIRS = -I.. -I$(srcdir)/.. -I../iodev -I$(srcdir)/../iodev
25
LOCAL_CXXFLAGS =
26
 
27
BUILDDATE = `date '+%m/%d/%y'`
28
BIOS_BUILD_DATE = "-DBIOS_BUILD_DATE=\"$(BUILDDATE)\""
29
#
30
# -------- end configurable options --------------------------
31
#
32
 
33 34 zeus
RELEASE = `pwd | sed "s-.*/--"`
34
RELDATE = `date '+%d %b %Y'`
35
RELVERS = `pwd | sed "s-.*/--" | sed "s/vgabios//" | sed "s/-//"`
36 26 zeus
 
37 34 zeus
VGABIOS_DATE = "-DVGABIOS_DATE=\"$(RELDATE)\""
38
 
39
 
40 37 zeus
all: run
41 34 zeus
 
42
bios.bin: vgabios.rom ff.rom zet-bios.rom
43
        cat vgabios.rom ff.rom zet-bios.rom > $@
44
 
45
run: bios.bin
46
        prf
47
 
48
%.rom: %.out
49
        out2rom-ml403 < $< > $@
50
 
51 26 zeus
clean:
52
        rm -f  *.o *.a *.s _rombios*_.c rombios*.txt rombios*.sym
53 34 zeus
        rm -f  usage biossums vgasums
54
        rm -f  *.ld86 \
55
          temp.awk.* vgabios*.orig _vgabios_* vgabios*.bin vgabios*.txt $(RELEASE).bin *.bak
56 26 zeus
 
57
bios-clean:
58 34 zeus
        rm -f  zet-bios.out
59 26 zeus
 
60
.cc.o:
61
        $(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
62
 
63 34 zeus
zet-bios.out: rombios.c biossums rombios.h
64 26 zeus
        $(GCC32) $(BIOS_BUILD_DATE) -DLEGACY -E -P $< > _rombiosl_.c
65
        $(BCC) -o rombiosl.s -C-c -D__i86__ -0 -S _rombiosl_.c
66
        sed -e 's/^\.text//' -e 's/^\.data//' rombiosl.s > _rombiosl_.s
67
        $(AS86) _rombiosl_.s -b tmpl.bin -u- -w- -g -0 -j -O -l rombiosl.txt
68
        -perl ${srcdir}/makesym.perl < rombiosl.txt > rombiosl.sym
69
        mv tmpl.bin $@
70
        ./biossums $@
71
        rm -f  _rombiosl_.s
72
 
73 34 zeus
vgabios.out: vgabios.c vgabios.h vgatables.h vgasums
74
        $(GCC) -E vgabios.c $(VGABIOS_VERS) -P $(VGABIOS_DATE) > _vgabios_.c
75
        $(BCC) -o vgabios.s -C-c -D__i86__ -S -0 _vgabios_.c
76
        sed -e 's/^\.text//' -e 's/^\.data//' vgabios.s > _vgabios_.s
77
        $(AS86) _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt
78 37 zeus
#       rm -f _vgabios_.s _vgabios_.c vgabios.s
79 34 zeus
        mv vgabios.bin $@
80
        ./vgasums $@
81
 
82
%.rom: %.out
83
        out2rom-ml403 < $< > $@
84
 
85
%.bin: %.rom
86
        cat count.rom $< > $@
87
 
88
%.rtlrom: %.out
89
        hexdump -v -e '1/1 "%02X"' -e '"\n"' $< > ../../sim/$@
90
 
91
vgasums: vgasums.c
92
        $(CC) -o vgasums vgasums.c
93
 
94 26 zeus
biossums: biossums.c
95 34 zeus
        $(GCC) -o biossums biossums.c

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.