Author: dcoakley
Date: 2010-08-30 01:31:14 -0400 (Mon, 30 Aug 2010)
New Revision: 3326
Modified:
trunk/osprey/cygnus/bfd/po/Make-in
trunk/osprey/cygnus/ld/po/Make-in
trunk/osprey/cygnus/opcodes/po/Make-in
trunk/osprey/libhugetlbfs/Makefile.gbase
Log:
Avoid writing build artifacts into the source tree.
Approved by: Jian-Xin Lai
Modified: trunk/osprey/cygnus/bfd/po/Make-in
===================================================================
--- trunk/osprey/cygnus/bfd/po/Make-in 2010-08-30 04:51:28 UTC (rev 3325)
+++ trunk/osprey/cygnus/bfd/po/Make-in 2010-08-30 05:31:14 UTC (rev 3326)
@@ -78,7 +78,7 @@
$(MSGFMT) -o $@ $<
.po.gmo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
Modified: trunk/osprey/cygnus/ld/po/Make-in
===================================================================
--- trunk/osprey/cygnus/ld/po/Make-in 2010-08-30 04:51:28 UTC (rev 3325)
+++ trunk/osprey/cygnus/ld/po/Make-in 2010-08-30 05:31:14 UTC (rev 3326)
@@ -72,7 +72,7 @@
$(MSGFMT) -o $@ $<
.po.gmo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
Modified: trunk/osprey/cygnus/opcodes/po/Make-in
===================================================================
--- trunk/osprey/cygnus/opcodes/po/Make-in 2010-08-30 04:51:28 UTC (rev
3325)
+++ trunk/osprey/cygnus/opcodes/po/Make-in 2010-08-30 05:31:14 UTC (rev
3326)
@@ -72,7 +72,7 @@
$(MSGFMT) -o $@ $<
.po.gmo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ file=`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
Modified: trunk/osprey/libhugetlbfs/Makefile.gbase
===================================================================
--- trunk/osprey/libhugetlbfs/Makefile.gbase 2010-08-30 04:51:28 UTC (rev
3325)
+++ trunk/osprey/libhugetlbfs/Makefile.gbase 2010-08-30 05:31:14 UTC (rev
3326)
@@ -33,7 +33,7 @@
LDSCRIPT_DIST_ELF = elf32ppclinux elf64ppc elf_i386 elf_x86_64
INSTALL_OBJSCRIPT = ld.hugetlbfs
VERSION=version.h
-SOURCE = $(shell find $(BUILD_BASE) -maxdepth 1 ! -name version.h -a -name
'*.[h]')
+SOURCE = $(shell find $(BUILD_BASE) -maxdepth 1 -name '*.[h]')
SOURCE += $(BUILD_BASE)/*.c $(BUILD_BASE)/*.lds $(BUILD_BASE)/Makefile
NODEPTARGETS=<version.h> <clean>
@@ -42,7 +42,7 @@
LDFLAGS += --no-undefined-version
-Wl,--version-script=$(BUILD_BASE)/version.lds
CFLAGS ?= -O2 -g -DOPEN64_MOD -DM_PAGE
CFLAGS += -Wall -fPIC
-CPPFLAGS += -D__LIBHUGETLBFS__
+CPPFLAGS += -D__LIBHUGETLBFS__ -I.
ARCH = $(shell uname -m | sed -e s/i.86/i386/)
@@ -170,10 +170,10 @@
libs: $(foreach file,$(INSTALL_OBJ_LIBS),$(OBJDIRS:%=%/$(file)))
# <Version handling> MOD
-$(VERSION): always
+$(VERSION): $(BUILD_BASE)/version
@$(VECHO) VERSION
- $(BUILD_BASE)/localversion $(BUILD_BASE)/version $(SOURCE)
-always:
+ cp $(BUILD_BASE)/version version
+ $(BUILD_BASE)/localversion version $(SOURCE)
# </Version handling>
snapshot: $(VERSION)
@@ -237,7 +237,7 @@
clean:
@$(VECHO) CLEAN
- rm -f *~ *.o *.so *.a *.d *.i core a.out $(BUILD_BASE)/$(VERSION)
+ rm -f *~ *.o *.so *.a *.d *.i core a.out version $(VERSION)
rm -rf obj*
rm -f ldscripts/*~
rm -f libhugetlbfs-sock
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel