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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [Makefile] - Diff between revs 18 and 23

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 18 Rev 23
#
#
# Makefile for ECO32 project
# Makefile for ECO32 project
#
#
 
 
VERSION = 0.22
VERSION = 0.23
 
 
DIRS = doc binutils sim simtest fpga hwtests monitor disk stdalone
DIRS = binutils sim simtest fpga hwtests monitor disk stdalone
BUILD = `pwd`/build
BUILD = `pwd`/build
 
 
.PHONY:         all compiler builddir clean dist
.PHONY:         all doc compiler builddir clean dist
 
 
all:            compiler
all:            compiler
                for i in $(DIRS) ; do \
                for i in $(DIRS) ; do \
                  $(MAKE) -C $$i install ; \
                  $(MAKE) -C $$i install ; \
                done
                done
 
 
 
doc:
 
                $(MAKE) -C doc install
 
 
compiler:       builddir
compiler:       builddir
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin \
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin \
                  HOSTFILE=etc/eco32-netbsd.c lcc
                  HOSTFILE=etc/eco32-netbsd.c lcc
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin all
                $(MAKE) -C lcc BUILDDIR=$(BUILD)/bin all
                rm -f $(BUILD)/bin/*.c
                rm -f $(BUILD)/bin/*.c
                rm -f $(BUILD)/bin/*.o
                rm -f $(BUILD)/bin/*.o
                rm -f $(BUILD)/bin/*.a
                rm -f $(BUILD)/bin/*.a
builddir:
builddir:
                mkdir -p $(BUILD)
                mkdir -p $(BUILD)
                mkdir -p $(BUILD)/bin
                mkdir -p $(BUILD)/bin
clean:
clean:
                for i in $(DIRS) ; do \
                for i in $(DIRS) ; do \
                  $(MAKE) -C $$i clean ; \
                  $(MAKE) -C $$i clean ; \
                done
                done
 
                $(MAKE) -C doc clean
                rm -rf $(BUILD)
                rm -rf $(BUILD)
                rm -f *~
                rm -f *~
dist:           clean
dist:           clean
                (cd .. ; \
                (cd .. ; \
                 tar --exclude-vcs -cvf \
                 tar --exclude-vcs -cvf \
                   eco32-$(VERSION).tar \
                   eco32-$(VERSION).tar \
                   eco32-$(VERSION)/* ; \
                   eco32-$(VERSION)/* ; \
                 gzip -f eco32-$(VERSION).tar)
                 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.