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

Subversion Repositories eco32

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

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
VERSION = 0.23
6
 
7 8 hellwig
DIRS = doc binutils sim
8 3 hellwig
BUILD = `pwd`/build
9
 
10
.PHONY:         all compiler builddir clean dist
11
 
12
all:            compiler
13
                for i in $(DIRS) ; do \
14
                  $(MAKE) -C $$i install ; \
15
                done
16
 
17
compiler:       builddir
18 5 hellwig
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin \
19
                  HOSTFILE=etc/eco32-netbsd.c lcc
20
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin all
21 3 hellwig
                rm -f $(BUILD)/bin/*.c
22
                rm -f $(BUILD)/bin/*.o
23
                rm -f $(BUILD)/bin/*.a
24
 
25
builddir:
26
                mkdir -p $(BUILD)
27
                mkdir -p $(BUILD)/bin
28
 
29
clean:
30
                for i in $(DIRS) ; do \
31
                  $(MAKE) -C $$i clean ; \
32
                done
33
                rm -rf $(BUILD)
34
                rm -f *~
35
 
36
dist:           clean
37
                (cd .. ; \
38
                 tar --exclude-vcs -cvf \
39
                   eco32-$(VERSION).tar \
40
                   eco32-$(VERSION)/* ; \
41
                 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.