URL
https://opencores.org/ocsvn/eco32/eco32/trunk
[/] [eco32/] [trunk/] [Makefile] - Diff between revs 249 and 271
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 249 |
Rev 271 |
#
|
#
|
# Makefile for ECO32 project
|
# Makefile for ECO32 project
|
#
|
#
|
|
|
VERSION = 0.26
|
VERSION = 0.27
|
|
|
DIRS = binutils tools sim simtest fpga hwtests monitor disk stdalone
|
DIRS = binutils tools sim simtest fpga hwtests monitor disk stdalone
|
BUILD = `pwd`/build
|
BUILD = `pwd`/build
|
|
|
.PHONY: all doc 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:
|
doc:
|
$(MAKE) -C doc install
|
$(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:
|
rm -f lcc/lburg/gram.c
|
rm -f lcc/lburg/gram.c
|
for i in $(DIRS) ; do \
|
for i in $(DIRS) ; do \
|
$(MAKE) -C $$i clean ; \
|
$(MAKE) -C $$i clean ; \
|
done
|
done
|
$(MAKE) -C doc clean
|
$(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)
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.