Formerly GNUmakefile.~97~

This commit is contained in:
Roland McGrath 1993-03-28 22:36:05 +00:00
parent ae1278315f
commit d1a988ce9f

View file

@ -20,26 +20,6 @@
.PHONY: default .PHONY: default
default: default:
override srcdir := .
override CC := $(CC)
# Get most of the information from the Unix-compatible makefile.
include compatMakefile
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. # Set `ARCH' to a string for the type of machine.
ifndef ARCH ifndef ARCH
ifdef machine ifdef machine
@ -47,6 +27,34 @@ ARCH = $(machine)
endif # machine endif # machine
endif # not ARCH 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))
endif
ifdef ARCH ifdef ARCH
ifndef no_libc ifndef no_libc
@ -94,10 +102,6 @@ $(archpfx)load.o: load.c
$(COMPILE.c) $(LOAD_AVG) $< -o $@ $(COMPILE.c) $(LOAD_AVG) $< -o $@
$(archpfx)load.dep: load.c $(archpfx)load.dep: load.c
$(mkdep) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@ $(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)) CPPFLAGS := -I$(ARCH) $(CPPFLAGS) -DHAVE_CONFIG_H $(filter-out @%@,$(defines))
@ -155,8 +159,6 @@ else
ifdef archpfx ifdef archpfx
load.dep: load.c load.dep: load.c
$(mkdep-nolib) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@ $(mkdep-nolib) $(LOAD_AVG) $< | sed 's,$*\.o,& $@,' > $@
remote.dep: remote.c
$(mkdep-nolib) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
endif endif
nolib-deps = $(patsubst $(archpfx)%,%,$(depfiles)) nolib-deps = $(patsubst $(archpfx)%,%,$(depfiles))
endif endif