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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [Makefile] - Blame information for rev 131

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

Line No. Rev Author Line
1 3 hellwig
#
2
# Makefile for ECO32 project
3
#
4
 
5 23 hellwig
VERSION = 0.23
6 3 hellwig
 
7 34 hellwig
DIRS = binutils tools sim simtest fpga hwtests monitor disk stdalone
8 3 hellwig
BUILD = `pwd`/build
9
 
10 23 hellwig
.PHONY:         all doc compiler builddir clean dist
11 3 hellwig
 
12
all:            compiler
13
                for i in $(DIRS) ; do \
14
                  $(MAKE) -C $$i install ; \
15
                done
16
 
17 23 hellwig
doc:
18
                $(MAKE) -C doc install
19
 
20 3 hellwig
compiler:       builddir
21 5 hellwig
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin \
22
                  HOSTFILE=etc/eco32-netbsd.c lcc
23
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin all
24 3 hellwig
                rm -f $(BUILD)/bin/*.c
25
                rm -f $(BUILD)/bin/*.o
26
                rm -f $(BUILD)/bin/*.a
27
 
28
builddir:
29
                mkdir -p $(BUILD)
30
                mkdir -p $(BUILD)/bin
31
 
32
clean:
33 36 hellwig
                rm -f lcc/lburg/gram.c
34 3 hellwig
                for i in $(DIRS) ; do \
35
                  $(MAKE) -C $$i clean ; \
36
                done
37 23 hellwig
                $(MAKE) -C doc clean
38 3 hellwig
                rm -rf $(BUILD)
39
                rm -f *~
40
 
41
dist:           clean
42
                (cd .. ; \
43
                 tar --exclude-vcs -cvf \
44
                   eco32-$(VERSION).tar \
45
                   eco32-$(VERSION)/* ; \
46
                 gzip -f eco32-$(VERSION).tar)

powered by: WebSVN 2.1.0

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