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

Subversion Repositories w11

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /w11/tags/w11a_V0.61/tools/make
    from Rev 25 to Rev 26
    Reverse comparison

Rev 25 → Rev 26

/generic_cpp.mk
0,0 → 1,51
# $Id: generic_cpp.mk 576 2014-08-02 12:24:28Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2011-11-28 434 1.0.2 use -fno-strict-aliasing to avoid warings from boost bind
# 2011-11-21 432 1.0.1 gcc 4.4.5 wants explict -fPIC for .so code
# 2011-01-09 354 1.0 Initial version (from wrepo/make/generic_cxx.mk)
#---
#
# Compile options
#
# -- handle C
# -O optimize
# -fPIC position independent code
# -Wall all warnings
#
ifdef CCCOMMAND
CC = $(CCCOMMAND)
endif
ifndef CCOPTFLAGS
CCOPTFLAGS = -O
endif
#
CC = gcc
CFLAGS = -Wall -fPIC $(CCOPTFLAGS) $(INCLFLAGS)
#
# -- handle C++
#
# -O optimize
# -fPIC position independent code
# -Wall all warnings
#
ifdef CXXCOMMAND
CXX = $(CXXCOMMAND)
endif
#
ifndef CXXOPTFLAGS
CXXOPTFLAGS = -O2
endif
#
CXXFLAGS = -Wall -fPIC -fno-strict-aliasing -std=c++0x $(CXXOPTFLAGS) $(INCLFLAGS)
COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
#
LINK.o = $(CXX) $(CXXOPTFLAGS) $(LDOPTFLAGS) $(LDFLAGS) $(TARGET_ARCH)
LDFLAGS = -g
#
# Compile rule
#
%.o: %.cpp
$(COMPILE.cc) $< $(OUTPUT_OPTION)
#
/generic_so.mk
0,0 → 1,44
# $Id: generic_so.mk 515 2013-05-04 17:28:59Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2013-05-03 515 1.0.1 use 'mkdir -p' to prevent aborts with -j 4
# 2011-01-09 354 1.0 Initial version (from wrepo/make/generic_so.mk)
#---
#
# Build a sharable library and an archive
#
# Before including, defined the following variables:
# SOPATH relative directory path of the library (def: $RETROBASE/tools/lib)
# SONAME name of the library
# SOMAJV major version number
# SOMINV minor version number
#
ifndef SOPATH
SOPATH = $(RETROBASE)/tools/lib
endif
#
SOFILE = lib$(SONAME).so
SOFILEV = lib$(SONAME).so.$(SOMAJV)
SOFILEVV = lib$(SONAME).so.$(SOMAJV).$(SOMINV)
AFILE = lib$(SONAME).a
#
.PHONY : libs
libs : $(SOPATH)/$(AFILE) $(SOPATH)/$(SOFILEVV)
#
# Build the sharable library
#
$(SOPATH)/$(SOFILEVV) : $(OBJ_all)
if [ ! -d $(SOPATH) ]; then mkdir -p $(SOPATH); fi
$(CXX) -shared -Wl,-soname,$(SOFILEV) -o $(SOPATH)/$(SOFILEVV) \
$(OBJ_all) $(LDLIBS)
(cd $(SOPATH); rm -f $(SOFILE) $(SOFILEV))
(cd $(SOPATH); ln -s $(SOFILEVV) $(SOFILEV))
(cd $(SOPATH); ln -s $(SOFILEV) $(SOFILE))
#
# Build an archive
#
$(SOPATH)/$(AFILE) : $(OBJ_all)
if [ ! -d $(SOPATH) ]; then mkdir -p $(SOPATH); fi
ar -scruv $(SOPATH)/$(AFILE) $?
#
/generic_asm11.mk
0,0 → 1,45
# $Id: generic_asm11.mk 503 2013-04-06 19:44:13Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2013-04-06 503 1.0.1 use --hostinc for mac2lda
# 2013-03-22 496 1.0 Initial version
#---
#
 
ASM11 = asm-11
ASM11EXP = asm-11_expect
 
MAC2LDA = mac2lda
 
ifdef ASM11COMMAND
ASM11 = $(ASM11COMMAND)
endif
ifdef ASM11EXPCOMMAND
ASM11EXP = $(ASM11EXPCOMMAND)
endif
 
#
# Compile rules
#
%.lda : %.mac
$(ASM11) --lda --lst $<
%.cof : %.mac
$(ASM11) --cof --lst $<
#
%.lst : %.mac
$(ASM11) --lst $<
#
%.lsterr : %.mac
$(ASM11) --olst=%.lsterr $< || true
#
%.lstrt %ldart : %.mac
$(MAC2LDA) --hostinc --suff=rt $*
#
# Expect rules
#
%.lstexp : %.lst
$(ASM11EXP) $<
#
%.lstexp : %.lsterr
$(ASM11EXP) $<
/dontincdep.mk
0,0 → 1,21
# $Id: dontincdep.mk 477 2013-01-27 14:07:10Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2013-01-27 477 1.0 Initial version
#
# DONTINCDEP controls whether dependency files are included. Set it if
# any of the 'clean' type targets is involved
#
ifneq ($(findstring clean, $(MAKECMDGOALS)),)
DONTINCDEP = 1
endif
ifneq ($(findstring cleandep, $(MAKECMDGOALS)),)
DONTINCDEP = 1
endif
ifneq ($(findstring distclean, $(MAKECMDGOALS)),)
DONTINCDEP = 1
endif
ifdef DONTINCDEP
$(info DONTINCDEP set, *.dep files not included)
endif
/generic_dep.mk
0,0 → 1,18
# $Id: generic_dep.mk 354 2011-01-09 22:38:53Z mueller $
#
# Revision History:
# Date Rev Version Comment
# 2011-01-09 354 1.0 Initial version (from wrepo/make/generic_dep.mk)
#---
#
# Dependency generation rules
#
%.dep: %.c
@ echo "$(CC) -MM $< | sed ... > $@"
@ $(SHELL) -ec '$(CC) -MM $(CPPFLAGS) $(CFLAGS) $< \
| sed '\''s/\($*\.o\)[ :]*/\1 $@ : /g'\'' > $@'
%.dep: %.cpp
@ echo "$(CXX) -MM $< | sed ... > $@"
@ $(SHELL) -ec '$(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $< \
| sed '\''s/\($*\.o\)[ :]*/\1 $@ : /g'\'' > $@'
#
/.
. Property changes : Added: svn:ignore ## -0,0 +1,33 ## +*.dep_ghdl +*.dep_isim +*.dep_xst +work-obj93.cf +*.vcd +*.ghw +*.sav +*.tmp +*.exe +ise +xflow.his +*.ngc +*.ncd +*.pcf +*.bit +*.msk +isim +isim.log +isim.wdb +fuse.log +*_[sft]sim.vhd +*_tsim.sdf +*_xst.log +*_tra.log +*_twr.log +*_map.log +*_par.log +*_tsi.log +*_pad.log +*_bgn.log +*_svn.log +*_sum.log +*_[dsft]sim.log

powered by: WebSVN 2.1.0

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