--- hurd/Makeconf 2006-01-07 03:24:16.000000000 +0100 +++ hurd/Makeconf 2006-01-07 03:05:02.000000000 +0100 @@ -1,533 +1,105 @@ -# Generic configuration for Hurd compilation +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +## Generic configuration for Hurd compilation +## +## Almost everything in this file should use ${} instead of $() +## It is included before many things are defined. + +# Clean mig stubs at 'make clean' time. + +CLEANFILES = *Server.c *User.c *_S.h *_U.h + +# MIG Setup + +MIGCOM = $(MIG) -cc cat - /dev/null +BUILT_SOURCES = $(MIGSTUBS) -# Directory makefiles should set the variable makemode to either -# `server' if they compile and install a single program for /hurd -# `utility' if they compile and install a single program for /bin -# `servers' if they compile and install multiple programs for /hurd -# `utilities' if they compile and install multiple programs for /bin -# `library' if they compile and install a library -# `misc' if they do none of those - -# Every makefile should define -# SRCS (all actual source code) -# LCLHDRS (all source headers in this directory [NOT MiG created]) -# OBJS (all .o files used to produce some target). -# HURDLIBS (all Hurd libraries used; with no directory name or `lib' attached) -# For types `server' and `utility' an automatic dependency will be -# written for these, and type `library' will include a .so dependency. -# Types `servers' and `utilities'; you have to do it yourself. - -# Types `server' and `utility' should define -# target (the name of the program built) -# OTHERLIBS (all libraries used) - -# Types `servers' and `utilities' should define -# targets (the names of all the programs built) -# special-targets (targets which should not be built the normal way -# and have their own rules) - -# Type `library' should define -# libname (the name of the library, without .a.) -# installhdrs (header files that should be installed in /include) -# installhdrsubdir (the subdirectory they should go in, default `hurd') -# and must not define $(targets). +# We need this because we use $(CPP) to preprocess mig .defs file. +CPP = @CPP@ -x c -# Put this first so it's the default -all: +# Extra definitions for install directories, etc... -# What version of the Hurd is this? -hurd-version := 0.3 - -# Figure out how to locate the parent directory from here. -ifeq (.,$(dir)) -.. = -else -.. = ../ -endif - -ifndef srcdir -# We are building in the source directory itself. -srcdir = . -ifeq (.,$(dir)) -top_srcdir = . -else -top_srcdir = .. -endif -endif +hurdincludedir = ${includedir}/hurd +fakeincludedir = $(top_builddir)/include # Generic compiler options, appended to whatever the particular makefile set. # The config.make file will append the values chosed by configure. -INCLUDES = -I. $(srcdirinc) -ifneq (.,$(dir)) -INCLUDES += -I.. $(top_srcdirinc) -endif -INCLUDES += -I$(..)include -I$(top_srcdir)/include -CPPFLAGS += $(INCLUDES) \ - -D_GNU_SOURCE -D_IO_MTSAFE_IO -D_FILE_OFFSET_BITS=64 \ - $($*-CPPFLAGS) -CFLAGS += -std=gnu99 -Wall -g -O3 - -# Include the configure-generated file of parameters. -# This sets up variables for build tools and installation directories. -ifneq (,$(wildcard $(..)config.make)) -include $(..)config.make -# Set a flag for the makefiles to indicated config.make was included. -configured = yes -endif - -# If we're not configured, don't do deps; then `make TAGS' and such can work. -ifndef configured -no_deps = t -endif - -# Test build options set by configure. -ifeq (no,$(build-profiled)) -no_prof = t -endif - - -# Flags for compilation. -# It is important to have this inclusion first; that picks up our -# library header files locally rather than from installed copies. -# Append to any value set by the specific Makefile or by configure. -ifeq ($(srcdir),.) -srcdirinc= -else -srcdirinc=-I$(srcdir) -endif -ifeq ($(top_srcdir),..) -top_srcdirinc= -else -top_srcdirinc=-I$(top_srcdir) -endif - -# More useful version of HURDLIBS -library_deps=$(foreach lib,$(HURDLIBS),$(..)lib$(lib)/lib$(lib).so) - -# Local programs: -MKINSTALLDIRS = $(top_srcdir)/mkinstalldirs +INCLUDES = -I. -I$(top_builddir) -I$(top_srcdir) -I$(..)include \ + -I$(top_srcdir)/include -I$(fakeincludedir) - -# Decode makemode. -# After this section, $(targets) and $(progtarg) will be defined, -# and everything else should use only those and not $(target). -# targets will have all the (one or more) targets that should be installed; -# progtarg will have all the (one or more) programs that should be linked; -# linktarg will have the complete set of linked targets, including both -# .static versions of $(progtarg) and/or shared library object targets. - -ifeq ($(makemode),server) - doinst := one - makemode-instdir := hurd - clean := yes - targets = $(target) - progtarg = $(targets) -endif - -ifeq ($(makemode),utility) - doinst := one - makemode-instdir := bin - clean := yes - targets = $(target) -endif - -ifeq ($(makemode),servers) - doinst := many - makemode-instdir := hurd - clean := yes - progtarg := $(targets) -endif - -ifeq ($(makemode),utilities) - doinst := many - makemode-instdir := bin - clean := yes - progtarg := $(targets) -endif - -ifeq ($(makemode),library) - - linktarg := $(libname).so.$(hurd-version) - - clean := yes - cleantarg := $(linktarg) $(addprefix $(libname),.a _p.a _pic.a \ - .so .so.$(hurd-version)) - - targets := $(libname).a $(libname).so - ifneq ($(no_pic),t) - targets += $(libname)_pic.a - endif - ifneq ($(no_prof),t) - targets += $(libname)_p.a - endif - - ifndef installhdrsubdir - installhdrsubdir = hurd - endif - -else - - ifeq ($(makemode),misc) - ifndef doinst - doinst := many - endif - ifeq ($(doinst),one) - targets = $(target) - endif - ifeq (,$(installationdir)) - ifneq (,$(targets)) - ?Error subdir Makefile must define installationdir - else - makemode-instdir := NOINSTALL - endif - endif - else # server/utility modes - progtarg := $(filter-out $(special-targets),$(targets)) - linktarg := $(progtarg) $(progtarg:=.static) - endif - -endif - -ifndef installationdir -installationdir := $($(makemode-instdir)dir) -endif - -ifeq ($(cleantarg),) - cleantarg := $(linktarg) -endif +AM_CPPFLAGS = $(INCLUDES) -D_GNU_SOURCE -D_IO_MTSAFE_IO -D_FILE_OFFSET_BITS=64 +AM_CFLAGS = -O3 -std=gnu99 + # This is a hack to give all hurd utilities a default bug-reporting # address (defined in libhurdbugaddr/bugaddr.c). -BUGADDR = $(..)libhurdbugaddr/libhurdbugaddr.a -BUGADDR_REF = -uargp_program_bug_address - -# Standard targets - -.PHONY: all install libs relink clean objs - -# Just build all the object files. -objs: $(OBJS) -ifneq ($(no_prof),t) -objs: $(OBJS:%.o=%_p.o) -endif -ifeq ($(makemode),library) -ifneq ($(no_pic),t) -objs: $(OBJS:%.o=%_pic.o) -endif -endif - -# Installation -ifneq ($(makemode),library) - -# not library -installable := $(sort $(linktarg) $(targets)) -install-targets := $(targets) $(filter $(build-static:=.static),$(linktarg)) -all: $(install-targets) -install: $(installationdir) $(addprefix $(installationdir)/,$(install-targets)) -$(addprefix $(installationdir)/,$(installable)): $(installationdir)/%: % - $(INSTALL_PROGRAM) $(INSTALL-$<-ops) $< $@ -else - -# library (several parts, library itself, headers, etc.) - -all: libs -install libs: add-to-librecord -add-to-librecord: $(targets) -install: $(libdir) $(includedir)/$(installhdrsubdir) $(libdir)/$(libname).so.$(hurd-version) $(addprefix $(libdir)/,$(targets)) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) - -install-headers: $(includedir)/$(installhdrsubdir) $(addprefix $(includedir)/$(installhdrsubdir)/,$(installhdrs)) - -$(includedir)/$(installhdrsubdir): $(includedir) - @$(MKINSTALLDIRS) $@ - -# Arrange to have the headers installed locally anytime we build the library. -# Not quite perfect, but at least it does end up getting done; and once done -# it never needs to be repeated for a particular header. -ifeq ($(installhdrsubdir),.) -local-installhdrsubdir = include -else -local-installhdrsubdir = $(installhdrsubdir) -endif -ifneq ($(local-installhdrsubdir),$(dir)) -INSTALLED_LOCAL_HEADERS := $(installhdrs:%=../$(local-installhdrsubdir)/%) -$(INSTALLED_LOCAL_HEADERS): ../$(local-installhdrsubdir)/%: ../config.make - @rm -f $@ - echo '#include "../$(dir)/$*"' > $@ -endif -libs: $(INSTALLED_LOCAL_HEADERS) -# Make sure we make those before compiling, since -MG will be unhelpful. -$(patsubst %.o,%.d,$(filter %.o,$(OBJS))): $(INSTALLED_LOCAL_HEADERS) - -# The installed local headers referring to our own files will use -# relative names with ../$(dir) and make won't notice that's us. -../$(dir)/%: % ; - -$(addprefix $(libdir)/$(libname),_p.a .a _pic.a): $(libdir)/%: % - $(INSTALL_DATA) $< $@ - $(RANLIB) $@ - -$(libdir)/$(libname).so.$(hurd-version): $(libname).so.$(hurd-version) - $(INSTALL_DATA) $< $@ - -$(libdir)/$(libname).so: $(libdir)/$(libname).so.$(hurd-version) - ln -f -s $( $@ - -# Making a snapshot -distfiles = Makefile ChangeLog $(SRCS) $(LCLHDRS) $(DIST_FILES) -lndist: $(distfiles) $(top_srcdir)/hurd-snap/$(dir) FORCE - ln $(addprefix $(srcdir)/,$(distfiles)) $(top_srcdir)/hurd-snap/$(dir) - -ifeq ($(dir),.) -$(top_srcdir)/hurd-snap/$(dir): -else -$(top_srcdir)/hurd-snap/$(dir): - mkdir $@ -endif - -# TAGS files -ifneq ($(dir),.) -ifdef configured -ifneq ($(OBJS:.o=.d),) -DEP_SRCS = sed -e 's/^.*://' -e 's/ \\$$//' | tr ' ' '\012'| \ - sed -n -e 's@^$(srcdir)@&@p' -e 's@^[^/]@&@p' | sort -ur -TAGSFILES=$(OBJS:.o=.d) $(OTHERTAGS) -else -TAGSFILES=$(OTHERTAGS) -endif -else -TAGSFILES=$(SRCS) $(OTHERTAGS) -endif - -TAGS: $(TAGSFILES) -ifeq ($(strip ($(TAGSFILES))),) -# no tags, but parent will include this file, so make empty one. - > $@ -else -ifdef DEP_SRCS - cat $(OBJS:.o=.d) | $(DEP_SRCS) | etags -o $@ - $(OTHERTAGS) -else - etags -o $@ $^ -endif -endif -endif - -# Cleaning -ifeq ($(clean),yes) -clean: - rm -f *.d *.*_d *.o *Server.c *User.c *_S.h *_U.h *.[su]defsi \ - $(cleantarg) -relink: - rm -f $(linktarg) -endif - -clean: -relink: +## XXX This should probably be replaced with the usual automake mechanism +## for this. - -# Subdependencies +BUGADDR = $(..)libhurdbugaddr/libhurdbugaddr.a +BUGADDR_REF = -uargp_program_bug_address -# We record which libraries have been built in this run in the file -# $(librecord). That file contains a series of lines like -# `../libfoo/libfoo.a ../libfoo/libfoo.so: ; /bin/true' -# that serve to inhibit the pattern rule which follows from doing anything. -# Above, when we make `libs' in library directories, we always append -# to $(librecord), so that future make invocations don't bother repeating -# the effort. - -# if this is the first level, then set librecord. Otherwise, read it in. -#ifeq ($(MAKELEVEL),0) -#librecord:=/tmp/hurd-make-$(shell echo $$$$) -#export librecord -#else -#include $(librecord) -#endif - -# How to create it. -#$(librecord): -# touch $(librecord) - -# `libs' target depends on this. -#add-to-librecord: -# echo $(addprefix ../$(dir)/,$(targets)) : \; /bin/true >> $(librecord) - -# Building libraries from other directories. We force both libraries to be -# built if either is, because it will use the appropriate one even if the other -# is specified in someone's dependency list. -#../%.a ../%.so: FORCE -# $(MAKE) -C $(dir $@) libs - -# Tell make where to find other -l libraries that we use -vpath libutil.% $(libdir)/ - -ifneq ($(dir),libstore) -$(boot-store-types:%=../libstore/libstore_%.a): ../libstore/libstore.so -endif +AM_LDFLAGS = $(BUGADDR_REF) -# Default rules to build PIC object files. -%_pic.o: %.c - $(COMPILE.c) $< -DPIC -fPIC -o $@ - -%_pic.o: %.S - $(COMPILE.S) $< -DPIC -o $@ - -# Default rules to build profiled object files. -%_p.o: %.c - $(COMPILE.c) $< -DPROF -pg -o $@ -%_p.o: %.S - $(COMPILE.S) $< -DPROF -o $@ - # How to build RPC stubs +# Where to find .defs files. +vpath %.defs $(top_srcdir)/hurd + # We always need this setting, because libc does not include the bogus names. MIGCOMFLAGS := -subrprefix __ # User settable variables: -# mig-sheader-prefix prepend to foo_S.h for name of foo.defs stub header +# mig_sheader_prefix prepend to foo_S.h for name of foo.defs stub header # MIGSFLAGS flags to CPP when building server stubs and headers -# foo-MIGSFLAGS same, but only for interface `foo' +# foo_MIGSFLAGS same, but only for interface `foo' # MIGCOMSFLAGS flags to MiG when building server stubs and headers -# foo-MIGCOMSFLAGS same, but only for interface `foo' +# foo_MIGCOMSFLAGS same, but only for interface `foo' # MIGUFLAGS flags to CPP when building user stubs and headers -# foo-MIGUFLAGS same, but only for interface `foo' +# foo_MIGUFLAGS same, but only for interface `foo' # MIGCOMUFLAGS flags to MiG when building user stubs and headers -# foo-MIGCOMUFLAGS same, but only for interface `foo' +# foo_MIGCOMUFLAGS same, but only for interface `foo' # CPPFLAGS flags to CPP # Implicit rules for building server and user stubs from mig .defs files. +SUFFIXES = Server.c User.c _U.h + # These chained rules could be (and used to be) single rules using pipes. # But it's convenient to be able to explicitly make the intermediate # files when you want to deal with a problem in the MiG stub generator. -$(mig-sheader-prefix)%_S.h %Server.c: %.sdefsi - $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMSFLAGS) $($*-MIGCOMSFLAGS) \ - -sheader $(mig-sheader-prefix)$*_S.h -server $*Server.c \ +$(mig_sheader_prefix)%_S.h %Server.c: %.sdefsi + $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMSFLAGS) $($*_MIGCOMSFLAGS) \ + -sheader $(mig_sheader_prefix)$*_S.h -server $*Server.c \ -user /dev/null -header /dev/null < $< %.sdefsi: %.defs - $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ $< -o $@ + $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) $(MIGSFLAGS) $($*_MIGSFLAGS) -DSERVERPREFIX=S_ $< -o $@ %.udefsi: %.defs - $(CPP) $(CPPFLAGS) $(MIGUFLAGS) $($*-MIGUFLAGS) $< -o $@ + $(CPP) $(AM_CPPFLAGS) $(CPPFLAGS) $(MIGUFLAGS) $($*_MIGUFLAGS) $< -o $@ %_U.h %User.c: %.udefsi - $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMUFLAGS) $($*-MIGCOMUFLAGS) < $< \ + $(MIGCOM) $(MIGCOMFLAGS) $(MIGCOMUFLAGS) $($*_MIGCOMUFLAGS) < $< \ -user $*User.c -server /dev/null -header $*_U.h -# Where to find .defs files. -vpath %.defs $(top_srcdir)/hurd - # These we want to find in the libc include directory... mach_defs_names = bootstrap exc mach mach4 \ mach_host mach_norma mach_port mach_timer_reply memory_object \ @@ -542,87 +114,27 @@ $(device_defs): %.defs: echo '#include ' > $@ +# Rule to generate stub header files so that they can be referred to as +# if they were in their final locations: -FORCE: +fakeincludedep = ${addprefix $(fakeincludedir)/, ${fakeinclude}} - -# How to build automatic dependencies +BUILT_SOURCES += ${fakeincludedep} -# Don't include dependencies if $(no_deps) is set; the master makefile -# does this for clean and other such targets that don't need -# dependencies. That then avoids rebuilding dependencies. - -ifneq ($(no_deps),t) - -# For each file generated by MiG we need a .d file. -# These lines assume that every Makefile that uses a foo_S.h or foo_U.h file -# also mentions the associated fooServer.o or fooUser.o file. --include $(subst Server.o,.migs_d,$(filter %Server.o,$(OBJS))) /dev/null --include $(subst User.o,.migu_d,$(filter %User.o,$(OBJS))) /dev/null --include $(subst Server.o,.migsh_d,$(filter %Server.o,$(OBJS))) /dev/null --include $(subst User.o,.miguh_d,$(filter %User.o,$(OBJS))) /dev/null - -ifneq ($(prof-depend),t) -ifneq ($(no_prof),t) --include $(addsuffix .prof_d,$(progtarg)) /dev/null -endif -endif - -# For each .o file we need a .d file. --include $(subst .o,.d,$(filter %.o,$(OBJS))) /dev/null - -endif - -# Here is how to build those dependency files - -# Dependencies for fooServer.c files. -%.migs_d: %.defs - (set -e; $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) \ - -DSERVERPREFIX=S_ -M -MG $< | \ - sed -e 's/\.defs\.o:/Server\.c $@:/' > $@) - -# Dependencies for fooUser.c files. -%.migu_d: %.defs - (set -e; $(CPP) $(CPPFLAGS) $(MIGUFLAGS) $($*-MIGUFLAGS) \ - -M -MG $< | \ - sed -e 's/\.defs\.o:/User\.c $@:/' > $@) - -# The associated .h files are build by the same CCP, so a simple massaging -# of the previous two will work. -%.migsh_d: %.migs_d - sed -e 's/Server\.c/_S\.h/' -e 's/migs_d/migsh_d/' < $< > $@ -%.miguh_d: %.migu_d - sed -e 's/User\.c/_U\.h/' -e 's/migu_d/miguh_d/' < $< > $@ - -%.prof_d: $(srcdir)/Makefile - $(MAKE) $* prof-depend=t - -ifeq ($(prof-depend),t) -$(progtarg): %: FORCE - rm -f $@.prof_d - echo $@.prof: $(subst .so,_p.a,$(subst .o,_p.o,$(filter-out FORCE,$+))) > $@.prof_d -endif - -define make-deps -set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \ -sed > $@.new -e 's/$*\.o:/$*.o $*_pic.o $*_p.o $@:/' \ - -e 's% [^ ]*/gcc-lib/[^ ]*\.h%%g' -mv -f $@.new $@ -endef - -# Here is how to make .d files from .c files -%.d: %.c; $(make-deps) -# Here is how to make .d files from .S files -%.d: %.S; $(make-deps) - -# .s files don't go through the preprocessor, so we do this -# This rule must come *after* the genuine ones above, so that -# make doesn't build a .s file and then make an empty dependency -# list. -%.d: %.s - echo '$*.o: $<' > $@ +${fakeincludedep}: $(notdir $@) + mkdir -p $(dir $@) +# Handle srcdir != builddir case + if test -f "$(srcdir)/$(notdir $@)"; then \ + echo '#include "$(CURDIR)/$(srcdir)/$(notdir $@)"' > $@; \ + else \ + echo '#include "$(CURDIR)/$(notdir $@)"' > $@; \ + fi +FORCE: + + # Rule to make executable shell scripts from .sh files. -%: %.sh $(top_srcdir)/sh-version.sed - sed -e 's/STANDARD_HURD_VERSION_\\(.[^_]*\\)_/\\1 (GNU Hurd) $(hurd-version)/' < $< > $@ +% :: %.sh $(top_builddir)/version.h + sed -e 's/STANDARD_HURD_VERSION_\\(.[^_]*\\)_/\\1 (GNU Hurd) $(VERSION)/' < $< > $@ chmod +x $@ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/Makefile.am hurd/Makefile.am --- hurd/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/Makefile.am 2006-01-07 03:05:02.000000000 +0100 @@ -0,0 +1,56 @@ +## Copyright (C) 2002 Free Software Foundation, Inc. +## +## This program is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License as +## published by the Free Software Foundation; either version 2, or (at +## your option) any later version. +## +## This program is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc. +## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +include $(top_srcdir)/Makeconf + +BUILT_SOURCES += version.h + +EXTRA_DIST = COPYING Makeconf config.make.in configure.in configure \ + move-if-change hurd.boot build.mk.in build.mkcf.in aclocal.m4 \ + README NEWS tasks INSTALL INSTALL-cross version.h.in + + +## Subdirectories of this directory should all be mentioned here + +# Hurd libraries +libdirs = libthreads libshouldbeinlibc libihash libiohelp libports \ + libpager libfshelp libstore libdiskfs libtrivfs libps \ + libnetfs libpipe libhurdbugaddr libftpconn libcons \ + libpthread + +# Hurd programs +progdirs = auth proc exec init term \ + ufs ext2fs isofs nfs tmpfs \ + storeio pflocal defpager mach-defpager \ + login daemons nfsd serverboot \ + hostmux usermux ftpfs trans \ + utils sutils ufs-fsck ufs-utils \ + benchmarks fstests #pfinet boot console console-client + +# Other directories +otherdirs = hurd doc config release include debian + +# All the subdirectories together +SUBDIRS = $(libdirs) $(progdirs) $(otherdirs) + +version.h: version.h.in + sed -e 's/MASTER_HURD_VERSION/\"$(hurd-version)\"/' < $< > $@ + +release: + $(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"` + +.PHONY: release diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/auth/Makefile.am hurd/auth/Makefile.am --- hurd/auth/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/auth/Makefile.am 2006-01-07 02:41:22.000000000 +0100 @@ -0,0 +1,37 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = auth + +MIGSTUBS = authServer.c auth_replyUser.c + +nodist_auth_SOURCES = $(MIGSTUBS) +auth_SOURCES = auth.c + +noinst_HEADERS = authmutations.h auth_mig.h + +auth_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +auth_MIGSFLAGS = -imacros $(srcdir)/authmutations.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/benchmarks/Makefile.am hurd/benchmarks/Makefile.am --- hurd/benchmarks/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/benchmarks/Makefile.am 2006-01-07 02:12:29.000000000 +0100 @@ -0,0 +1,23 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = forks + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/boot/Makefile.am hurd/boot/Makefile.am --- hurd/boot/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/boot/Makefile.am 2006-01-07 02:09:09.000000000 +0100 @@ -0,0 +1,63 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = boot + +BOOTSOURCES = mach-crt0.c boot.c ux.c sigvec.S syscall.S \ + boot_script.c userland-boot.c + +MIGSTUBS = notifyServer.lo ourdeviceServer.lo \ + ioServer.lo io_replyUser.lo device_replyUser.lo \ + termServer.lo bootstrapServer.lo boot_script.lo userland-boot.lo + +boot_SOURCES = $(BOOTSOURCES) + +#UX-OBJS = mach-crt0.o uxboot.o sigvec.o syscall.o ux.o $(COMMON-OBJS) + +noinst_HEADERS = boot_script.h ux.h + +io_MIGSFLAGS = -DREPLY_PORTS + +EXTRA_DIST = frank1.ld frankemul.ld + +boot_LDADD = $(MIGSTUBS) \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la \ + $(top_builddir)/libthreads/libthreads.la + +#install: /usr/local/bin/uxboot +# +#/usr/local/bin/uxboot: uxboot +# cp $< $@ + +ourdevice.defs: device.defs + $(CPP) $(CPPFLAGS) -x c $< | sed -e '/out[ ]*device[ ]*:[ ]*device_t/s/device_t/mach_port_send_t/' > $@ + + +uxboot.o: boot.c + $(COMPILE.c) -DUX $< -o $@ + +uxboot.0: $(UX-OBJS) ../libthreads/libthreads.a + $(LINK.o) -o $@ -static -nostartfiles -Wl,-T -Wl,$(srcdir)/frank1.ld $^ +uxboot.1: frankemul.ld uxboot.0 + $(LD) -o $@ -T $^ +uxboot: uxboot.1 + -$(OBJCOPY) -S --remove-section=.comment -O a.out-mach3 $< $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/bsdfsck/Makefile.am hurd/bsdfsck/Makefile.am --- hurd/bsdfsck/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/bsdfsck/Makefile.am 2006-01-07 02:13:10.000000000 +0100 @@ -0,0 +1,33 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = bsdfsck + +bsdfsck_SOURCES = dir.c inode.c \ + main.c pass1.c \ + pass1b.c pass2.c \ + pass3.c pass4.c \ + pass5.c setup.c \ + utilities.c \ + $(top_srcdir)/ufs/tables.c # preen.c + +noinst_HEADERS = fsck.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/build.mk.in hurd/build.mk.in --- hurd/build.mk.in 2006-01-07 03:24:16.000000000 +0100 +++ hurd/build.mk.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -# @configure_input@ -# Generic subdirectory makefile for Hurd configured outside ${srcdir}. - -top_srcdir = @top_srcdir@ -srcdir = @srcdir@ - -VPATH = $(srcdir) - -include $(srcdir)/Makefile diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/build.mkcf.in hurd/build.mkcf.in --- hurd/build.mkcf.in 2006-01-07 03:24:16.000000000 +0100 +++ hurd/build.mkcf.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ - -# Get the make rules from the source directory. -include $(top_srcdir)/Makeconf diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/config/Makefile.am hurd/config/Makefile.am --- hurd/config/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/config/Makefile.am 2006-01-07 02:21:21.000000000 +0100 @@ -0,0 +1,29 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +logindir = ${sysconfdir}/login + +# XXX Hook these so that they don't overwrite existing files! + +sysconf_DATA = motd ttys +# XXX Make this do the right thing. +#login_DATA = .bash_login .bashrc .hushlogin .profile README + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/config.make.in hurd/config.make.in --- hurd/config.make.in 2006-01-07 03:24:16.000000000 +0100 +++ hurd/config.make.in 2006-01-07 03:05:02.000000000 +0100 @@ -15,17 +15,17 @@ exec_prefix = @exec_prefix@ # Directories where things get installed. -hurddir = ${exec_prefix}/hurd -libdir = @libdir@ -bindir = @bindir@ -sbindir = @sbindir@ -includedir = @includedir@ -libexecdir = @libexecdir@ -bootdir = ${exec_prefix}/boot -infodir = @infodir@ -sysconfdir = @sysconfdir@ -localstatedir = @localstatedir@ -sharedstatedir = @sharedstatedir@ +hurddir = $(exec_prefix)/hurd +libdir = $(exec_prefix)/lib +bindir = $(exec_prefix)/bin +sbindir = $(exec_prefix)/sbin +includedir = $(exec_prefix)/include +libexecdir = $(exec_prefix)/libexec +bootdir = $(exec_prefix)/boot +infodir = $(prefix)/info +sysconfdir = $(prefix)/etc +localstatedir = $(prefix)/var +sharedstatedir = $(prefix)/com # All of those directories together: installationdirlist = $(hurddir) $(libdir) $(bindir) $(sbindir) \ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/configure.ac hurd/configure.ac --- hurd/configure.ac 1970-01-01 01:00:00.000000000 +0100 +++ hurd/configure.ac 2006-01-07 03:05:02.000000000 +0100 @@ -0,0 +1,263 @@ +dnl Process this file with autoconf to produce a configure script. +AC_REVISION([$Id: configure.in,v 1.34 2002/08/30 00:27:32 roland Exp $]) +AC_PREREQ(2.54) dnl Minimum Autoconf version required. +AC_INIT +AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl A distinctive file to look for in srcdir. + +AM_INIT_AUTOMAKE(hurd, 0.3) +AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. + +AC_CANONICAL_HOST +case "$host_os" in +gnu*) ;; +none) AC_MSG_ERROR([ +*** You must specify a host of $host_cpu-gnu or $host_cpu-$host_vendor-gnu +*** to configure; you will need to use the same host specification +*** to configure other packages for the GNU/Hurd system.]) ;; +*) AC_MSG_ERROR([this is the gnu os, host cannot be $host_os +*** Host configuration must be \`MACHINE-gnu' or \`MACHINE-VENDOR-gnu'. +*** To cross-compile, you must specify both --host and --build; +*** for example \`--build=$host --host=$host_cpu-gnu'. +*** Run $0 --help for more information.]) ;; +esac + +case "$host_cpu" in +alpha*) + asm_syntax=alpha + ;; +arm*) + asm_syntax=arm + ;; +m68k | m680?0) + asm_syntax=m68k + ;; +mips*) + asm_syntax=mips + ;; +i?86) + asm_syntax=i386 + ;; +powerpc*) + asm_syntax=ppc + ;; +sparc64* | ultrasparc*) + asm_syntax=sparc64 + ;; +sparc*) + asm_syntax=sparc + ;; +*) + asm_syntax="$host_cpu" + ;; +esac +AC_SUBST(asm_syntax) + +test -r "$srcdir/libthreads/$asm_syntax/cthreads.h" || { + AC_MSG_WARN([unsupported CPU type $host_cpu]) +} + +AC_ARG_ENABLE(profile, +[ --disable-profile do not build profiled libraries and programs]) +AC_SUBST(enable_profile) + +define([default_static],['ext2fs,ufs'])dnl +AC_ARG_ENABLE(static-progs, +[ --enable-static-progs=PROGRAMS... + build statically-linked PROGRAM.static versions + of (only) the listed programs ]dnl +changequote(',')[default_static]changequote([,])) +case "$enable_static_progs" in +'no') enable_static_progs= ;; # we got --disable-static +'') enable_static_progs=default_static ;; +esac +# Convert comma/space-separated list into space-separated list. +enable_static_progs=`echo "$enable_static_progs" | sed 's/[[, ]][[, ]]*/ /g'` +AC_SUBST(enable_static_progs) + +AC_PROG_INSTALL +AC_PROG_AWK + +AC_PROG_CC +# Require GCC. +if test x$GCC != xyes; then + AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) +fi + +AC_CHECK_TOOL(LD, ld) +AC_CHECK_TOOL(OBJCOPY, objcopy) +AC_CHECK_TOOL(AR, ar) +AC_CHECK_TOOL(RANLIB, ranlib) +AC_CHECK_TOOL(MIG, mig) + +AM_PROG_AS + +dnl Let these propagate from the environment. +AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) + +# See if there's a separate libcrypt (many systems put crypt there). +AC_CHECK_LIB(crypt, crypt, LIBCRYPT=-lcrypt) +AC_SUBST(LIBCRYPT) + +hurd_MIG_RETCODE + +# See if --version-script is available. +AC_CACHE_CHECK(for ld --version-script, hurd_cv_ld_version_script_option, [dnl +cat > conftest.c <<\EOF +void foobar() {} +EOF +cat > conftest.map <<\EOF +VERS_1 { + global: sym; +}; + +VERS_2 { + global: sym; +} VERS_1; +EOF + +if AC_TRY_COMMAND([eval $ac_compile 1>&AS_MESSAGE_LOG_FD()]) && + AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o + -nostartfiles -nostdlib + -Wl,--version-script,conftest.map + 1>&AS_MESSAGE_LOG_FD()]); then + hurd_cv_ld_version_script_option=yes +else + hurd_cv_ld_version_script_option=no +fi +rm -f conftest*]) + +# See if libc was built with --enable-libio. +AC_CACHE_CHECK([for libio], + hurd_cv_libio, + AC_TRY_COMPILE([#include +#ifndef _STDIO_USES_IOSTREAM +# error No libio found. +#endif],, + hurd_cv_libio=yes, + hurd_cv_libio=no)) + +# The versions of the symbols in libthreads have to match those in +# libc.so. Since the symbols in a libc that includes libio will be +# versioned differently from the ones in a libc that uses stdio, this +# isn't easy to accomplish. Instead we leave things unversioned if +# libio isn't found. +if test $hurd_cv_libio = yes; then + VERSIONING=$hurd_cv_ld_version_script_option +else + VERSIONING=no +fi +AC_SUBST(VERSIONING) + +# Check if libc contains getgrouplist and/or uselocale. +AC_CHECK_FUNCS(getgrouplist uselocale) + +AC_ARG_WITH(parted, dnl +[ --without-parted don't try to use GNU Parted libraries], + , with_parted=yes) + +AC_ARG_ENABLE(boot-store-types, +[ --enable-boot-store-types=TYPES... + list of store types included in statically + linked filesystems used for booting])dnl +if test -z "$enable_boot_store_types"; then + boot_store_types='device remap gunzip bunzip2' + + # Check for Parted's static store module. + if test "x$with_parted" != xno; then + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -static" + AC_CHECK_LIB(store_part, store_part_open, [dnl + boot_store_types="$boot_store_types part"], , -luuid -lstore) + LDFLAGS="$save_LDFLAGS" + fi +elif test "x$enable_boot_store_types" = xno; then + AC_MSG_WARN([you probably wanted --disable-static-progs]) +else + boot_store_types="$enable_boot_store_types" +fi +AC_SUBST(boot_store_types)dnl +AC_MSG_CHECKING(boot store types) +AC_MSG_RESULT($boot_store_types) + +# Check for ncursesw, which is needed for the console-curses client. +hurd_LIB_NCURSESW + +AM_PROG_LIBTOOL + +hurddir="\${prefix}/hurd" +AC_SUBST(hurddir) + +bootdir="\${prefix}/boot" +AC_SUBST(bootdir) + +# The following directories exist in the tree, but don't get distributed. +# libdirmgt/Makefile +# libtreefs/Makefile +# bsdfsck/Makefile + +# boot/Makefile +# console/Makefile +# console-client/Makefile +# pfinet/Makefile + +AC_CONFIG_FILES([config.make + Makefile + debian/Makefile + libcons/Makefile + libdiskfs/Makefile + libfshelp/Makefile + libftpconn/Makefile + libhurdbugaddr/Makefile + libihash/Makefile + libiohelp/Makefile + libnetfs/Makefile + libpager/Makefile + libpipe/Makefile + libports/Makefile + libps/Makefile + libpthread/Makefile + libshouldbeinlibc/Makefile + libstore/Makefile + libthreads/Makefile + libtrivfs/Makefile + auth/Makefile + benchmarks/Makefile + config/Makefile + daemons/Makefile + defpager/Makefile + doc/Makefile + exec/Makefile + ext2fs/Makefile + fstests/Makefile + ftpfs/Makefile + hostmux/Makefile + hurd/Makefile + include/Makefile + init/Makefile + isofs/Makefile + login/Makefile + nfs/Makefile + nfsd/Makefile + mach-defpager/Makefile + pflocal/Makefile + proc/Makefile + release/Makefile + serverboot/Makefile + storeio/Makefile + sutils/Makefile + term/Makefile + tmpfs/Makefile + trans/Makefile + ufs/Makefile + ufs-fsck/Makefile + ufs-utils/Makefile + usermux/Makefile + utils/Makefile]) +AC_OUTPUT + +dnl Local Variables: +dnl comment-start: "dnl " +dnl comment-end: "" +dnl comment-start-skip: "\\bdnl\\b\\s *" +dnl compile-command: "autoconf" +dnl End: diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/configure.in hurd/configure.in --- hurd/configure.in 2006-01-07 03:24:17.000000000 +0100 +++ hurd/configure.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,202 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -AC_REVISION([$Id: configure.in,v 1.35 2003/02/15 23:57:50 roland Exp $]) -AC_PREREQ(2.54) dnl Minimum Autoconf version required. -AC_INIT -AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir. - -AC_PREFIX_DEFAULT() dnl Default to empty prefix, not /usr/local. - -AC_CANONICAL_HOST -case "$host_os" in -gnu*) ;; -none) AC_MSG_ERROR([ -*** You must specify a host of $host_cpu-gnu or $host_cpu-$host_vendor-gnu -*** to configure; you will need to use the same host specification -*** to configure other packages for the GNU/Hurd system.]) ;; -*) AC_MSG_ERROR([this is the gnu os, host cannot be $host_os -*** Host configuration must be \`MACHINE-gnu' or \`MACHINE-VENDOR-gnu'. -*** To cross-compile, you must specify both --host and --build; -*** for example \`--build=$host --host=$host_cpu-gnu'. -*** Run $0 --help for more information.]) ;; -esac - -case "$host_cpu" in -alpha*) - asm_syntax=alpha - ;; -arm*) - asm_syntax=arm - ;; -m68k | m680?0) - asm_syntax=m68k - ;; -mips*) - asm_syntax=mips - ;; -i?86) - asm_syntax=i386 - ;; -powerpc*) - asm_syntax=ppc - ;; -sparc64* | ultrasparc*) - asm_syntax=sparc64 - ;; -sparc*) - asm_syntax=sparc - ;; -*) - asm_syntax="$host_cpu" - ;; -esac -AC_SUBST(asm_syntax) - -test -r "$srcdir/libthreads/$asm_syntax/cthreads.h" || { - AC_MSG_WARN([unsupported CPU type $host_cpu]) -} - -AC_ARG_ENABLE(profile, -[ --disable-profile do not build profiled libraries and programs]) -AC_SUBST(enable_profile) - -define([default_static],['ext2fs,ufs'])dnl -AC_ARG_ENABLE(static-progs, -[ --enable-static-progs=PROGRAMS... - build statically-linked PROGRAM.static versions - of (only) the listed programs ]dnl -changequote(',')[default_static]changequote([,])) -case "$enable_static_progs" in -'no') enable_static_progs= ;; # we got --disable-static -'') enable_static_progs=default_static ;; -esac -# Convert comma/space-separated list into space-separated list. -enable_static_progs=`echo "$enable_static_progs" | sed 's/[[, ]][[, ]]*/ /g'` -AC_SUBST(enable_static_progs) - -AC_PROG_INSTALL -AC_PROG_AWK - -AC_PROG_CC -# Require GCC. -if test x$GCC != xyes; then - AC_MSG_ERROR([this code uses GNU C extensions, you must compile with GCC]) -fi - -AC_CHECK_TOOL(LD, ld) -AC_CHECK_TOOL(OBJCOPY, objcopy) -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib) -AC_CHECK_TOOL(MIG, mig) - -dnl Let these propagate from the environment. -AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) - -# See if there's a separate libcrypt (many systems put crypt there). -AC_CHECK_LIB(crypt, crypt, LIBCRYPT=-lcrypt) -AC_SUBST(LIBCRYPT) - -hurd_MIG_RETCODE - -# See if --version-script is available. -AC_CACHE_CHECK(for ld --version-script, hurd_cv_ld_version_script_option, [dnl -cat > conftest.c <<\EOF -void foobar() {} -EOF -cat > conftest.map <<\EOF -VERS_1 { - global: sym; -}; - -VERS_2 { - global: sym; -} VERS_1; -EOF - -if AC_TRY_COMMAND([eval $ac_compile 1>&AS_MESSAGE_LOG_FD()]) && - AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o - -nostartfiles -nostdlib - -Wl,--version-script,conftest.map - 1>&AS_MESSAGE_LOG_FD()]); then - hurd_cv_ld_version_script_option=yes -else - hurd_cv_ld_version_script_option=no -fi -rm -f conftest*]) - -# See if libc was built with --enable-libio. -AC_CACHE_CHECK([for libio], - hurd_cv_libio, - AC_TRY_COMPILE([#include -#ifndef _STDIO_USES_IOSTREAM -# error No libio found. -#endif],, - hurd_cv_libio=yes, - hurd_cv_libio=no)) - -# The versions of the symbols in libthreads have to match those in -# libc.so. Since the symbols in a libc that includes libio will be -# versioned differently from the ones in a libc that uses stdio, this -# isn't easy to accomplish. Instead we leave things unversioned if -# libio isn't found. -if test $hurd_cv_libio = yes; then - VERSIONING=$hurd_cv_ld_version_script_option -else - VERSIONING=no -fi -AC_SUBST(VERSIONING) - -# Check if libc contains getgrouplist and/or uselocale. -AC_CHECK_FUNCS(getgrouplist uselocale) - -AC_ARG_WITH(parted, dnl -[ --without-parted don't try to use GNU Parted libraries], - , with_parted=yes) - -AC_ARG_ENABLE(boot-store-types, -[ --enable-boot-store-types=TYPES... - list of store types included in statically - linked filesystems used for booting])dnl -if test -z "$enable_boot_store_types"; then - boot_store_types='device remap gunzip bunzip2' - - # Check for Parted's static store module. - if test "x$with_parted" != xno; then - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS -static" - AC_CHECK_LIB(store_part, store_part_open, [dnl - boot_store_types="$boot_store_types part"], , -luuid -lstore) - LDFLAGS="$save_LDFLAGS" - fi -elif test "x$enable_boot_store_types" = xno; then - AC_MSG_WARN([you probably wanted --disable-static-progs]) -else - boot_store_types="$enable_boot_store_types" -fi -AC_SUBST(boot_store_types)dnl -AC_MSG_CHECKING(boot store types) -AC_MSG_RESULT($boot_store_types) - -# Check for ncursesw, which is needed for the console-curses client. -hurd_LIB_NCURSESW - -if test -f ./$ac_unique_file; then - # Configuring in source directory; don't create any Makefiles. - makefiles= -else - # We are configuring in a separate build tree. - # Create a Makefile in the top-level build directory and - # one for each subdirectory Makefile in the source. - makefiles="Makeconf:build.mkcf.in \ - `cd $srcdir; for file in Makefile */Makefile; do \ - echo ${file}:build.mk.in; done`" -fi - -AC_CONFIG_FILES([config.make ${makefiles}]) -AC_OUTPUT - -dnl Local Variables: -dnl comment-start: "dnl " -dnl comment-end: "" -dnl comment-start-skip: "\\bdnl\\b\\s *" -dnl compile-command: "autoconf" -dnl End: diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/console/Makefile.am hurd/console/Makefile.am --- hurd/console/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/console/Makefile.am 2006-01-07 02:55:03.000000000 +0100 @@ -0,0 +1,54 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = console + +MIGSTUBS = notifyServer.c tioctlServer.c fs_notifyUser.c + +nodist_console_SOURCES = $(MIGSTUBS) + +console_SOURCES = console.c display.c input.c + +noinst_HEADERS = display.h input.h priv.h mutations.h + +EXTRA_DIST = hurd.ti + +console_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +MIGSFLAGS = -imacros $(srcdir)/mutations.h + +# This is the old monolithic version of the console server. +#SRCS = main.c vcons.c focus.c vga-display.c vga.c dynafont.c bdf.c +#LCLHDRS = focus.h input-drv.h vcons.h display-drv.h vga.h vga-hw.h \ +# dynafont.h bdf.h mutations.h priv.h +# +#HURDLIBS = trivfs fshelp iohelp threads ports ihash shouldbeinlibc +#OBJS = $(subst .c,.o,$(SRCS)) tioctlServer.o +# +#MIGSFLAGS += -imacros $(srcdir)/mutations.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/console-client/Makefile.am hurd/console-client/Makefile.am --- hurd/console-client/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/console-client/Makefile.am 2006-01-07 02:32:34.000000000 +0100 @@ -0,0 +1,77 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = console-client + +console_client_SOURCES = console.c timer.c driver.c + +noinst_HEADERS = timer.h driver.h display.h input.h bell.h \ + unicode.h bdf.h \ + vga-dynafont.h vga-dynacolor.h vga-hw.h vga.h + +console_client_LDADD = $(top_builddir)/libcons/libcons.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la \ + -ldl + +moduledir = $(libdir)/hurd/console +console_client_LDFLAGS = -Wl,-E + +# In seeking, thou shalt find it! +AM_CPPFLAGS += -DQUAERENDO_INVENIETIS + + +driverCPPFLAGS = -D'CONSOLE_DEFPATH="$(module-dir)\0"' \ + -D'CONSOLE_SONAME_SUFFIX=".so.$(hurd-version)"' + +modules = vga pc_kbd generic_speaker + +#vga.so.$(hurd-version): $(patsubst %.c,%_pic.o,bdf.c vga-dynafont.c \ +# vga-dynacolor.c vga-support.c vga.c) +#pc_kbd.so.$(hurd-version): $(patsubst %.c,%_pic.o,pc-kbd.c) +#generic_speaker.so.$(hurd-version): $(patsubst %.c,%_pic.o,generic-speaker.c) + +#ifneq ($(LIBNCURSESW),) +#modules += ncursesw +#ncursesw.so.$(hurd-version): $(patsubst %.c,%_pic.o,ncursesw.c) +#ncurseswCPPFLAGS = $(NCURSESW_INCLUDE) +#ncurseswLDLIBS = $(LIBNCURSESW) +#endif + +# all: $(addsuffix .so.$(hurd-version), $(modules)) + +cleantarg = $(addsuffix .so.$(hurd-version), $(modules)) + +# install: $(module-dir) $(addprefix $(module-dir)/,$(addsuffix .so.$(hurd-version),$(modules))) + +$(module-dir): + @$(MKINSTALLDIRS) $@ + +$(module-dir)/%: % + $(INSTALL_DATA) $< $@ + +# You can use this rule to make a dynamically-loadable version of any +# of the modules. +#%.so.$(hurd-version): +# $(CC) -shared -Wl,-soname=$@ -o $@ $(rpath) \ +# $(CFLAGS) $($*-CFLAGS) $(LDFLAGS) \ +# '-Wl,-(' $($*-LDLIBS) '-Wl,-)' $^ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/daemons/Makefile.am hurd/daemons/Makefile.am --- hurd/daemons/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/daemons/Makefile.am 2006-01-07 02:47:28.000000000 +0100 @@ -0,0 +1,41 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +libexec_PROGRAMS = getty mail.local console-run runttys +libexec_SCRIPTS = rc runsystem + +# special-targets = rc runsystem + +SRCS = rc.sh getty.c lmail.c console-run.c runttys.c + +LIBS = $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +getty_LDADD = -lutil + +# JB INSTALL-mail.local-ops = -o root -m 4755 + +mail_local_SOURCES = lmail.c + +console_run_LDADD = $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libports/libports.la + +runttys_LDADD = -lutil + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/debian/Makefile.am hurd/debian/Makefile.am --- hurd/debian/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/debian/Makefile.am 2006-01-07 01:39:09.000000000 +0100 @@ -0,0 +1,3 @@ +# Just distribute the files we need. +EXTRA_DIST = README.Debian TODO changelog conffiles control copyright \ + rules servers.boot diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/defpager/Makefile.am hurd/defpager/Makefile.am --- hurd/defpager/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/defpager/Makefile.am 2006-01-07 03:01:29.000000000 +0100 @@ -0,0 +1,32 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = defpager + +## XXX Why do we do this? + +subst_functions=__syscall_vm_allocate syscall_vm_allocate \ + __vm_allocate_rpc vm_allocate_rpc \ + __syscall_vm_map syscall_vm_map \ + __vm_map_rpc vm_map_rpc +comma=, +AM_LDFLAGS += -Wl,$(subst :,$(comma),$(strip $(subst_functions))) + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/doc/Makefile.am hurd/doc/Makefile.am --- hurd/doc/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/doc/Makefile.am 2006-01-07 02:11:13.000000000 +0100 @@ -0,0 +1,25 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +info_TEXINFOS = hurd.texi + +hurd_TEXINFOS = gpl.texinfo hurd.texi + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/exec/Makefile.am hurd/exec/Makefile.am --- hurd/exec/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/exec/Makefile.am 2006-01-07 02:15:22.000000000 +0100 @@ -0,0 +1,49 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = exec + +gzip_sources = unzip.c util.c inflate.c +bzip2_sources = do-bunzip2.c + +AM_CPPFLAGS += -DGZIP -DBZIP2 # -DBFD + +MIGSTUBS = execServer.c exec_startupServer.c + +nodist_exec_SOURCES = $(MIGSTUBS) + +exec_SOURCES = exec.c main.c hashexec.c hostarch.c $(gzip_sources) \ + $(bzip2_sources) + +noinst_HEADERS = gzip.h crypt.h tailor.h priv.h execmutations.h + +EXTRA_DIST = elfcore.c + +exec_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +exec_MIGSFLAGS = -imacros $(srcdir)/execmutations.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/ext2fs/Makefile.am hurd/ext2fs/Makefile.am --- hurd/ext2fs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/ext2fs/Makefile.am 2006-01-07 02:28:23.000000000 +0100 @@ -0,0 +1,45 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +SRCS = balloc.c dir.c ext2fs.c getblk.c hyper.c ialloc.c \ + inode.c pager.c pokel.c truncate.c storeinfo.c msg.c + +hurd_PROGRAMS = ext2fs ext2fs.static + +ext2fs_SOURCES = $(SRCS) +ext2fs_static_SOURCES = $(SRCS) + +noinst_HEADERS = ext2fs.h ext2_fs.h ext2_fs_i.h bitmap.c + +EXT2FSLIBS = $(top_builddir)/libdiskfs/libdiskfs.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +ext2fs_LDADD = $(EXT2FSLIBS) +ext2fs_static_LDADD = $(EXT2FSLIBS) + +ext2fs_static_LDFLAGS = -all-static diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/fstests/Makefile.am hurd/fstests/Makefile.am --- hurd/fstests/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/fstests/Makefile.am 2006-01-07 02:04:10.000000000 +0100 @@ -0,0 +1,23 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = timertest fstests # opendisk fdtests + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/ftpfs/Makefile.am hurd/ftpfs/Makefile.am --- hurd/ftpfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/ftpfs/Makefile.am 2006-01-07 02:44:09.000000000 +0100 @@ -0,0 +1,37 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = ftpfs + +ftpfs_SOURCES = ftpfs.c fs.c host.c netfs.c dir.c conn.c ccache.c \ + node.c ncache.c + +noinst_HEADERS = ftpfs.h ccache.h + +ftpfs_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libftpconn/libftpconn.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/hostmux/Makefile.am hurd/hostmux/Makefile.am --- hurd/hostmux/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/hostmux/Makefile.am 2006-01-07 02:43:05.000000000 +0100 @@ -0,0 +1,35 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = hostmux + +hostmux_SOURCES = hostmux.c mux.c leaf.c node.c stubs.c + +noinst_HEADERS = hostmux.h + +hostmux_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/hurd/Makefile.am hurd/hurd/Makefile.am --- hurd/hurd/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/hurd/Makefile.am 2006-01-07 02:19:15.000000000 +0100 @@ -0,0 +1,77 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +EXTRA_DIST = subsystems ioctl-tmpl.sym ioctl.awk gensym.awk \ + default_pager_types.h + +hurdinclude_HEADERS = hurd_types.h version.h ioctl_types.h paths.h \ + shared.h console.h $(notdir $(wildcard $(srcdir)/*.defs)) + +%.msgids: $(srcdir)/%.defs + if grep -q '^subsystem' $<; \ + then $(CPP) $(CPPFLAGS) $< | $(MIGCOM) -n -list $@; \ + else > $@; fi + +hurd.msgids: $(patsubst %.defs,%.msgids,$(filter %.defs,$(INSTHDRS))) + cat $^ > $@ + +# +# The following rules assist in creating an `Xioctl.defs' file +# to define RPCs that are sent primarily by ioctl commands. +# To use them, write a file `Xioctl-headers.h', e.g. for `mioctl-headers.h': +# #include +# with an #include for each header that defines ioctl request macros +# using _IO('X') et al. Then `make Xioctl-proto.defs' will create +# a prototype file for you to hand-edit into `Xioctl.defs'. + +# Building foo.h from foo.sym: +%.symc: %.sym + $(AWK) -f $(srcdir)/gensym.awk $< >$*.symc +%.symc.o: %.symc + $(CC) -S $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS-$@) -x c -o $@ $< +%.h: %.symc.o + sed <$< -e 's/^[^*].*$$//' | \ + sed -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' -e '/^ *$$/d' >$@ + +%-ioctls.sym: tmpl-ioctls.sym + sed 's|HEADER|<$(subst +,/,$*)>|' $< > $@ + +cpp = $(CC) $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS-$@) -E -x c + +%ioctl-requests.list: %ioctl-headers.h + $(cpp) $< | sed -n 's/^#.*"\([^"]*\)".*$$/\1/p' | sort | uniq | \ + while read f; do \ + sed -n 's/^[ ]*#[ ]*define[ ]*\([A-Z0-9_]*\)[^A-Z0-9_][^A-Z0-9_]*_IO.*'\'$*\'.*$$'/\1/p' $$f; \ + done | sort | uniq > $@ + +%ioctl.defs: %ioctl.sym + +%ioctl-values.sym: %ioctl-headers.h %ioctl-requests.list ioctl-tmpl.sym + (sed 's%@HEADER_LIST@%$<%;s/@GROUP@/$*/g' < $(filter %.sym,$^); \ + while read r; do \ + for x in CMD SUBID INOUT TYPE \ + TYPE0 TYPE1 TYPE2 COUNT0 COUNT1 COUNT2; do \ + echo "expr $${x}($${r}) $${r}_$${x}"; \ + done; \ + done < $(filter %.list,$^)) > $@ + +%ioctl-proto.defs: %ioctl-values.h ioctl.awk + sed 's/^#define//;s/_/ /g' $< | $(AWK) -f $(filter %.awk,$^) > $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/hurd/install-headers.in hurd/hurd/install-headers.in --- hurd/hurd/install-headers.in 2003-02-16 00:52:51.000000000 +0100 +++ hurd/hurd/install-headers.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -#!/bin/sh -e -# @configure_input@ -# -# This is a trivial script for those who aren't comfortable typing: -# cp hurd/*.h hurd/*.defs /usr/local/i686-gnu/include/hurd/ -# by themselves. That is, it copies the essential Hurd header files -# into $(includedir) before you attempt to build the Hurd itself. -# In addition to installing Mach headers, this is sufficient to bootstrap -# an empty cross-compilation environment such that glibc can be compiled. - -srcdir=@srcdir@ -prefix=@prefix@ -exec_prefix=@exec_prefix@ -includedir=@includedir@ - -INSTALL="@INSTALL@" -INSTALL_DATA="@INSTALL_DATA@" - -${srcdir}/../mkinstalldirs ${includedir}/hurd -for file in `cd ${srcdir}; echo *.h *.defs`; do - ${INSTALL_DATA} ${file} ${includedir}/hurd/${file} -done diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/include/Makefile.am hurd/include/Makefile.am --- hurd/include/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/include/Makefile.am 2006-01-07 02:13:52.000000000 +0100 @@ -0,0 +1,23 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +include_HEADERS = sys/procfs.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/init/Makefile.am hurd/init/Makefile.am --- hurd/init/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/init/Makefile.am 2006-01-07 02:20:31.000000000 +0100 @@ -0,0 +1,36 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = init + +MIGSTUBS = startupServer.c notifyServer.c startup_replyUser.c \ + msgServer.c startup_notifyUser.c + +nodist_init_SOURCES = $(MIGSTUBS) + +init_SOURCES = init.c stubs.c + +init_LDADD = $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +BUILT_SOURCES += mung_msg_S.h + +mung_msg_S.h: msg_S.h + sed 's/msg_server/mung_msg_server/' < $< > $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/install-sh hurd/install-sh --- hurd/install-sh 2006-01-07 03:24:17.000000000 +0100 +++ hurd/install-sh 2006-01-07 03:05:02.000000000 +0100 @@ -1,35 +1,52 @@ -#! /bin/sh -# +#!/bin/sh # install - install a program, script, or datafile -# This comes from X11R5 (mit/util/scripts/install.sh). + +scriptversion=2004-04-01.17 + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: # -# Copyright 1991 by the Massachusetts Institute of Technology +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. # -# Permission to use, copy, modify, distribute, and sell this software and its -# documentation for any purpose is hereby granted without fee, provided that -# the above copyright notice appear in all copies and that both that -# copyright notice and this permission notice appear in supporting -# documentation, and that the name of M.I.T. not be used in advertising or -# publicity pertaining to distribution of the software without specific, -# written prior permission. M.I.T. makes no representations about the -# suitability of this software for any purpose. It is provided "as is" -# without express or implied warranty. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written -# from scratch. -# - +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" - # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" @@ -41,210 +58,268 @@ rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" -transformbasename="" -transform_arg="" +transformbasename= +transform_arg= instcmd="$mvprog" chmodcmd="$chmodprog 0755" -chowncmd="" -chgrpcmd="" -stripcmd="" +chowncmd= +chgrpcmd= +stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" -src="" -dst="" -dir_arg="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -d) dir_arg=true - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - -t=*) transformarg=`echo $1 | sed 's/-t=//'` - shift - continue;; - - -b=*) transformbasename=`echo $1 | sed 's/-b=//'` - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - # this colon is to work around a 386BSD /bin/sh bug - : - dst=$1 - fi - shift - continue;; - esac +src= +dst= +dir_arg= + +usage="Usage: $0 [OPTION]... SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 -d DIRECTORIES... + +In the first form, install SRCFILE to DSTFILE, removing SRCFILE by default. +In the second, create the directory path DIR. + +Options: +-b=TRANSFORMBASENAME +-c copy source (using $cpprog) instead of moving (using $mvprog). +-d create directories instead of installing files. +-g GROUP $chgrp installed files to GROUP. +-m MODE $chmod installed files to MODE. +-o USER $chown installed files to USER. +-s strip installed files (using $stripprog). +-t=TRANSFORM +--help display this help and exit. +--version display version info and exit. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG +" + +while test -n "$1"; do + case $1 in + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + -c) instcmd=$cpprog + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + --help) echo "$usage"; exit 0;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + --version) echo "$0 $scriptversion"; exit 0;; + + *) # When -d is used, all remaining arguments are directories to create. + test -n "$dir_arg" && break + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dstarg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dstarg" + shift # fnord + fi + shift # arg + dstarg=$arg + done + break;; + esac done -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -else - true -fi - -if [ x"$dir_arg" != x ]; then - dst=$src - src="" - - if [ -d $dst ]; then - instcmd=: - else - instcmd=mkdir - fi -else - -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command -# might cause directories to be created, which would be especially bad -# if $src (and thus $dsttmp) contains '*'. - - if [ -f $src -o -d $src ] - then - true - else - echo "install: $src does not exist" - exit 1 - fi - - if [ x"$dst" = x ] - then - echo "install: no destination specified" - exit 1 - else - true - fi - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - - if [ -d $dst ] - then - dst="$dst"/`basename $src` - else - true - fi +if test -z "$1"; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call `install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 fi -## this sed command emulates the dirname command -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` - -# Make sure that the destination directory exists. -# this part is taken from Noah Friedman's mkinstalldirs script - -# Skip lots of stat calls in the usual case. -if [ ! -d "$dstdir" ]; then -defaultIFS=' -' -IFS="${IFS-${defaultIFS}}" - -oIFS="${IFS}" -# Some sh's can't handle IFS=/ for some reason. -IFS='%' -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` -IFS="${oIFS}" - -pathcomp='' - -while [ $# -ne 0 ] ; do - pathcomp="${pathcomp}${1}" - shift - - if [ ! -d "${pathcomp}" ] ; - then - $mkdirprog "${pathcomp}" - else - true - fi +for src +do + # Protect names starting with `-'. + case $src in + -*) src=./$src ;; + esac + + if test -n "$dir_arg"; then + dst=$src + src= + + if test -d "$dst"; then + instcmd=: + chmodcmd= + else + instcmd=$mkdirprog + fi + else + # Waiting for this to be detected by the "$instcmd $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dstarg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + + dst=$dstarg + # Protect names starting with `-'. + case $dst in + -*) dst=./$dst ;; + esac - pathcomp="${pathcomp}/" + # If destination is a directory, append the input filename; won't work + # if double slashes aren't ignored. + if test -d "$dst"; then + dst=$dst/`basename "$src"` + fi + fi + + # This sed command emulates the dirname command. + dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + + # Make sure that the destination directory exists. + + # Skip lots of stat calls in the usual case. + if test ! -d "$dstdir"; then + defaultIFS=' + ' + IFS="${IFS-$defaultIFS}" + + oIFS=$IFS + # Some sh's can't handle IFS=/ for some reason. + IFS='%' + set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` + IFS=$oIFS + + pathcomp= + + while test $# -ne 0 ; do + pathcomp=$pathcomp$1 + shift + if test ! -d "$pathcomp"; then + $mkdirprog "$pathcomp" || lasterr=$? + # mkdir can fail with a `File exist' error in case several + # install-sh are creating the directory concurrently. This + # is OK. + test ! -d "$pathcomp" && { (exit ${lasterr-1}); exit; } + fi + pathcomp=$pathcomp/ + done + fi + + if test -n "$dir_arg"; then + $doit $instcmd "$dst" \ + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } + + else + # If we're going to rename the final executable, determine the name now. + if test -z "$transformarg"; then + dstfile=`basename "$dst"` + else + dstfile=`basename "$dst" $transformbasename \ + | sed $transformarg`$transformbasename + fi + + # don't allow the sed command to completely eliminate the filename. + test -z "$dstfile" && dstfile=`basename "$dst"` + + # Make a couple of temp file names in the proper directory. + dsttmp=$dstdir/_inst.$$_ + rmtmp=$dstdir/_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 + trap '(exit $?); exit' 1 2 13 15 + + # Move or copy the file name to the temp name + $doit $instcmd "$src" "$dsttmp" && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $instcmd $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && + + # Now rename the file to the real destination. + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ + || { + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + if test -f "$dstdir/$dstfile"; then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ + || { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit + } + else + : + fi + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + } + } + fi || { (exit 1); exit; } done -fi - -if [ x"$dir_arg" != x ] -then - $doit $instcmd $dst && - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi -else - -# If we're going to rename the final executable, determine the name now. - - if [ x"$transformarg" = x ] - then - dstfile=`basename $dst` - else - dstfile=`basename $dst $transformbasename | - sed $transformarg`$transformbasename - fi - -# don't allow the sed command to completely eliminate the filename - - if [ x"$dstfile" = x ] - then - dstfile=`basename $dst` - else - true - fi - -# Make a temp file name in the proper directory. - - dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - - $doit $instcmd $src $dsttmp && - - trap "rm -f ${dsttmp}" 0 && - -# and set any options; do chmod last to preserve setuid bits - -# If any of these fail, we abort the whole thing. If we want to -# ignore errors from any of these, just make sure not to ignore -# errors from the above "$doit $instcmd $src $dsttmp" command. - - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && - -# Now rename the file to the real destination. - - $doit $rmcmd -f $dstdir/$dstfile && - $doit $mvcmd $dsttmp $dstdir/$dstfile - -fi && - -exit 0 +# The final little trick to "correctly" pass the exit status to the exit trap. +{ + (exit 0); exit +} + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/isofs/Makefile.am hurd/isofs/Makefile.am --- hurd/isofs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/isofs/Makefile.am 2006-01-07 02:37:02.000000000 +0100 @@ -0,0 +1,39 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = isofs + +isofs_SOURCES = inode.c main.c lookup.c pager.c rr.c + +noinst_HEADERS = iso9660.h isofs.h rr.h + +EXTRA_DIST = EXTENSIONS + +isofs_LDADD = $(top_builddir)/libdiskfs/libdiskfs.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libcons/Makefile.am hurd/libcons/Makefile.am --- hurd/libcons/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libcons/Makefile.am 2006-01-07 02:17:09.000000000 +0100 @@ -0,0 +1,46 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libcons.la + +MIGSTUBS = fs_notifyServer.c + +nodist_libcons_la_SOURCES = $(MIGSTUBS) + +libcons_la_SOURCES = demuxer.c init-init.c init-loop.c \ + opts-version.c extra-version.c dir-changed.c \ + file-changed.c \ + opts-std-startup.c cons-lookup.c cons-switch.c \ + vcons-remove.c vcons-add.c vcons-open.c vcons-close.c \ + vcons-refresh.c + +libcons_la_LIBADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la + +libcons_la_LDFLAGS = -version-info 1:0:0 + +noinst_HEADERS = priv.h mutations.h +include_HEADERS = cons.h + +fs_notify_MIGSFLAGS = -imacros $(srcdir)/mutations.h + +MIGCOMSFLAGS = -prefix cons_ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libdirmgt/Makefile.am hurd/libdirmgt/Makefile.am --- hurd/libdirmgt/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libdirmgt/Makefile.am 2006-01-07 02:59:54.000000000 +0100 @@ -0,0 +1,23 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +noinst_HEADERS = dirmgt.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libdiskfs/Makefile.am hurd/libdiskfs/Makefile.am --- hurd/libdiskfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libdiskfs/Makefile.am 2006-01-07 02:26:46.000000000 +0100 @@ -0,0 +1,95 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libdiskfs.la + +MIGSTUBS = fsServer.c ioServer.c fsysServer.c exec_startupServer.c \ + fsys_replyUser.c fs_notifyUser.c ifsockServer.c \ + startup_notifyServer.c + +FSSRCS = dir-chg.c dir-link.c dir-lookup.c dir-mkdir.c dir-mkfile.c \ + dir-readdir.c dir-rename.c dir-rmdir.c dir-unlink.c \ + file-access.c file-chauthor.c file-chflags.c file-chg.c \ + file-chmod.c file-chown.c file-exec.c file-get-fs-opts.c \ + file-get-trans.c file-get-transcntl.c file-getcontrol.c \ + file-getfh.c file-getlinknode.c file-lock-stat.c \ + file-lock.c file-set-size.c file-set-trans.c file-statfs.c \ + file-sync.c file-syncfs.c file-utimes.c file-reparent.c + +IOSRCS = io-async-icky.c io-async.c io-duplicate.c io-get-conch.c \ + io-revoke.c io-map-cntl.c io-map.c io-modes-get.c \ + io-modes-off.c io-modes-on.c io-modes-set.c io-owner-mod.c \ + io-owner-get.c io-pathconf.c io-prenotify.c io-read.c \ + io-readable.c io-identity.c io-reauthenticate.c io-rel-conch.c \ + io-restrict-auth.c io-seek.c io-select.c io-stat.c io-stubs.c \ + io-write.c io-version.c io-sigio.c + +FSYSSRCS = fsys-getroot.c fsys-goaway.c fsys-startup.c fsys-getfile.c \ + fsys-options.c fsys-syncfs.c fsys-forward.c + +IFSOCKSRCS = ifsock.c + +OTHERSRCS = conch-fetch.c conch-set.c dir-clear.c dir-init.c \ + dir-renamed.c extern-inline.c node-create.c node-drop.c \ + node-make.c node-rdwr.c node-update.c node-nref.c node-nput.c \ + node-nrele.c node-nrefl.c node-nputl.c node-nrelel.c \ + peropen-make.c peropen-rele.c protid-make.c protid-rele.c \ + init-init.c init-startup.c init-first.c init-main.c \ + rdwr-internal.c boot-start.c demuxer.c node-times.c shutdown.c \ + sync-interval.c sync-default.c \ + opts-set.c opts-get.c opts-std-startup.c opts-std-runtime.c \ + opts-append-std.c opts-common.c opts-runtime.c opts-version.c \ + trans-callback.c readonly.c readonly-changed.c \ + remount.c console.c disk-pager.c \ + name-cache.c direnter.c dirrewrite.c dirremove.c lookup.c \ + dead-name.c validate-mode.c validate-group.c validate-author.c \ + validate-flags.c validate-rdev.c validate-owner.c \ + extra-version.c + + +nodist_libdiskfs_la_SOURCES = $(MIGSTUBS) + +libdiskfs_la_SOURCES = $(OTHERSRCS) $(FSSRCS) $(IOSRCS) $(FSYSSRCS) \ +$(IFSOCKSRCS) + +libdiskfs_la_LDFLAGS= -version-info 1:0:0 + +noinst_HEADERS = priv.h lithp.h fsmutations.h fhandle.h + +include_HEADERS = diskfs.h diskfs-pager.h + +libdiskfs_la_LIBADD = $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +fsys_MIGSFLAGS = -imacros $(srcdir)/fsmutations.h -DREPLY_PORTS + +fs_MIGSFLAGS = -imacros $(srcdir)/fsmutations.h + +io_MIGSFLAGS = -imacros $(srcdir)/fsmutations.h + +ifsock_MIGSFLAGS = -imacros $(srcdir)/fsmutations.h + +MIGCOMSFLAGS = -prefix diskfs_ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libfshelp/Makefile.am hurd/libfshelp/Makefile.am --- hurd/libfshelp/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libfshelp/Makefile.am 2006-01-07 02:11:56.000000000 +0100 @@ -0,0 +1,41 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libfshelp.la + +libfshelp_la_SOURCES = lock-acquire.c lock-init.c \ + start-translator-long.c start-translator.c \ + fetch-root.c transbox-init.c set-active.c fetch-control.c \ + drop-transbox.c translated.c delegate.c exec-reauth.c \ + set-options.c get-identity.c perms-isowner.c \ + perms-iscontroller.c perms-access.c perms-checkdirmod.c \ + touch.c + +noinst_HEADERS = locks.h trans.h + +include_HEADERS = fshelp.h + +libfshelp_la_LIBADD=$(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la \ + $(top_builddir)/libthreads/libthreads.la + +libfshelp_la_LDFLAGS= -version-info 1:0:0 + + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libftpconn/Makefile.am hurd/libftpconn/Makefile.am --- hurd/libftpconn/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libftpconn/Makefile.am 2006-01-07 02:08:27.000000000 +0100 @@ -0,0 +1,35 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libftpconn.la + +include_HEADERS = ftpconn.h + +libftpconn_la_SOURCES = addr.c cmd.c create.c cwd.c errs.c names.c \ + open.c reply.c rmt.c set-type.c stats.c unix.c \ + xfer.c xinl.c fname.c + +libftpconn_la_LDFLAGS = -version-info 1:0:0 + +noinst_HEADERS = priv.h + +AM_CPPFLAGS += -DHAVE_HURD_HURD_TYPES_H -DHAVE_STAT_ST_AUTHOR + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libhurdbugaddr/Makefile.am hurd/libhurdbugaddr/Makefile.am --- hurd/libhurdbugaddr/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libhurdbugaddr/Makefile.am 2006-01-07 02:13:49.000000000 +0100 @@ -0,0 +1,27 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libhurdbugaddr.la + +libhurdbugaddr_la_SOURCES = bugaddr.c + +libhurdbugaddr_la_LDFLAGS = -version-info 1:0:0 + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libihash/Makefile.am hurd/libihash/Makefile.am --- hurd/libihash/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libihash/Makefile.am 2006-01-07 02:44:29.000000000 +0100 @@ -0,0 +1,31 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libihash.la + +noinst_HEADERS = priv.h + +include_HEADERS = ihash.h + +libihash_la_SOURCES = ihash.c sizes.c + +libihash_la_LDFLAGS = -version-info 1:0:0 + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libiohelp/Makefile.am hurd/libiohelp/Makefile.am --- hurd/libiohelp/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libiohelp/Makefile.am 2006-01-07 02:57:33.000000000 +0100 @@ -0,0 +1,35 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libiohelp.la + +libiohelp_la_SOURCES = get_conch.c handle_io_get_conch.c \ + handle_io_release_conch.c initialize_conch.c \ + verify_user_conch.c iouser-create.c iouser-dup.c \ + iouser-reauth.c iouser-free.c iouser-restrict.c shared.c \ + return-buffer.c + +include_HEADERS = iohelp.h + +libiohelp_la_LIBADD = $(top_builddir)/libthreads/libthreads.la + +libiohelp_la_LDFLAGS= -version-info 1:0:0 + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libnetfs/Makefile.am hurd/libnetfs/Makefile.am --- hurd/libnetfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libnetfs/Makefile.am 2006-01-07 02:57:12.000000000 +0100 @@ -0,0 +1,80 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libnetfs.la + +MIGSTUBS = ioServer.c fsServer.c fsysServer.c fsys_replyUser.c \ + ifsockServer.c + +FSSRCS = dir-link.c dir-lookup.c dir-mkdir.c dir-mkfile.c \ + dir-notice-changes.c dir-readdir.c dir-rename.c \ + dir-rmdir.c dir-unlink.c file-chauthor.c \ + file-check-access.c file-chflags.c file-chmod.c file-chown.c \ + file-exec.c file-get-fs-options.c file-get-storage-info.c \ + file-get-translator.c file-getcontrol.c file-getlinknode.c \ + file-lock-stat.c file-lock.c file-set-size.c \ + file-set-translator.c file-statfs.c file-sync.c file-syncfs.c \ + file-utimes.c file-reparent.c fsstubs.c + +IOSRCS = io-read.c io-readable.c io-seek.c io-write.c io-stat.c \ + io-async.c io-set-all-openmodes.c io-get-openmodes.c \ + io-set-some-openmodes.c io-clear-some-openmodes.c \ + io-mod-owner.c io-get-owner.c io-select.c \ + io-get-icky-async-id.c io-reauthenticate.c io-restrict-auth.c \ + io-duplicate.c iostubs.c io-identity.c io-revoke.c io-pathconf.c \ + io-version.c + +FSYSSRCS = fsys-syncfs.c fsys-getroot.c fsys-get-options.c \ + fsys-set-options.c fsys-goaway.c fsysstubs.c + +IFSOCKSRCS= + +OTHERSRCS = drop-node.c init-init.c make-node.c make-peropen.c \ + make-protid.c init-loop.c demuxer.c shutdown.c \ + release-protid.c release-peropen.c init-startup.c \ + startup-argp.c set-options.c append-args.c \ + runtime-argp.c std-runtime-argp.c std-startup-argp.c \ + append-std-options.c trans-callback.c set-get-trans.c \ + nref.c nrele.c nput.c file-get-storage-info-default.c + +nodist_libnetfs_la_SOURCES = $(MIGSTUBS) + +libnetfs_la_SOURCES= $(OTHERSRCS) $(FSSRCS) $(IOSRCS) \ + $(FSYSSRCS) $(IFSOCKSRCS) + +libnetfs_la_LDFLAGS = -version-info 1:0:0 + +noinst_HEADERS = netfs.h callbacks.h misc.h modes.h mutations.h priv.h \ + execserver.h + +include_HEADERS=netfs.h + +fsys_MIGSFLAGS = -imacros $(srcdir)/mutations.h -DREPLY_PORTS + +fs_MIGSFLAGS = -imacros $(srcdir)/mutations.h + +io_MIGSFLAGS = -imacros $(srcdir)/mutations.h + +ifsock_MIGSFLAGS = -imacros $(srcdir)/mutations.h + +MIGCOMSFLAGS = -prefix netfs_ + +fsysServer.c fsys_S.h fsServer.c fs_S.h ioServer.c io_S.h ifsockServer.c ifsock_S.h: mutations.h diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libpager/Makefile.am hurd/libpager/Makefile.am --- hurd/libpager/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libpager/Makefile.am 2006-01-07 01:39:57.000000000 +0100 @@ -0,0 +1,44 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libpager.la + +libpager_la_SOURCES = memory_objectServer.c notifyServer.c \ + data-request.c data-return.c data-unlock.c pager-port.c \ + inhibit-term.c lock-completed.c lock-object.c mark-error.c \ + no-senders.c object-init.c object-terminate.c pagemap.c \ + pager-create.c pager-flush.c pager-shutdown.c pager-sync.c \ + stubs.c seqnos.c demuxer.c chg-compl.c pager-attr.c clean.c \ + dropweak.c notify-stubs.c get-upi.c pager-memcpy.c pager-return.c \ + offer-page.c + +noinst_HEADERS = priv.h + +include_HEADERS = pager.h + +libpager_la_LIBADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la + +libpager_la_LDFLAGS = -version-info 1:0:0 + +MIGSFLAGS = -DSEQNOS +MIGCOMSFLAGS = -prefix _pager_ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libpipe/Makefile.am hurd/libpipe/Makefile.am --- hurd/libpipe/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libpipe/Makefile.am 2006-01-07 02:38:09.000000000 +0100 @@ -0,0 +1,33 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libpipe.la + +include_HEADERS = pipe.h pq.h + +libpipe_la_SOURCES = pq.c dgram.c pipe.c stream.c seqpack.c addr.c \ + pq-funcs.c pipe-funcs.c + +libpipe_la_LIBADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la + +libpipe_la_LDFLAGS = -version-info 1:0:0 + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libports/Makefile.am hurd/libports/Makefile.am --- hurd/libports/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libports/Makefile.am 2006-01-07 02:05:57.000000000 +0100 @@ -0,0 +1,53 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libports.la + +MIGSTUBS = notifyServer.c interruptServer.c + +libports_la_SOURCES = create-bucket.c \ + create-class.c reallocate-port.c reallocate-from-external.c \ + destroy-right.c lookup-port.c port-ref.c port-ref-weak.c \ + port-deref.c port-deref-weak.c no-senders.c begin-rpc.c \ + end-rpc.c manage-one-thread.c manage-multithread.c \ + inhibit-port-rpcs.c inhibit-class-rpcs.c inhibit-bucket-rpcs.c \ + inhibit-all-rpcs.c resume-port-rpcs.c resume-class-rpcs.c \ + resume-bucket-rpcs.c resume-all-rpcs.c interrupt-rpcs.c init.c \ + complete-deallocate.c get-right.c get-send-right.c \ + count-class.c count-bucket.c enable-class.c enable-bucket.c \ + bucket-iterate.c class-iterate.c stubs.c notify-dead-name.c \ + notify-no-senders.c notify-port-destroyed.c \ + notify-msg-accepted.c notify-port-deleted.c notify-send-once.c \ + interrupt-operation.c interrupt-on-notify.c \ + interrupt-notified-rpcs.c dead-name.c create-port.c \ + import-port.c default-uninhibitable-rpcs.c claim-right.c \ + transfer-right.c create-port-noinstall.c create-internal.c \ + interrupted.c + +nodist_libports_la_SOURCES = $(MIGSTUBS) + +include_HEADERS = ports.h + +libports_la_LIBADD = $(top_builddir)/libihash/libihash.la +libports_la_LDFLAGS = -version-info 1:0:0 + +MIGCOMSFLAGS = -prefix ports_ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libps/Makefile.am hurd/libps/Makefile.am --- hurd/libps/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libps/Makefile.am 2006-01-07 02:59:53.000000000 +0100 @@ -0,0 +1,46 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +BUILT_SOURCES += ps_msg.h ps_term.h + +lib_LTLIBRARIES = libps.la + +MIGSTUBS = msgUser.c termUser.c + +nodist_libps_la_SOURCES = $(MIGSTUBS) + +libps_la_SOURCES = context.c filters.c fmt.c host.c proclist.c \ + procstat.c spec.c tty.c user.c write.c + +noinst_HEADERS = common.h +include_HEADERS = ps.h + +libps_la_LIBADD = $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +libps_la_LDFLAGS = -version-info 1:0:0 + +msg_MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_ + +term_MIGUFLAGS = -D'TERM_IMPORTS=waittime 1000;' -DUSERPREFIX=ps_ + +ps_%.h: %_U.h + sed 's/_$*_user_/_ps_$*_user_/g' $< > $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libpthread/Makefile.am hurd/libpthread/Makefile.am --- hurd/libpthread/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libpthread/Makefile.am 2006-01-07 03:05:01.000000000 +0100 @@ -0,0 +1,317 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +MICROKERNEL := mach +SYSDEPS := lockfile.c + +lib_LTLIBRARIES = libpthread.la + +nodist_libpthread_la_SOURCES := pt-attr.c pt-attr-destroy.c \ + pt-attr-getdetachstate.c \ + pt-attr-getguardsize.c pt-attr-getinheritsched.c \ + pt-attr-getschedparam.c pt-attr-getschedpolicy.c pt-attr-getscope.c \ + pt-attr-getstack.c pt-attr-getstackaddr.c pt-attr-getstacksize.c \ + pt-attr-init.c pt-attr-setdetachstate.c pt-attr-setguardsize.c \ + pt-attr-setinheritsched.c pt-attr-setschedparam.c \ + pt-attr-setschedpolicy.c pt-attr-setscope.c pt-attr-setstack.c \ + pt-attr-setstackaddr.c pt-attr-setstacksize.c \ + \ + pt-barrier-destroy.c pt-barrier-init.c pt-barrier-wait.c \ + pt-barrier.c pt-barrierattr-destroy.c pt-barrierattr-init.c \ + pt-barrierattr-getpshared.c pt-barrierattr-setpshared.c \ + \ + pt-destroy-specific.c pt-init-specific.c \ + pt-key-create.c pt-key-delete.c \ + pt-getspecific.c pt-setspecific.c \ + \ + pt-once.c \ + \ + pt-alloc.c \ + pt-create.c \ + pt-equal.c \ + pt-dealloc.c \ + pt-detach.c \ + pt-exit.c \ + pt-initialize.c \ + pt-join.c \ + pt-self.c \ + pt-sigmask.c \ + pt-spin-inlines.c \ + pt-cleanup.c \ + pt-setcancelstate.c \ + pt-setcanceltype.c \ + pt-testcancel.c \ + pt-cancel.c \ + \ + pt-mutexattr.c \ + pt-mutexattr-destroy.c pt-mutexattr-init.c \ + pt-mutexattr-getprioceiling.c pt-mutexattr-getprotocol.c \ + pt-mutexattr-getpshared.c pt-mutexattr-gettype.c \ + pt-mutexattr-setprioceiling.c pt-mutexattr-setprotocol.c \ + pt-mutexattr-setpshared.c pt-mutexattr-settype.c \ + \ + pt-mutex-init.c pt-mutex-destroy.c \ + pt-mutex-lock.c pt-mutex-trylock.c pt-mutex-timedlock.c \ + pt-mutex-unlock.c \ + pt-mutex-getprioceiling.c pt-mutex-setprioceiling.c \ + \ + pt-rwlock-attr.c \ + pt-rwlockattr-init.c pt-rwlockattr-destroy.c \ + pt-rwlockattr-getpshared.c pt-rwlockattr-setpshared.c \ + \ + pt-rwlock-init.c pt-rwlock-destroy.c \ + pt-rwlock-rdlock.c pt-rwlock-tryrdlock.c \ + pt-rwlock-trywrlock.c pt-rwlock-wrlock.c \ + pt-rwlock-timedrdlock.c pt-rwlock-timedwrlock.c \ + pt-rwlock-unlock.c \ + \ + pt-cond.c \ + pt-condattr-init.c pt-condattr-destroy.c \ + pt-condattr-getclock.c pt-condattr-getpshared.c \ + pt-condattr-setclock.c pt-condattr-setpshared.c \ + \ + pt-cond-destroy.c pt-cond-init.c \ + pt-cond-brdcast.c \ + pt-cond-signal.c \ + pt-cond-wait.c \ + pt-cond-timedwait.c \ + \ + pt-stack-alloc.c \ + pt-thread-alloc.c \ + pt-thread-start.c \ + pt-thread-halt.c \ + \ + pt-getconcurrency.c pt-setconcurrency.c \ + \ + pt-block.c \ + pt-timedblock.c \ + pt-wakeup.c \ + pt-docancel.c \ + pt-sysdep.c \ + pt-setup.c \ + pt-machdep.c \ + pt-spin.c \ + \ + pt-sigstate-init.c \ + pt-sigstate-destroy.c \ + pt-sigstate.c \ + \ + pt-atfork.c \ + pt-kill.c \ + pt-getcpuclockid.c \ + \ + pt-getschedparam.c pt-setschedparam.c pt-setschedprio.c \ + \ + cthreads-compat.c \ + $(SYSDEPS) + +sysdeps_headers = \ + pthread.h \ + pthread/pthread.h \ + \ + bits/pthread.h \ + bits/mutex.h \ + bits/condition.h \ + bits/condition-attr.h \ + bits/spin-lock.h \ + bits/cancelation.h \ + bits/thread-attr.h \ + bits/barrier-attr.h \ + bits/barrier.h \ + bits/thread-specific.h \ + bits/once.h \ + bits/mutex-attr.h \ + bits/rwlock.h \ + bits/rwlock-attr.h + +SYSDEP_PATH = $(srcdir)/sysdeps/$(MICROKERNEL)/hurd/i386 \ + $(srcdir)/sysdeps/$(MICROKERNEL)/i386 \ + $(srcdir)/sysdeps/$(MICROKERNEL)/hurd \ + $(srcdir)/sysdeps/$(MICROKERNEL) \ + $(srcdir)/sysdeps/hurd \ + $(srcdir)/sysdeps/i386 \ + $(srcdir)/sysdeps/generic \ + $(srcdir)/sysdeps/posix \ + $(srcdir)/pthread \ + $(srcdir)/include + +VPATH += $(SYSDEP_PATH) + +libpthread_la_LIBADD = $(top_builddir)/libihash/libihash.la + +AM_CFLAGS += -D_IO_MTSAFE_IO \ + $(addprefix -I, $(SYSDEP_PATH)) \ + -imacros $(srcdir)/include/libc-symbols.h \ + -imacros $(srcdir)/not-in-libc.h + + +EXTRA_DIST = lockfile.c \ + pthread/cthreads-compat.c \ + pthread/pt-alloc.c \ + pthread/pt-cancel.c \ + pthread/pt-cleanup.c \ + pthread/pt-create.c \ + pthread/pt-dealloc.c \ + pthread/pt-detach.c \ + pthread/pt-exit.c \ + pthread/pt-initialize.c \ + pthread/pt-join.c \ + pthread/pt-self.c \ + pthread/pt-setcancelstate.c \ + pthread/pt-setcanceltype.c \ + pthread/pt-sigmask.c \ + pthread/pt-spin-inlines.c \ + pthread/pt-testcancel.c \ + sysdeps/generic/pt-atfork.c \ + sysdeps/generic/pt-attr-destroy.c \ + sysdeps/generic/pt-attr-getdetachstate.c \ + sysdeps/generic/pt-attr-getguardsize.c \ + sysdeps/generic/pt-attr-getinheritsched.c \ + sysdeps/generic/pt-attr-getschedparam.c \ + sysdeps/generic/pt-attr-getschedpolicy.c \ + sysdeps/generic/pt-attr-getscope.c \ + sysdeps/generic/pt-attr-getstack.c \ + sysdeps/generic/pt-attr-getstackaddr.c \ + sysdeps/generic/pt-attr-getstacksize.c \ + sysdeps/generic/pt-attr-init.c \ + sysdeps/generic/pt-attr-setdetachstate.c \ + sysdeps/generic/pt-attr-setguardsize.c \ + sysdeps/generic/pt-attr-setinheritsched.c \ + sysdeps/generic/pt-attr-setschedparam.c \ + sysdeps/generic/pt-attr-setschedpolicy.c \ + sysdeps/generic/pt-attr-setscope.c \ + sysdeps/generic/pt-attr-setstack.c \ + sysdeps/generic/pt-attr-setstackaddr.c \ + sysdeps/generic/pt-attr-setstacksize.c \ + sysdeps/generic/pt-attr.c \ + sysdeps/generic/pt-barrier-destroy.c \ + sysdeps/generic/pt-barrier-init.c \ + sysdeps/generic/pt-barrier-wait.c \ + sysdeps/generic/pt-barrier.c \ + sysdeps/generic/pt-barrierattr-destroy.c \ + sysdeps/generic/pt-barrierattr-getpshared.c \ + sysdeps/generic/pt-barrierattr-init.c \ + sysdeps/generic/pt-barrierattr-setpshared.c \ + sysdeps/generic/pt-cond-brdcast.c \ + sysdeps/generic/pt-cond-destroy.c \ + sysdeps/generic/pt-cond-init.c \ + sysdeps/generic/pt-cond-signal.c \ + sysdeps/generic/pt-cond-timedwait.c \ + sysdeps/generic/pt-cond-wait.c \ + sysdeps/generic/pt-cond.c \ + sysdeps/generic/pt-condattr-destroy.c \ + sysdeps/generic/pt-condattr-getclock.c \ + sysdeps/generic/pt-condattr-getpshared.c \ + sysdeps/generic/pt-condattr-init.c \ + sysdeps/generic/pt-condattr-setclock.c \ + sysdeps/generic/pt-condattr-setpshared.c \ + sysdeps/generic/pt-destroy-specific.c \ + sysdeps/generic/pt-equal.c \ + sysdeps/generic/pt-getconcurrency.c \ + sysdeps/generic/pt-getcpuclockid.c \ + sysdeps/generic/pt-getschedparam.c \ + sysdeps/generic/pt-getspecific.c \ + sysdeps/generic/pt-init-specific.c \ + sysdeps/generic/pt-key-create.c \ + sysdeps/generic/pt-key-delete.c \ + sysdeps/generic/pt-mutex-destroy.c \ + sysdeps/generic/pt-mutex-getprioceiling.c \ + sysdeps/generic/pt-mutex-init.c \ + sysdeps/generic/pt-mutex-lock.c \ + sysdeps/generic/pt-mutex-setprioceiling.c \ + sysdeps/generic/pt-mutex-timedlock.c \ + sysdeps/generic/pt-mutex-trylock.c \ + sysdeps/generic/pt-mutex-unlock.c \ + sysdeps/generic/pt-mutexattr-destroy.c \ + sysdeps/generic/pt-mutexattr-getprioceiling.c \ + sysdeps/generic/pt-mutexattr-getprotocol.c \ + sysdeps/generic/pt-mutexattr-getpshared.c \ + sysdeps/generic/pt-mutexattr-gettype.c \ + sysdeps/generic/pt-mutexattr-init.c \ + sysdeps/generic/pt-mutexattr-setprioceiling.c \ + sysdeps/generic/pt-mutexattr-setprotocol.c \ + sysdeps/generic/pt-mutexattr-setpshared.c \ + sysdeps/generic/pt-mutexattr-settype.c \ + sysdeps/generic/pt-mutexattr.c \ + sysdeps/generic/pt-once.c \ + sysdeps/generic/pt-rwlock-attr.c \ + sysdeps/generic/pt-rwlock-destroy.c \ + sysdeps/generic/pt-rwlock-init.c \ + sysdeps/generic/pt-rwlock-rdlock.c \ + sysdeps/generic/pt-rwlock-timedrdlock.c \ + sysdeps/generic/pt-rwlock-timedwrlock.c \ + sysdeps/generic/pt-rwlock-tryrdlock.c \ + sysdeps/generic/pt-rwlock-trywrlock.c \ + sysdeps/generic/pt-rwlock-unlock.c \ + sysdeps/generic/pt-rwlock-wrlock.c \ + sysdeps/generic/pt-rwlockattr-destroy.c \ + sysdeps/generic/pt-rwlockattr-getpshared.c \ + sysdeps/generic/pt-rwlockattr-init.c \ + sysdeps/generic/pt-rwlockattr-setpshared.c \ + sysdeps/generic/pt-setconcurrency.c \ + sysdeps/generic/pt-setschedparam.c \ + sysdeps/generic/pt-setschedprio.c \ + sysdeps/generic/pt-setspecific.c \ + sysdeps/hurd/pt-destroy-specific.c \ + sysdeps/hurd/pt-getspecific.c \ + sysdeps/hurd/pt-init-specific.c \ + sysdeps/hurd/pt-key-create.c \ + sysdeps/hurd/pt-key-delete.c \ + sysdeps/hurd/pt-kill.c \ + sysdeps/hurd/pt-setspecific.c \ + sysdeps/l4/hurd/i386/pt-machdep.c \ + sysdeps/l4/hurd/i386/pt-setup.c \ + sysdeps/l4/hurd/pt-sysdep.c \ + sysdeps/l4/pt-block.c \ + sysdeps/l4/pt-docancel.c \ + sysdeps/l4/pt-stack-alloc.c \ + sysdeps/l4/pt-start.c \ + sysdeps/l4/pt-thread-alloc \ + include/pthread/pthread.h \ + include/libc-symbols.h \ + include/pthread.h \ + include/set-hooks.h \ + not-in-libc.h \ + pthread/pt-internal.h \ + sysdeps/generic/bits/barrier-attr.h \ + sysdeps/generic/bits/barrier.h \ + sysdeps/generic/bits/cancelation.h \ + sysdeps/generic/bits/condition-attr.h \ + sysdeps/generic/bits/condition.h \ + sysdeps/generic/bits/mutex-attr.h \ + sysdeps/generic/bits/mutex.h \ + sysdeps/generic/bits/once.h \ + sysdeps/generic/bits/pthread.h \ + sysdeps/generic/bits/rwlock-attr.h \ + sysdeps/generic/bits/rwlock.h \ + sysdeps/generic/bits/thread-attr.h \ + sysdeps/generic/bits/thread-barrier.h \ + sysdeps/generic/bits/thread-specific.h \ + sysdeps/generic/pt-key.h \ + sysdeps/hurd/pt-key.h \ + sysdeps/i386/bits/atomic.h \ + sysdeps/i386/bits/memory.h \ + sysdeps/i386/bits/spin-lock.h \ + sysdeps/i386/machine-sp.h \ + sysdeps/i386/pt-machdep.h \ + sysdeps/l4/hurd/pt-sysdep.h \ + sysdeps/mach/bits/spin-lock.h \ + sysdeps/mach/hurd/pt-sysdep.h diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libshouldbeinlibc/Makefile.am hurd/libshouldbeinlibc/Makefile.am --- hurd/libshouldbeinlibc/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libshouldbeinlibc/Makefile.am 2006-01-07 02:31:18.000000000 +0100 @@ -0,0 +1,37 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libshouldbeinlibc.la + +libshouldbeinlibc_la_SOURCES = termsize.c timefmt.c exec-reauth.c \ + maptime-funcs.c canon-host.c maptime.c shared-dom.c \ + localhost.c wire.c portinfo.c xportinfo.c portxlate.c lcm.c \ + cacheq.c fsysops.c idvec.c idvec-auth.c idvec-funcs.c \ + idvec-impgids.c idvec-verify.c idvec-rep.c \ + ugids.c ugids-argp.c ugids-rep.c ugids-verify.c ugids-subtract.c \ + ugids-auth.c ugids-xinl.c ugids-merge.c ugids-imply.c \ + ugids-posix.c ugids-verify-auth.c + +include_HEADERS = idvec.h timefmt.h maptime.h wire.h portinfo.h \ + portxlate.h cacheq.h ugids.h + +libshouldbeinlibc_la_LDFLAGS= -version-info 1:0:0 + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libstore/Makefile.am hurd/libstore/Makefile.am --- hurd/libstore/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libstore/Makefile.am 2006-01-07 02:46:31.000000000 +0100 @@ -0,0 +1,92 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +CORESOURCES = create.c derive.c make.c rdwr.c set.c \ + enc.c encode.c decode.c clone.c argp.c kids.c flags.c \ + open.c xinl.c typed.c map.c url.c unknown.c \ + stripe.c + +# ileave and concat not in here for now + +STORETYPESOURCES = \ + bunzip2.c \ + copy.c \ + device.c \ + file.c \ + gunzip.c \ + memobj.c \ + module.c \ + mvol.c \ + nbd.c \ + remap.c \ + task.c \ + zero.c + +AM_LDLIBS = -ldl + +include_HEADERS = store.h + +GUNZIP_SOURCES = $(top_srcdir)/exec/unzip.c \ + $(top_srcdir)/exec/inflate.c \ + $(top_srcdir)/exec/util.c + +noinst_HEADERS = unzipstore.c + +BUNZIP2_SOURCES = $(top_srcdir)/exec/do-bunzip2.c + +lib_LTLIBRARIES = libstore.la + +libstore_la_SOURCES = $(CORESOURCES) $(GUNZIP_SOURCES) \ + $(BUNZIP2_SOURCES) $(STORETYPESOURCES) + +libstore_la_LDFLAGS = -version-info 1:0:0 + +libstore_la_LIBADD = \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la \ + -ldl + +# Look in exec for various zip file includes +AM_CPPFLAGS += -I$(top_srcdir)/exec + +## Only 'module' needs this, but nothing else will notice +## Automake 1.7.2 doesn't support this yet, but it's on their TODO list +## http://sources.redhat.com/ml/automake/2002-12/msg00078.html +AM_CPPFLAGS += -D'STORE_SONAME_SUFFIX=".so.$(hurd-version)"' + +#libstore_gunzip.so.$(hurd-version): $(GUNZIP_OBJS:.o=_pic.o) +#libstore_bunzip2.so.$(hurd-version): $(BUNZIP2_OBJS:.o=_pic.o) + +# You can use this rule to make a dynamically-loadable version of any +# of the modules. We don't make any of these by default, since we +# just include all the standard store types in libstore.so itself. +#libstore_%.so.$(hurd-version): %_pic.o libstore.so +# $(CC) -shared -Wl,-soname=$@ -o $@ \ +# $(rpath) $(CFLAGS) $(LDFLAGS) $(libstore_$*.so-LDFLAGS) $^ + +# Each libstore_TYPE.a is in fact an object file script so that `-lstore_TYPE' +# just has the same effect as `-u store_TYPE_class'. +#$(store-types:%=libstore_%.a): libstore_%.a: $(srcdir)/Makefile +# $(CC) -r -nostdlib -nostartfiles -x c /dev/null \ +# -o $@ -u store_$*_class +#cleantarg += $(store-types:%=libstore_%.a) + +#$(store-types:%=$(libdir)/libstore_%.a): $(libdir)/%: % +# $(INSTALL_DATA) $< $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libthreads/Makefile.am hurd/libthreads/Makefile.am --- hurd/libthreads/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libthreads/Makefile.am 2006-01-07 01:38:59.000000000 +0100 @@ -0,0 +1,58 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +VPATH += $(srcdir)/${asm_syntax} + +EXTRA_DIST = i386/csw.S i386/thread.c alpha/csw.S alpha/thread.c + +# In GNU mig_support.c, sync.c and machine/lock.s are omitted; that work is +# all done in libc. + +lib_LTLIBRARIES=libthreads.la + +libthreads_la_SOURCES = call.c cprocs.c cthread_data.c cthreads.c \ + stack.c cancel-cond.c rwlock.c lockfile.c + +## GNU Automake doesn't handle VPATH terribly well. This includes them in +## the binary, but tells Automake not to try and distribute them. +## This can go away when good vpath support is added. + +nodist_libthreads_la_SOURCES = csw.S thread.c + +libthreads_la_LDFLAGS= -version-info 1:0:0 + +# In GNU machine/cthreads.h is omitted; that work is done in libc headers. + +noinst_HEADERS = cthread_internals.h options.h + +include_HEADERS = cthreads.h rwlock.h + +# The threads library was written by CMU. If you've ever experienced +# what that means, you'll understand this line. + +AM_CFLAGS += $(filter-out -Wall,$(CFLAGS)) + +# Adding this dependency gets it included in the command line, +# where ld will read it as a linker script. +#$(libname).so.$(hurd-version): $(srcdir)/$(libname).map + + + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libtreefs/Makefile.am hurd/libtreefs/Makefile.am --- hurd/libtreefs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libtreefs/Makefile.am 2006-01-07 01:36:51.000000000 +0100 @@ -0,0 +1,48 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES = libtreefs.la + +include_HEADERS = treefs.h + +# RPC stubs +MIGSTUBS = fsServer.c ioServer.c fsysServer.c + +S_SRCS = s-file.c s-dir.c s-io.c s-fsys.c + +OTHERSRCS = defhooks.c dir-hooks.c dir-lookup.c fsys-getroot.c \ + fsys-hooks.c fsys-startup.c hooks.c mdir.c nlist.c \ + node-hooks.c rights.c trans-help.c trans-start.c + +nodist_libtreefs_la_SOURCES = $(MIGSTUBS) + +libtreefs_la_SOURCES = $(OTHERSRCS) $(S_SRCS) + +libtreefs_la_LDFLAGS = -version-info 0:0:0 + +noinst_HEADERS = fs-mutate.h + +MIGSFLAGS = -imacros fs-mutate.h + +MIGCOMSFLAGS = -prefix treefs_ + +notify_MIGSFLAGS = -DSEQNOS + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/libtrivfs/Makefile.am hurd/libtrivfs/Makefile.am --- hurd/libtrivfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/libtrivfs/Makefile.am 2006-01-07 02:42:45.000000000 +0100 @@ -0,0 +1,72 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +lib_LTLIBRARIES=libtrivfs.la + +MIGSTUBS = fsServer.c ioServer.c fsysServer.c fsys_replyUser.c + +FSSRCS = dir-link.c dir-mkdir.c dir-mkfile.c dir-lookup.c \ + dir-readdir.c dir-rename.c dir-rmdir.c dir-unlink.c \ + file-chauthor.c file-chflags.c file-chmod.c file-chown.c \ + file-get-trans.c file-get-transcntl.c file-getcontrol.c \ + file-getfh.c file-getlinknode.c file-lock.c file-set-trans.c \ + file-statfs.c file-sync.c file-syncfs.c file-set-size.c \ + file-utimes.c file-exec.c file-access.c dir-chg.c file-chg.c \ + file-get-storage-info.c file-get-fs-options.c file-reparent.c + +IOSRCS = io-async-icky.c io-async.c io-duplicate.c io-map.c \ + io-modes-get.c io-modes-off.c io-modes-on.c io-modes-set.c \ + io-owner-get.c io-owner-mod.c io-pathconf.c io-read.c \ + io-readable.c io-revoke.c io-reauthenticate.c \ + io-restrict-auth.c io-seek.c io-select.c io-stat.c io-stubs.c \ + io-write.c io-version.c io-identity.c + +FSYSSRCS = fsys-getroot.c fsys-goaway.c fsys-stubs.c fsys-syncfs.c \ + fsys-forward.c fsys-set-options.c fsys-get-options.c + +OTHERSRCS=demuxer.c protid-clean.c protid-dup.c cntl-create.c \ + cntl-clean.c migsupport.c times.c startup.c open.c \ + runtime-argp.c set-options.c append-args.c dyn-classes.c \ + protid-classes.c cntl-classes.c + +nodist_libtrivfs_la_SOURCES = $(MIGSTUBS) + +libtrivfs_la_SOURCES = $(FSSRCS) $(IOSRCS) $(FSYSSRCS) $(OTHERSRCS) + +libtrivfs_la_LIBADD = $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +libtrivfs_la_LDFLAGS= -version-info 1:0:0 + +noinst_HEADERS = fsmutations.h priv.h + +MIGSFLAGS=-imacros $(srcdir)/fsmutations.h + +MIGCOMSFLAGS = -prefix trivfs_ + +hurdinclude_HEADERS = trivfs.h $(patsubst %,trivfs_%_S.h,fs io fsys) + +fakeinclude = $(addprefix hurd/,$(hurdinclude_HEADERS)) + +mig_sheader_prefix = trivfs_ + +# $(MIGSTUBS:%Server.o=%.sdefsi): $(srcdir)/fsmutations.h diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/login/Makefile.am hurd/login/Makefile.am --- hurd/login/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/login/Makefile.am 2006-01-07 02:12:11.000000000 +0100 @@ -0,0 +1,24 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +bin_PROGRAMS = utmp + + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/mach-defpager/Makefile.am hurd/mach-defpager/Makefile.am --- hurd/mach-defpager/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/mach-defpager/Makefile.am 2006-01-07 02:46:40.000000000 +0100 @@ -0,0 +1,47 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS =mach-defpager + +# None of those pay attention to SERVERPREFIX. + +MIGSTUBS = memory_objectServer.c default_pagerServer.c \ + memory_object_defaultServer.c excServer.c \ + default_pager_replyUser.c + +nodist_mach_defpager_SOURCES = $(MIGSTUBS) + +mach_defpager_SOURCES = $(top_srcdir)/serverboot/default_pager.c \ + $(top_srcdir)/serverboot/kalloc.c \ + $(top_srcdir)/serverboot/wiring.c main.c \ + setup.c + +mach_defpager_LDADD = $(top_builddir)/libthreads/libthreads.la + +mach_defpager_LDFLAGS = -all-static + +AM_CPPFLAGS += -I$(top_srcdir)/serverboot + +MIGSFLAGS = -DSEQNOS + +# Don't even bother. +AM_CFLAGS += $(filter-out -Wall,$(CFLAGS)) + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/mkinstalldirs hurd/mkinstalldirs --- hurd/mkinstalldirs 2006-01-07 03:24:17.000000000 +0100 +++ hurd/mkinstalldirs 2006-01-07 03:05:02.000000000 +0100 @@ -1,40 +1,150 @@ #! /bin/sh # mkinstalldirs --- make directory hierarchy -# Author: Noah Friedman -# Created: 1993-05-16 -# Public domain -# $Id: mkinstalldirs,v 1.1 1996/07/18 04:35:29 mib Exp $ +scriptversion=2004-02-15.20 + +# Original author: Noah Friedman +# Created: 1993-05-16 +# Public domain. +# +# This file is maintained in Automake, please report +# bugs to or send patches to +# . errstatus=0 +dirmode="" + +usage="\ +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... + +Create each directory DIR (with mode MODE, if specified), including all +leading file name components. + +Report bugs to ." + +# process command line arguments +while test $# -gt 0 ; do + case $1 in + -h | --help | --h*) # -h for help + echo "$usage" + exit 0 + ;; + -m) # -m PERM arg + shift + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } + dirmode=$1 + shift + ;; + --version) + echo "$0 $scriptversion" + exit 0 + ;; + --) # stop option processing + shift + break + ;; + -*) # unknown option + echo "$usage" 1>&2 + exit 1 + ;; + *) # first non-opt arg + break + ;; + esac +done + +for file +do + if test -d "$file"; then + shift + else + break + fi +done + +case $# in + 0) exit 0 ;; +esac + +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and +# mkdir -p a/c at the same time, both will detect that a is missing, +# one will create a, then the other will try to create a and die with +# a "File exists" error. This is a problem when calling mkinstalldirs +# from a parallel make. We use --version in the probe to restrict +# ourselves to GNU mkdir, which is thread-safe. +case $dirmode in + '') + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + echo "mkdir -p -- $*" + exec mkdir -p -- "$@" + else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + test -d ./-p && rmdir ./-p + test -d ./--version && rmdir ./--version + fi + ;; + *) + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && + test ! -d ./--version; then + echo "mkdir -m $dirmode -p -- $*" + exec mkdir -m "$dirmode" -p -- "$@" + else + # Clean up after NextStep and OpenStep mkdir. + for d in ./-m ./-p ./--version "./$dirmode"; + do + test -d $d && rmdir $d + done + fi + ;; +esac for file do - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` - shift + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift - pathcomp= - for d - do - pathcomp="$pathcomp$d" - case "$pathcomp" in - -* ) pathcomp=./$pathcomp ;; - esac - - if test ! -d "$pathcomp"; then - echo "mkdir $pathcomp" 1>&2 - - mkdir "$pathcomp" || lasterr=$? - - if test ! -d "$pathcomp"; then - errstatus=$lasterr - fi - fi + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case $pathcomp in + -*) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + else + if test ! -z "$dirmode"; then + echo "chmod $dirmode $pathcomp" + lasterr="" + chmod "$dirmode" "$pathcomp" || lasterr=$? + + if test ! -z "$lasterr"; then + errstatus=$lasterr + fi + fi + fi + fi - pathcomp="$pathcomp/" - done + pathcomp="$pathcomp/" + done done exit $errstatus -# mkinstalldirs ends here +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-end: "$" +# End: diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/nfs/Makefile.am hurd/nfs/Makefile.am --- hurd/nfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/nfs/Makefile.am 2006-01-07 02:04:00.000000000 +0100 @@ -0,0 +1,34 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = nfs + +noinst_HEADERS = nfs.h mount.h nfs-spec.h + +nfs_SOURCES = ops.c rpc.c mount.c nfs.c cache.c consts.c main.c \ + name-cache.c storage-info.c + +nfs_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/nfsd/Makefile.am hurd/nfsd/Makefile.am --- hurd/nfsd/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/nfsd/Makefile.am 2006-01-07 02:39:23.000000000 +0100 @@ -0,0 +1,32 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +sbin_PROGRAMS = nfsd + +nfsd_SOURCES = cache.c loop.c main.c ops.c fsys.c xdr.c + +noinst_HEADERS = nfsd.h + +nfsd_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +AM_CPPFLAGS += -DLOCALSTATEDIR=\"$(localstatedir)\" + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/pfinet/Makefile.am hurd/pfinet/Makefile.am --- hurd/pfinet/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/pfinet/Makefile.am 2006-01-07 02:02:45.000000000 +0100 @@ -0,0 +1,133 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = pfinet + +core_srcs := datagram.c \ + dev.c \ + dev_mcast.c \ + dst.c \ + iovec.c \ + neighbour.c \ + skbuff.c \ + sock.c \ + utils.c +arch_lib_srcs := checksum.c old-checksum.c csum_partial_copy.c +ethernet_srcs := eth.c +ipv4_srcs := af_inet.c \ + arp.c \ + devinet.c \ + fib_frontend.c \ + fib_hash.c \ + fib_semantics.c \ + icmp.c \ + igmp.c \ + ip_forward.c \ + ip_fragment.c \ + ip_input.c \ + ip_options.c \ + ip_output.c \ + ip_sockglue.c \ + protocol.c \ + raw.c \ + route.c \ + syncookies.c \ + sysctl_net_ipv4.c \ + tcp.c \ + tcp_input.c \ + tcp_ipv4.c \ + tcp_output.c \ + tcp_timer.c \ + timer.c \ + udp.c \ + utils.c +LINUXSRCS = $(core-srcs) $(ethernet-srcs) $(ipv4-srcs) \ + $(notdir $(wildcard $(addprefix \ + $(srcdir)/linux-src/arch/$(asm_syntax)/lib/,\ + $(arch-lib-srcs) $(arch-lib-srcs:.c=.S)))) +SRCS = sched.c timer-emul.c socket.c main.c ethernet.c \ + io-ops.c socket-ops.c misc.c time.c options.c loopback.c \ + kmem_cache.c stubs.c dummy.c tunnel.c pfinet-ops.c \ + iioctl-ops.c +MIGSRCS = ioServer.c socketServer.c startup_notifyServer.c \ + pfinetServer.c iioctlServer.c + +pfinet_SOURCES = $(MIGSRCS) $(LINUXSRCS) $(SRCS) + +LCLHDRS = config.h mapped-time.h mutations.h pfinet.h +LINUXHDRS = arp.h datalink.h eth.h icmp.h ip.h ipx.h ipxcall.h p8022.h \ + p8022call.h protocol.h psnap.h psnapcall.h \ + rarp.h raw.h route.h snmp.h sock.h tcp.h udp.h +FROBBEDLINUXHEADERS = autoconf.h config.h errno.h etherdevice.h fcntl.h \ + icmp.h if.h if_arp.h if_ether.h igmp.h in.h inet.h interrupt.h \ + ip.h ip_fw.h ipx.h kernel.h major.h malloc.h mm.h net.h netdevice.h \ + notifier.h param.h route.h sched.h skbuff.h socket.h sockios.h stat.h \ + string.h tcp.h termios.h time.h timer.h types.h udp.h un.h wait.h +ASMHEADERS=bitops.h segment.h system.h + +noinst_HEADERS = $(LCLHDRS) $(LINUXHDRS) $(FROBBEDLINUXHEADERS) $(ASMHEADERS) + +pfinet_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la \ + $(top_builddir)/libiohelp/libiohelp.la + +vpath %.c $(addprefix $(srcdir)/linux-src/net/,core ethernet ipv4) +vpath %.c $(srcdir)/linux-src/arch/$(asm_syntax)/lib +vpath %.S $(srcdir)/linux-src/arch/$(asm_syntax)/lib + +AM_CPPFLAGS += -imacros $(srcdir)/config.h \ + -I$(srcdir)/glue-include \ + -I$(srcdir)/linux-src/include + +asm/checksum.h: ../config.status + mkdir -p $(@D) + echo > $@.new \ + '#include "../linux-src/include/asm-$(asm_syntax)/checksum.h"' + mv -f $@.new $@ + +io_MIGSFLAGS = -imacros $(srcdir)/mutations.h +socket_MIGSFLAGS = -imacros $(srcdir)/mutations.h + +# cpp doesn't automatically make dependencies for -imacros dependencies. argh. +io_S.h ioServer.c socket_S.h socketServer.c: mutations.h +$(OBJS): config.h + +lndist: lndist-linux-inet-files lndist-linux-files lndist-asm-files + +lndist_linux_inet_files: $(top_srcdir)/hurd-snap/$(dir)/linux-inet + ln $(addprefix $(srcdir)/linux-inet/,$(LINUXSRCS) $(UNUSEDSRC) $(LINUXHDRS)) $< + +lndist_linux_files: $(top_srcdir)/hurd-snap/$(dir)/linux + ln $(addprefix $(srcdir)/linux/,$(FROBBEDLINUXHEADERS)) $< + +lndist_asm_files: $(top_srcdir)/hurd-snap/$(dir)/asm + ln $(addprefix $(srcdir)/asm/,$(ASMHEADERS)) $< + +$(top_srcdir)/hurd-snap/$(dir)/linux-inet: + mkdir $@ +$(top_srcdir)/hurd-snap/$(dir)/linux: + mkdir $@ +$(top_srcdir)/hurd-snap/$(dir)/asm: + mkdir $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/pfinet/linux-src/net/ipv4/Config.in hurd/pfinet/linux-src/net/ipv4/Config.in --- hurd/pfinet/linux-src/net/ipv4/Config.in 2000-02-05 13:13:21.000000000 +0100 +++ hurd/pfinet/linux-src/net/ipv4/Config.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,85 +0,0 @@ -# -# IP configuration -# -bool 'IP: multicasting' CONFIG_IP_MULTICAST -bool 'IP: advanced router' CONFIG_IP_ADVANCED_ROUTER -if [ "$CONFIG_IP_ADVANCED_ROUTER" = "y" ]; then - define_bool CONFIG_RTNETLINK y - define_bool CONFIG_NETLINK y - bool 'IP: policy routing' CONFIG_IP_MULTIPLE_TABLES - bool 'IP: equal cost multipath' CONFIG_IP_ROUTE_MULTIPATH - bool 'IP: use TOS value as routing key' CONFIG_IP_ROUTE_TOS - bool 'IP: verbose route monitoring' CONFIG_IP_ROUTE_VERBOSE - bool 'IP: large routing tables' CONFIG_IP_ROUTE_LARGE_TABLES - if [ "$CONFIG_IP_MULTIPLE_TABLES" = "y" ]; then - bool 'IP: fast network address translation' CONFIG_IP_ROUTE_NAT - fi -fi -bool 'IP: kernel level autoconfiguration' CONFIG_IP_PNP -if [ "$CONFIG_IP_PNP" = "y" ]; then - bool ' BOOTP support' CONFIG_IP_PNP_BOOTP - bool ' RARP support' CONFIG_IP_PNP_RARP -# not yet ready.. -# bool ' ARP support' CONFIG_IP_PNP_ARP -fi -if [ "$CONFIG_FIREWALL" = "y" ]; then - bool 'IP: firewalling' CONFIG_IP_FIREWALL - if [ "$CONFIG_IP_FIREWALL" = "y" ]; then - if [ "$CONFIG_NETLINK" = "y" ]; then - bool 'IP: firewall packet netlink device' CONFIG_IP_FIREWALL_NETLINK - if [ "$CONFIG_IP_FIREWALL_NETLINK" = "y" ]; then - define_bool CONFIG_NETLINK_DEV y - fi - fi - if [ "$CONFIG_IP_MULTIPLE_TABLES" = "y" ]; then - bool 'IP: use FWMARK value as routing key' CONFIG_IP_ROUTE_FWMARK - fi - fi -fi -if [ "$CONFIG_IP_FIREWALL" = "y" ]; then - bool 'IP: transparent proxy support' CONFIG_IP_TRANSPARENT_PROXY - bool 'IP: masquerading' CONFIG_IP_MASQUERADE - if [ "$CONFIG_IP_MASQUERADE" != "n" ]; then - comment 'Protocol-specific masquerading support will be built as modules.' - bool 'IP: ICMP masquerading' CONFIG_IP_MASQUERADE_ICMP - comment 'Protocol-specific masquerading support will be built as modules.' - if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then - bool 'IP: masquerading special modules support' CONFIG_IP_MASQUERADE_MOD - if [ "$CONFIG_IP_MASQUERADE_MOD" = "y" ]; then - tristate 'IP: ipautofw masq support (EXPERIMENTAL)' CONFIG_IP_MASQUERADE_IPAUTOFW - tristate 'IP: ipportfw masq support (EXPERIMENTAL)' CONFIG_IP_MASQUERADE_IPPORTFW - tristate 'IP: ip fwmark masq-forwarding support (EXPERIMENTAL)' CONFIG_IP_MASQUERADE_MFW - fi - fi - fi -fi -bool 'IP: optimize as router not host' CONFIG_IP_ROUTER -tristate 'IP: tunneling' CONFIG_NET_IPIP -tristate 'IP: GRE tunnels over IP' CONFIG_NET_IPGRE -if [ "$CONFIG_IP_MULTICAST" = "y" ]; then - if [ "$CONFIG_NET_IPGRE" != "n" ]; then - bool 'IP: broadcast GRE over IP' CONFIG_NET_IPGRE_BROADCAST - fi - bool 'IP: multicast routing' CONFIG_IP_MROUTE - if [ "$CONFIG_IP_MROUTE" = "y" ]; then - bool 'IP: PIM-SM version 1 support' CONFIG_IP_PIMSM_V1 - bool 'IP: PIM-SM version 2 support' CONFIG_IP_PIMSM_V2 - fi -fi -bool 'IP: aliasing support' CONFIG_IP_ALIAS -if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then - if [ "$CONFIG_RTNETLINK" = "y" ]; then - bool 'IP: ARP daemon support (EXPERIMENTAL)' CONFIG_ARPD - fi -fi -bool 'IP: TCP syncookie support (not enabled per default)' CONFIG_SYN_COOKIES -comment '(it is safe to leave these untouched)' -#bool 'IP: PC/TCP compatibility mode' CONFIG_INET_PCTCP -tristate 'IP: Reverse ARP' CONFIG_INET_RARP -#bool 'IP: Path MTU Discovery (normally enabled)' CONFIG_PATH_MTU_DISCOVERY -#bool 'IP: Disable NAGLE algorithm (normally enabled)' CONFIG_TCP_NAGLE_OFF -bool 'IP: Allow large windows (not recommended if <16Mb of memory)' CONFIG_SKB_LARGE -#if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then -#bool 'IP: support experimental checksum copy to user for UDP' CONFIG_UDP_DELAY_CSUM -#fi - diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/pflocal/Makefile.am hurd/pflocal/Makefile.am --- hurd/pflocal/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/pflocal/Makefile.am 2006-01-07 02:13:41.000000000 +0100 @@ -0,0 +1,44 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +BUILT_SOURCES += interrupt_S.h + +hurd_PROGRAMS = pflocal + +MIGSTUBS = ioServer.c socketServer.c + +nodist_pflocal_SOURCES = $(MIGSTUBS) + +pflocal_SOURCES = connq.c io.c pflocal.c socket.c pf.c \ + sock.c sserver.c + +noinst_HEADERS = connq.h sock.h mig-decls.h mig-mutate.h sserver.h + +pflocal_LDADD = $(top_builddir)/libpipe/libpipe.la \ + $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/proc/Makefile.am hurd/proc/Makefile.am --- hurd/proc/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/proc/Makefile.am 2006-01-07 02:09:48.000000000 +0100 @@ -0,0 +1,48 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +BUILT_SOURCES += mutated_ourmsg_U.h + +hurd_PROGRAMS = proc + +MIGSTUBS = processServer.c notifyServer.c ourmsgUser.c proc_excUser.c \ + proc_excServer.c + +nodist_proc_SOURCES = $(MIGSTUBS) + +proc_SOURCES = wait.c hash.c host.c info.c main.c mgt.c notify.c \ + pgrp.c msg.c cpu-types.c stubs.c + +noinst_HEADERS = proc.h + +EXTRA_DIST = proc_exc.defs ourmsg.defs + +MIGSFLAGS="-DPROCESS_INTRAN=pstruct_t reqport_find (process_t)" \ + "-DPROCESS_DESTRUCTOR=process_drop (pstruct_t)" \ + "-DPROCESS_IMPORTS=import \"proc.h\";" + +proc_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +mutated_ourmsg_U.h: ourmsg_U.h + sed -e 's/_msg_user_/_ourmsg_user_/' < $< > $@ diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/release/Makefile.am hurd/release/Makefile.am --- hurd/release/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/release/Makefile.am 2006-01-07 01:37:45.000000000 +0100 @@ -0,0 +1,21 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/serverboot/Makefile.am hurd/serverboot/Makefile.am --- hurd/serverboot/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/serverboot/Makefile.am 2006-01-07 02:51:42.000000000 +0100 @@ -0,0 +1,57 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +boot_PROGRAMS = serverboot + +BOOTDIRSRCS = $(top_srcdir)/boot/boot_script.c \ + $(top_srcdir)/boot/userland-boot.c + +UNZIPSRCS = # inflate.c util.c do-bunzip2.c unzip.c + +serverboot_SOURCES = bootstrap.c ffs_compat.c load.c wiring.c \ + ffs_file_io.c minix_ffs_compat.c file_io.c \ + minix_file_io.c ext2_file_io.c strfcns.c exec.c \ + panic.c elf-load.c gunzip.c bunzip2.c \ + $(BOOTDIRSRCS) $(UNZIPSRCS) + +noinst_HEADERS = assert.h disk_inode_ffs.h fs.h queue.h defs.h \ + minix_ffs_compat.h wiring.h dir.h ffs_compat.h minix_fs.h \ + disk_inode.h file_io.h minix_super.h mach-exec.h \ + $(top_srcdir)/boot/boot_script.h + +EXTRA_DIST = def_pager_setup.c default_pager.c kalloc.c + +serverboot_LDADD = $(top_builddir)/boot/userland-boot.o \ + $(top_builddir)/exec/inflate.o \ + $(top_builddir)/exec/util.o \ + $(top_builddir)/exec/do-bunzip2.o \ + $(top_builddir)/exec/unzip.o \ + $(top_builddir)/libthreads/libthreads.la + +# If SMALL_BZIP2 is defined, use relatively small memory. +# It's crucial for serverboot, because swap is not enabled yet. +AM_CPPFLAGS += -I$(top_srcdir)/exec -DGZIP -DBZIP2 -DSMALL_BZIP2 + +serverboot_LDFLAGS = -all-static + +# Don't even bother. +AM_CFLAGS += $(filter-out -Wall,$(CFLAGS)) + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/storeio/Makefile.am hurd/storeio/Makefile.am --- hurd/storeio/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/storeio/Makefile.am 2006-01-07 02:47:07.000000000 +0100 @@ -0,0 +1,37 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = storeio + +storeio_SOURCES = dev.c storeio.c open.c pager.c io.c + +noinst_HEADERS = dev.h open.h + +storeio_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/sutils/Makefile.am hurd/sutils/Makefile.am --- hurd/sutils/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/sutils/Makefile.am 2006-01-07 02:37:38.000000000 +0100 @@ -0,0 +1,54 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +progs = reboot halt fsck swapon swapoff + +scripts = e2os MAKEDEV losetup + +CLEANFILES += $(scripts) + +sbin_SCRIPTS = $(scripts) + +sbin_PROGRAMS = $(progs) + +noinst_HEADERS = fstab.h + +LDADD = $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +fsck_SOURCES = fsck.c fstab.c clookup.c + +swapon_SOURCES = default_pagerUser.c swapon.c + +swapon_LDADD = $(top_builddir)/libstore/libstore.la + +swapoff_SOURCES = default_pagerUser.c swapoff.c + +swapoff_LDADD = $(top_builddir)/libstore/libstore.la + +install-exec-hook: $(prefix)/dev $(prefix)/dev/MAKEDEV + +$(prefix)/dev/MAKEDEV: + ln -s ../sbin/MAKEDEV $@ + +$(prefix)/dev: + @$(MKINSTALLDIRS) $@ + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/term/Makefile.am hurd/term/Makefile.am --- hurd/term/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/term/Makefile.am 2006-01-07 02:22:24.000000000 +0100 @@ -0,0 +1,44 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = term + +MIGSTUBS = termServer.c device_replyServer.c tioctlServer.c ourmsgUser.c + +nodist_term_SOURCES = $(MIGSTUBS) + +term_SOURCES = devio.c munge.c users.c main.c ptyio.c hurdio.c + +noinst_HEADERS = term.h + +EXTRA_DIST = ourmsg.defs + +term_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +## Automake 1.7.2 doesn't support per-compilation object CPPFLAGS yet +## Only device_replyServer.c needs this, though. +AM_CPPFLAGS += -DTypeCheck=0 -Wno-unused diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/tmpfs/Makefile.am hurd/tmpfs/Makefile.am --- hurd/tmpfs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/tmpfs/Makefile.am 2006-01-07 02:38:39.000000000 +0100 @@ -0,0 +1,42 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = tmpfs + +MIGSTUBS = default_pagerUser.c + +nodist_tmpfs_SOURCES = $(MIGSTUBS) + +tmpfs_SOURCES = tmpfs.c node.c dir.c pager-stubs.c + +noinst_HEADERS = tmpfs.h + +# XXX The shared libdiskfs requires libstore even though we don't use it here. +tmpfs_LDADD = $(top_builddir)/libdiskfs/libdiskfs.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/trans/Makefile.am hurd/trans/Makefile.am --- hurd/trans/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/trans/Makefile.am 2006-01-07 02:49:48.000000000 +0100 @@ -0,0 +1,144 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = symlink firmlink ifsock magic null fifo new-fifo fwd \ + crash password hello hello-mt streamio fakeroot proxy-defpager + +MIGSTUBS = fsysServer.c ifsockServer.c passwordServer.c \ + crashServer.c crash_replyUser.c msgServer.c \ + default_pagerServer.c default_pagerUser.c \ + device_replyServer.c + +LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libpipe/libpipe.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +password_LDLIBS = $(LIBCRYPT) + +# hurd/default_pager.defs doesn't include hurd/hurd_types.defs and so won't +# obey SERVERPREFIX. +default_pager_MIGCOMSFLAGS = -prefix S_ + +nodist_symlink_SOURCES = fsysServer.c +symlink_SOURCES = symlink.c + +nodist_ifsock_SOURCES = ifsockServer.c +ifsock_SOURCES = ifsock.c + +nodist_crash_SOURCES = crashServer.c crash_replyUser.c msgServer.c +crash_SOURCES = crash.c $(top_srcdir)/exec/elfcore.c + +nodist_password_SOURCES = passwordServer.c +password_SOURCES = password.c + +nodist_streamio_SOURCES = device_replyServer.c +streamio_SOURCES = streamio.c + +nodist_proxy_defpager_SOURCES = default_pagerServer.c \ + default_pagerUser.c +proxy_defpager_SOURCES = proxy-defpager.c + +proxy_defpager_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libfshelp/libfshelp.la + +crash_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libfshelp/libfshelp.la + +password_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libfshelp/libfshelp.la + +streamio_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libfshelp/libfshelp.la + +fwd_LDADD = $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libports/libports.la + +hello_mt_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +magic_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +null_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +ifsock_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +fifo_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libpipe/libpipe.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +new_fifo_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libpipe/libpipe.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +firmlink_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +hello_LDADD = $(top_builddir)/libtrivfs/libtrivfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + +fakeroot_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/ufs/Makefile.am hurd/ufs/Makefile.am --- hurd/ufs/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/ufs/Makefile.am 2006-01-07 02:41:16.000000000 +0100 @@ -0,0 +1,48 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = ufs ufs.static + +SRCS = alloc.c consts.c dir.c hyper.c inode.c main.c pager.c \ + sizes.c subr.c tables.c bmap.c pokeloc.c + +noinst_HEADERS = ufs.h fs.h dinode.h dir.h + +UFSLIBS = $(top_builddir)/libdiskfs/libdiskfs.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libpager/libpager.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +ufs_SOURCES = $(SRCS) + +ufs_static_SOURCES = $(SRCS) + +ufs_LDADD = $(UFSLIBS) + +ufs_static_LDADD = $(UFSLIBS) + +ufs_static_LDFLAGS = -all-static + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/ufs-fsck/Makefile.am hurd/ufs-fsck/Makefile.am --- hurd/ufs-fsck/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/ufs-fsck/Makefile.am 2006-01-07 02:33:30.000000000 +0100 @@ -0,0 +1,30 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +sbin_PROGRAMS = fsck.ufs + +fsck_ufs_SOURCES = dir.c main.c pass1.c pass1b.c pass2.c pass3.c \ + pass4.c pass5.c setup.c utilities.c inode.c $(top_srcdir)/ufs/tables.c + +noinst_HEADERS = fsck.h + +fsck_ufs_LDADD = $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/ufs-utils/Makefile.am hurd/ufs-utils/Makefile.am --- hurd/ufs-utils/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/ufs-utils/Makefile.am 2006-01-07 02:04:50.000000000 +0100 @@ -0,0 +1,32 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +sbin_PROGRAMS = mkfs.ufs clri.ufs stati.ufs + +mkfs_ufs_SOURCES = mkfs.c dlabel.c + +mkfs_ufs_LDADD = $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +clri_ufs_SOURCES = clri.c + +stati_ufs_SOURCES = stati.c + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/usermux/Makefile.am hurd/usermux/Makefile.am --- hurd/usermux/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/usermux/Makefile.am 2006-01-07 02:43:31.000000000 +0100 @@ -0,0 +1,35 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +hurd_PROGRAMS = usermux + +usermux_SOURCES = usermux.c mux.c leaf.c node.c stubs.c + +noinst_HEADERS = usermux.h + +usermux_LDADD = $(top_builddir)/libnetfs/libnetfs.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libiohelp/libiohelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/utils/Makefile.am hurd/utils/Makefile.am --- hurd/utils/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ hurd/utils/Makefile.am 2006-01-07 02:54:11.000000000 +0100 @@ -0,0 +1,135 @@ +## Process this file with automake to create Makefile.in + +## Copyright (C) 2002 Free Software Foundation, Inc. +## This file is part of GNU Hurd. +## +## GNU Hurd is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## GNU Hurd is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + +include $(top_srcdir)/Makeconf + +# JB - ifneq ($(LIBNCURSESW),) +#CONSOLENCURSES = console-ncurses +#CONSLIBS = $(top_builddir)/libcons/libcons.la +# JB - endif + +nodist_bin_SCRIPTS = uptime loginpr sush fakeroot +CLEANFILES += $(nodist_bin_SCRIPTS) + +EXTRA_DIST = uptime.sh loginpr.sh sush.sh fakeroot.sh + +bin_PROGRAMS = shd ps settrans showtrans syncfs fsysopts \ + storeinfo login w ids vmstat portinfo \ + devprobe vminfo addauth rmauth unsu setauth ftpcp ftpdir storecat \ + storeread msgport rpctrace mount gcore +# $(CONSOLENCURSES) fakeauth + +# JB special-targets = loginpr sush uptime fakeroot + +noinst_HEADERS = psout.h parse.h pids.h frobauth.h + +LDADD = $(top_builddir)/libps/libps.la \ + $(top_builddir)/libihash/libihash.la \ + $(top_builddir)/libstore/libstore.la \ + $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libftpconn/libftpconn.la \ + $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la # $(CONSLIBS) + +login_LDADD = -lutil $(LIBCRYPT) $(LDADD) + +addauth_LDLIBS = $(LIBCRYPT) + +setauth_LDLIBS = $(LIBCRYPT) + +install-exec-hook: + chmod 4775 $(DESTDIR)/$(bindir)/login \ + $(DESTDIR)/$(bindir)/ids \ + $(DESTDIR)/$(bindir)/ps \ + $(DESTDIR)/$(bindir)/w + chown root $(DESTDIR)/$(bindir)/login \ + $(DESTDIR)/$(bindir)/ids \ + $(DESTDIR)/$(bindir)/ps \ + $(DESTDIR)/$(bindir)/w + +ps_SOURCES = ps.c parse.c pids.c psout.c + +addauth_SOURCES = parse.c pids.c nonsugid.c addauth.c frobauth.c + +rmauth_SOURCES = parse.c pids.c frobauth.c frobauth-mod.c rmauth.c + +setauth_SOURCES = parse.c pids.c frobauth.c nonsugid.c frobauth-mod.c setauth.c + +unsu_SOURCES = parse.c pids.c frobauth.c frobauth-mod.c unsu.c + +msgport_SOURCES = parse.c pids.c msgport.c + +login_SOURCES = login.c nonsugid.c + +w_SOURCES = psout.c w.c + +ps_LDADD = $(top_builddir)/libps/libps.la \ + $(top_builddir)/libihash/libihash.la $(LDADD) + +w_LDADD = $(top_builddir)/libps/libps.la \ + $(top_builddir)/libihash/libihash.la $(LDADD) + +storeinfo_LDADD = $(top_builddir)/libstore/libstore.la $(LDADD) + +storecat_LDADD = $(top_builddir)/libstore/libstore.la $(LDADD) + +storeread_LDADD = $(top_builddir)/libstore/libstore.la $(LDADD) + +ftpcp_LDADD = $(top_builddir)/libftpconn/libftpconn.la $(LDADD) + +ftpdir_LDADD = $(top_builddir)/libftpconn/libftpconn.la $(LDADD) + +# We must include libthreads because of a bug in the way shared libraries +# work: all libraries that *any* routine in libfshelp uses must be defined. +settrans_LDADD = $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libthreads/libthreads.la $(LDADD) + +rpctrace_LDADD = $(top_builddir)/libthreads/libthreads.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libihash/libihash.la $(LDADD) + +# fakeauth_SOURCES = authServer.c auth_requestUser.c interruptServer.c fakeauth.c + +# fakeauth_LDADD = $(top_builddir)/libthreads/libthreads.la \ +# $(top_builddir)/libports/libports.la \ +# $(top_builddir)/libihash/libihash.la \ +# $(top_builddir)/libshouldbeinlibc/libshouldbeinlibc.la + +auth_MIGSFLAGS = -imacros $(top_srcdir)/auth/authmutations.h + +fakeauth_CPPFLAGS = -I$(top_srcdir)/auth + +AM_CPPFLAGS += -I$(top_srcdir)/auth + +console_ncurses: $(top_builddir)/libcons/libcons.la \ + $(top_builddir)/libports/libports.la \ + $(top_builddir)/libthreads/libthreads.la + +console_ncurses_CPPFLAGS = $(NCURSESW_INCLUDE) + +console_ncurses_LDLIBS = $(LIBNCURSESW) + +mount_SOURCES = mount.c $(top_srcdir)/sutils/fstab.c \ + $(top_srcdir)/sutils $(top_srcdir)/sutils/clookup.c + +mount_LDADD = $(top_builddir)/libfshelp/libfshelp.la \ + $(top_builddir)/libports/libports.la + diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/version.h.in hurd/version.h.in --- hurd/version.h.in 2006-01-07 03:24:17.000000000 +0100 +++ hurd/version.h.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,29 +0,0 @@ -/* Hurd version - Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. - Written by Thomas Bushnell, n/BSG. - - This file is part of the GNU Hurd. - - The GNU Hurd is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2, or (at - your option) any later version. - - The GNU Hurd is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ - -#ifndef HURD_VERSION -#define HURD_VERSION MASTER_HURD_VERSION -#endif - -/* The standard way to print versions for --version. */ -#define STANDARD_HURD_VERSION(s) \ - #s " (GNU Hurd) " HURD_VERSION -#define STANDARD_HURD_VERSION_EXTRA(s, extra) \ - #s " (GNU Hurd; " extra ") " HURD_VERSION diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/INSTALL hurd/INSTALL --- hurd/INSTALL 2006-01-07 03:24:16.000000000 +0100 +++ hurd/INSTALL 2006-01-07 03:05:02.000000000 +0100 @@ -1,107 +1,40 @@ --*- Text -*- -GNU Hurd 0.2 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software +Foundation, Inc. -This is the Hurd. Welcome. - -This file contains instructions for compiling and installing the Hurd -from your existing Hurd system. - -If you are running any other kind of system whatsoever, these -instructions will *NOT* be sufficient. The file INSTALL-cross -contains some past instructions for doing so, but it's too much -trouble to maintain them and make them easier. Your best bet is to -start with a running Hurd system already. - -The Hurd and the GNU C Library each need each other in order to -compile. If you are installing both, please follow the directions -"Building the Hurd and libc together". If the C library version you -want to use is already installed, and you know both it and this -version of the Hurd will interoperate together, then see the -instructions "Bulding the Hurd by itself" below. - -The Hurd version 0.2 has been verified to work with versions 2.0.3 and -2.0.4 of the GNU C library. (But note that version 2.0.3 has some -easily-fixed bugs in compilation for the i386-gnu target.) - -Bug reports for the GNU Hurd should be sent to the mailing list -`bug-hurd@prep.ai.mit.edu'. Please do not send requests for -assistance in installing or using the software to that address. -Instead, send requests for assistance to the mailing list -`help-hurd@prep.ai.mit.edu'. You can join these lists by sending a -request to `bug-hurd-request@prep.ai.mit.edu' or -`help-hurd-request@prep.ai.mit.edu' respectively. + This file is free documentation; the Free Software Foundation gives +unlimited permission to copy, distribute and modify it. +Basic Installation +================== -Configuring the Hurd -==================== + These are generic installation instructions. -The `configure' shell script attempts to guess correct values for + The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that -you can run in the future to recreate the current configuration, a -file `config.cache' that saves the results of its tests to speed up -reconfiguring, and a file `config.log' containing compiler output -(useful mainly for debugging `configure'). +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=config.cache' or simply `-C') that saves +the results of its tests to speed up reconfiguring. (Caching is +disabled by default to prevent problems with accidental use of stale +cache files.) -If you need to do unusual things to compile the package, please try to -figure out how `configure' could check whether to do them, and mail + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can -be considered for the next release. If at some point `config.cache' -contains results you don't want to keep, you may remove or edit it. - -The file `configure.in' is used to create `configure' by a program -called `autoconf'. You only need `configure.in' if you want to change -it or regenerate `configure' using a newer version of `autoconf'. - - -Building the Hurd, GNUmach, and libc together -=========================================== - -1. Configure GNUmach. - -3. Do `make install' in /mig. ONLY. - -4. Do `make install' in /include. ONLY. - This may have installed an include file called mach_init.h. If so, - delete it; you want to use the one that libc will install, and if - this file exists, libc might not install its version. - -5. Configure the Hurd with `configure'. - -6. In the Hurd directory, type `make install-headers no_deps=t'. - -7. Configure libc. - -8. `make install' libc. - -9. `make' and `make install' Hurd. - -10. Do `make -r kernel' in mach4/kernel. - -11. Copy mach4/kernel to /boot/kernel. - - -Building the Hurd and libc together -=================================== - -1. `cd' to the directory containing the Hurd's source code and type - `./configure' to configure the Hurd. - -2. Type `make install-headers no_deps=t' to install the Hurd's header files. - -3. Follow the instructions in the GNU C Library for configuring and - installing GNU libc. - -4. Return to the directory containing the Hurd's source code and type - `make' to compile the Hurd. - -5. Type `make install' to install the Hurd. - - -Building the Hurd by itself -=========================== +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You only need +`configure.ac' if you want to change it or regenerate `configure' using +a newer version of `autoconf'. The simplest way to compile this package is: @@ -131,48 +64,110 @@ all sorts of other programs in order to regenerate files that came with the distribution. +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix + + *Note Defining Variables::, for more details. + Compiling For Multiple Architectures ==================================== -You can compile the package for more than one kind of computer at the + You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their -own directory. `cd' to the directory where you want the object files -and executables to go and run the `configure' script. `configure' -automatically checks for the source code in the directory that -`configure' is in and in `..'. +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not support the `VPATH' +variable, you have to compile the package for one architecture at a +time in the source code directory. After you have installed the +package for one architecture, use `make distclean' before reconfiguring +for another architecture. Installation Names ================== -By default, `make install' will install the package's files in `/bin', -`/man', etc. You can specify an installation prefix by giving -`configure' the option `--prefix=PATH'. - -You can specify separate installation prefixes for -architecture-specific files and architecture-independent files. If -you give `configure' the option `--exec-prefix=PATH', the package will -use PATH as the prefix for installing programs and libraries. + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. -In addition, if you use an unusual directory layout you can give -options like `--bindir=PATH' to specify different values for -particular kinds of files. Run `configure --help' for a list of the -directories you can set and what kinds of files go in them. - -If the package supports it, you can cause programs to be installed -with an extra prefix or suffix on their names by giving `configure' -the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. - -Please note, however, that the Hurd knows where it is located in the -filesystem. If you have installed it in an unusual location, the -system might not work properly, or at all. The chief utility of these -options for the Hurd is to allow you to "install" in some alternate -location, and then copy these to the actual root filesystem later. + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the `--target=TYPE' option to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=TYPE'. Sharing Defaults ================ -If you want to set default values for `configure' scripts to share, + If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then @@ -180,32 +175,55 @@ `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. -Operation Controls +Defining Variables ================== + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=value'. For example: + + ./configure CC=/usr/local2/bin/gcc + +will cause the specified gcc to be used as the C compiler (unless it is +overridden in the site shell script). + +`configure' Invocation +====================== + `configure' recognizes the following options to control how it operates. -`--cache-file=FILE' - Use and save the results of the tests in FILE instead of - `./config.cache'. Set FILE to `/dev/null' to disable caching, for - debugging `configure'. - `--help' +`-h' Print a summary of the options to `configure', and exit. +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=FILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=config.cache'. + `--quiet' `--silent' `-q' - Do not print messages saying which checks are being made. + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`configure' also accepts some other, not widely useful, options. +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. diff -Naur --exclude=Makefile.in --exclude=.svn --exclude=CVS --exclude=Makefile hurd/Makeconf hurd/Makeconf