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

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.22/] [Makefile] - Rev 21

Compare with Previous | Blame | View Log

#
# Makefile for ECO32 project
#

VERSION = 0.22

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

.PHONY:         all compiler builddir clean dist

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

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:
                for i in $(DIRS) ; do \
                  $(MAKE) -C $$i clean ; \
                done
                rm -rf $(BUILD)
                rm -f *~

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

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.