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

Subversion Repositories zet86

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

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 39 zeus
all: bios.rom
41 34 zeus
 
42 39 zeus
ff.out: ../../bin/ff
43
        ../../bin/ff 8192 >$@
44 34 zeus
 
45 39 zeus
%.ml403: %.rom
46
        hexdump -v -e '4/1 "%02X"' -e '"\n"' $< > ../../impl/virtex4-ml403ep/sim/$@
47 34 zeus
 
48
%.rom: %.out
49 39 zeus
        ../../bin/out2rom-ml403 ff.out $< >$@
50 34 zeus
 
51 39 zeus
#vgabios.rom: vgabios.out
52
#       out2rom-ml403 ff.out $< >$@
53
 
54
#hd.rom: hd.out
55
#       out2rom-ml403 ff.out $< >$@
56
 
57
bios.out: vgabios.out ff.out zet-bios.out
58
        cat vgabios.out ff.out zet-bios.out > $@
59
 
60
run: flash.rom
61
        prf
62
 
63 26 zeus
clean:
64 39 zeus
        rm -f  *.o *.a *.s _rombios*_.c rombios*.txt rombios*.sym *.out *.rom
65 34 zeus
        rm -f  usage biossums vgasums
66
        rm -f  *.ld86 \
67
          temp.awk.* vgabios*.orig _vgabios_* vgabios*.bin vgabios*.txt $(RELEASE).bin *.bak
68 26 zeus
 
69
bios-clean:
70 34 zeus
        rm -f  zet-bios.out
71 26 zeus
 
72
.cc.o:
73
        $(CXX) -c $(BX_INCDIRS) $(CXXFLAGS) $(LOCAL_CXXFLAGS) $< -o $@
74
 
75 34 zeus
zet-bios.out: rombios.c biossums rombios.h
76 26 zeus
        $(GCC32) $(BIOS_BUILD_DATE) -DLEGACY -E -P $< > _rombiosl_.c
77
        $(BCC) -o rombiosl.s -C-c -D__i86__ -0 -S _rombiosl_.c
78
        sed -e 's/^\.text//' -e 's/^\.data//' rombiosl.s > _rombiosl_.s
79
        $(AS86) _rombiosl_.s -b tmpl.bin -u- -w- -g -0 -j -O -l rombiosl.txt
80
        -perl ${srcdir}/makesym.perl < rombiosl.txt > rombiosl.sym
81
        mv tmpl.bin $@
82
        ./biossums $@
83
        rm -f  _rombiosl_.s
84
 
85 34 zeus
vgabios.out: vgabios.c vgabios.h vgatables.h vgasums
86
        $(GCC) -E vgabios.c $(VGABIOS_VERS) -P $(VGABIOS_DATE) > _vgabios_.c
87
        $(BCC) -o vgabios.s -C-c -D__i86__ -S -0 _vgabios_.c
88
        sed -e 's/^\.text//' -e 's/^\.data//' vgabios.s > _vgabios_.s
89
        $(AS86) _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt
90 37 zeus
#       rm -f _vgabios_.s _vgabios_.c vgabios.s
91 34 zeus
        mv vgabios.bin $@
92
        ./vgasums $@
93
 
94
%.rtlrom: %.out
95
        hexdump -v -e '1/1 "%02X"' -e '"\n"' $< > ../../sim/$@
96
 
97
vgasums: vgasums.c
98
        $(CC) -o vgasums vgasums.c
99
 
100 26 zeus
biossums: biossums.c
101 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.