summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-03-28 22:36:05 +0000
committerRoland McGrath <roland@redhat.com>1993-03-28 22:36:05 +0000
commitd1a988ce9f5013da2d9b619a3206ae8c667c69ea (patch)
treeed74f977b2defc2601e73538049ebba1474167e8
parentae1278315fd561f9aa8f09f804f5e29ce592af8a (diff)
downloadmake-d1a988ce9f5013da2d9b619a3206ae8c667c69ea.tar.gz
Formerly GNUmakefile.~97~
-rw-r--r--GNUmakefile44
1 files changed, 23 insertions, 21 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 9a83b34a..484b478a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -20,32 +20,40 @@
.PHONY: default
default:
+# Set `ARCH' to a string for the type of machine.
+ifndef ARCH
+ifdef machine
+ARCH = $(machine)
+endif # machine
+endif # not ARCH
+
override srcdir := .
override CC := $(CC)
+ifeq ($(ARCH),hp300)
+customs=yes
+endif
+ifdef customs
+override REMOTE := cstms
+else
+override REMOTE := stub
+endif
+
# Get most of the information from the Unix-compatible makefile.
include compatMakefile
+# Tell autoconf/autoheader to use m4 files from the master source.
+ACFLAGS := -m /home/gd/gnu/autoconf
+configure config.h.in: $(patsubst %,/home/gd/gnu/autoconf/%.m4,\
+ acspecific acgeneral)
+config.h.in: /home/gd/gnu/autoconf/acconfig.h
+
+ifdef customs
extras := $(filter-out getloadavg.o @%@,$(extras)) getloadavg.o
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
ALLOCA := $(filter-out @%@,$(ALLOCA))
-
-customs=yes
-ifdef customs
-REMOTE := cstms
-defines := $(defines) -Ipmake/customs -Ipmake/lib/include
-LOADLIBES := $(addprefix pmake/customs/,customslib.o rpc.o xlog.o) \
- pmake/lib/sprite/libsprite.a
-else
-REMOTE := stub
endif
-# Set `ARCH' to a string for the type of machine.
-ifndef ARCH
-ifdef machine
-ARCH = $(machine)
-endif # machine
-endif # not ARCH
ifdef ARCH
@@ -94,10 +102,6 @@ $(archpfx)load.o: load.c
$(COMPILE.c) $(LOAD_AVG) $< -o $@
$(archpfx)load.dep: load.c
$(mkdep) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@
-$(archpfx)remote.o: remote.c remote-*.c
- $(COMPILE.c) $(REMOTE) $< -o $@
-$(archpfx)remote.dep: remote.c remote-*.c
- $(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
CPPFLAGS := -I$(ARCH) $(CPPFLAGS) -DHAVE_CONFIG_H $(filter-out @%@,$(defines))
@@ -155,8 +159,6 @@ else
ifdef archpfx
load.dep: load.c
$(mkdep-nolib) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@
-remote.dep: remote.c
- $(mkdep-nolib) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
endif
nolib-deps = $(patsubst $(archpfx)%,%,$(depfiles))
endif