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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [Makefile] - Rev 72

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

#
# Makefile for ECO32 project
#

VERSION = 0.23

DIRS = binutils tools sim simtest fpga hwtests monitor disk stdalone
BUILD = `pwd`/build

.PHONY:         all doc compiler builddir clean dist

all:            compiler
                for i in $(DIRS) ; do \
                  $(MAKE) -C $$i install ; \
                done

doc:
                $(MAKE) -C doc install

compiler:       builddir
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin \
                  HOSTFILE=etc/eco32-netbsd.c lcc
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin all
                rm -f $(BUILD)/bin/*.c
                rm -f $(BUILD)/bin/*.o
                rm -f $(BUILD)/bin/*.a

builddir:
                mkdir -p $(BUILD)
                mkdir -p $(BUILD)/bin

clean:
                rm -f lcc/lburg/gram.c
                for i in $(DIRS) ; do \
                  $(MAKE) -C $$i clean ; \
                done
                $(MAKE) -C doc clean
                rm -rf $(BUILD)
                rm -f *~

dist:           clean
                (cd .. ; \
                 tar --exclude-vcs -cvf \
                   eco32-$(VERSION).tar \
                   eco32-$(VERSION)/* ; \
                 gzip -f eco32-$(VERSION).tar)

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

powered by: WebSVN 2.1.0

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