[teklib-general] teklib: Build configurations updated - Linux: cosmetic, FreeBSD:...
Timm S. Mueller
tmueller at neoscientists.org
Mon Apr 7 03:41:39 CEST 2008
details: http://hg.teklib.org/teklib/rev/d990f420f222
changeset: 167:d990f420f222
user: Timm S. Mueller <tmueller at neoscientists.org>
date: Sat Apr 05 07:40:02 2008 +0200
description:
Build configurations updated - Linux: cosmetic, FreeBSD: source build added
diffs (truncated from 156 to 100 lines):
diff -r 641afe54cfd8 -r d990f420f222 build/config/posix_fbsd.tmk
--- a/build/config/posix_fbsd.tmk Sat Apr 05 07:38:50 2008 +0200
+++ b/build/config/posix_fbsd.tmk Sat Apr 05 07:40:02 2008 +0200
@@ -41,6 +41,8 @@
MKDIR = mkdir -p
RM = rm
RMDIR = rm -R
+ CAT = cat
+ ECHO = echo
CC = gcc
AR = ar rcu
@@ -56,6 +58,9 @@
[case config="_gcc_debug"]
OPT = -O1
DEBUG = -DTDEBUG=5 -g
+ [/case]
+ [case config="_gcc_small"]
+ OPT = -Os -fomit-frame-pointer
[/case]
[default]
OPT = -O2
@@ -77,7 +82,7 @@
LIBDIR = $(TEKLIB)/lib/$(HOST)
BINDIR = $(TEKLIB)/bin/$(HOST)
MODDIR = $(BINDIR)/mod
- SRCDIR = $(TEKLIB)/lib/$(HOST)_src
+ SRCDIR = $(TEKLIB)/lib/$(HOST)/src
[/body]
@@ -97,7 +102,7 @@
$(OBJDIR):
\t-$(MKDIR) $(OBJDIR)
$(SRCDIR):
- \t-$(MKDIR) $(SRCDIR)
+ \t-$(MKDIR) $(LIBDIR) $(SRCDIR)
PHONY:
[/body]
@@ -163,6 +168,9 @@
[if config="_gcc_release"]
\tstrip --strip-unneeded --remove-section .comment $(MODDIR)/%1.$(MODSUFFIX)
[/if]
+ [if config="_gcc_small"]
+ \tstrip --strip-unneeded --remove-section .comment $(MODDIR)/%1.$(MODSUFFIX)
+ [/if]
[/body]
[!---------- toolbuild ------------]
@@ -174,7 +182,7 @@
[body name="toolbuild"]
TOOLCFLAGS = $(WARN) $(OPT) $(INCL) $(DEF) $(DEBUG) $(EXTRATOOLINCL)
- TOOLLIBS = -pthread -export-dynamic -L$(TEKLIB)lib/$(HOST) -ltekcmain -ltekdebug -lm $(EXTRATOOLLIBS)
+ TOOLLIBS = -pthread -export-dynamic -L$(TEKLIB)/lib/$(HOST) -ltekcmain -ltekdebug -lm $(EXTRATOOLLIBS)
tools: $(BINDIR) $(OBJDIR) libs $(TOOLS)
[/body]
@@ -193,13 +201,35 @@
[/if]
[/body]
+[!---------- sourcebuild ------------]
+
+[body name="sources"]
+ SOURCES = \\
+ $(SRCDIR)/%n
+[/body]
+
+[body name="sourcebuild"]
+ sources: $(SRCDIR) $(SOURCES)
+[/body]
+
+[body name="sourcedep"]
+ %1: %2
+ \t at echo "--- (CP) %2 => %1"
+ \t$(ECHO) "/*" > %1
+ \t$(ECHO) "**\tAUTOMATICALLY GENERATED - DO NOT EDIT BY HAND." >> %1
+ \t$(ECHO) "**\tSee http://www.teklib.org/ for details - to regenerate," >> %1
+ \t$(ECHO) "**\tissue make linux_sources in TEKlib's root directory." >> %1
+ \t$(ECHO) "*/" >> %1
+ \t$(CAT) %2 >> %1
+[/body]
+
[!---------- metabuild ------------]
[body name="metabuild"]
[embed body="help"/]
all: libs modules tools
install: do_install
- modules tools do_install clean libs:
+ modules tools do_install clean libs sources:
[/body]
[body name="meta"]
@@ -214,5 +244,5 @@
\tfind $(OBJDIR)/ -type f | xargs rm -f
\trm -f $(MODS) $(TOOLS) $(LIBS) $(SOURCES) $(LIBMODS)
make:
More information about the teklib-general
mailing list