mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-02-06 22:45:27 +00:00
Formerly GNUmakefile.~79~
This commit is contained in:
parent
d9ffca6d79
commit
b0a49baf2f
1 changed files with 29 additions and 26 deletions
55
GNUmakefile
55
GNUmakefile
|
@ -38,30 +38,6 @@ endif # not ARCH
|
||||||
|
|
||||||
ifdef ARCH
|
ifdef ARCH
|
||||||
|
|
||||||
# We know the type of machine, so put the binaries in subdirectories.
|
|
||||||
$(ARCH)/%.o: %.c
|
|
||||||
$(COMPILE.c) $< $(OUTPUT_OPTION)
|
|
||||||
objs := $(addprefix $(ARCH)/,$(objs))
|
|
||||||
prog := $(ARCH)/make
|
|
||||||
|
|
||||||
archpfx = $(ARCH)/
|
|
||||||
|
|
||||||
$(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
|
|
||||||
$(COMPILE.c) $(REMOTE) $< -o $@
|
|
||||||
$(archpfx)remote.dep: remote.c
|
|
||||||
$(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
|
|
||||||
|
|
||||||
CPPFLAGS := $(filter-out @%@,$(defines))
|
|
||||||
|
|
||||||
ifneq "$(wildcard $(ARCH)/makefile)" ""
|
|
||||||
include $(ARCH)/makefile
|
|
||||||
endif
|
|
||||||
objs := $(sort $(objs) $(addprefix $(ARCH)/,$(ALLOCA) $(extras)))
|
|
||||||
|
|
||||||
ifndef no_libc
|
ifndef no_libc
|
||||||
libc_dir = /home/gd2/gnu/libc/$(ARCH)
|
libc_dir = /home/gd2/gnu/libc/$(ARCH)
|
||||||
ifneq ($(wildcard $(libc_dir)),)
|
ifneq ($(wildcard $(libc_dir)),)
|
||||||
|
@ -79,6 +55,9 @@ CC := $(CC) -b glibc
|
||||||
GETOPT =
|
GETOPT =
|
||||||
#GETOPT_SRC = Don't clear this or dist will break.
|
#GETOPT_SRC = Don't clear this or dist will break.
|
||||||
|
|
||||||
|
# glob is in libc too.
|
||||||
|
GLOB =
|
||||||
|
|
||||||
CPPFLAGS := $(CPPFLAGS) \
|
CPPFLAGS := $(CPPFLAGS) \
|
||||||
-DSTDC_HEADERS -DHAVE_UNISTD_H -DHAVE_GLOB_H \
|
-DSTDC_HEADERS -DHAVE_UNISTD_H -DHAVE_GLOB_H \
|
||||||
-DHAVE_GETDTABLESIZE -DHAVE_SYS_SIGLIST -DHAVE_DUP2 \
|
-DHAVE_GETDTABLESIZE -DHAVE_SYS_SIGLIST -DHAVE_DUP2 \
|
||||||
|
@ -90,9 +69,33 @@ globdep = glob/libglob.a
|
||||||
globlib = $(globdep)
|
globlib = $(globdep)
|
||||||
CPPFLAGS := $(CPPFLAGS) -Iglob
|
CPPFLAGS := $(CPPFLAGS) -Iglob
|
||||||
|
|
||||||
|
endif # works-for-make
|
||||||
|
endif # $(libc_dir)
|
||||||
|
endif # !no_libc
|
||||||
|
|
||||||
|
# We know the type of machine, so put the binaries in subdirectories.
|
||||||
|
$(ARCH)/%.o: %.c
|
||||||
|
$(COMPILE.c) $< $(OUTPUT_OPTION)
|
||||||
|
objs := $(addprefix $(ARCH)/,$(objs))
|
||||||
|
prog := $(ARCH)/make
|
||||||
|
|
||||||
|
archpfx = $(ARCH)/
|
||||||
|
|
||||||
|
$(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
|
||||||
|
$(COMPILE.c) $(REMOTE) $< -o $@
|
||||||
|
$(archpfx)remote.dep: remote.c
|
||||||
|
$(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
|
||||||
|
|
||||||
|
CPPFLAGS := $(CPPFLAGS) $(filter-out @%@,$(defines))
|
||||||
|
|
||||||
|
ifneq "$(wildcard $(ARCH)/makefile)" ""
|
||||||
|
include $(ARCH)/makefile
|
||||||
endif
|
endif
|
||||||
endif
|
objs := $(sort $(objs) $(addprefix $(ARCH)/,$(ALLOCA) $(extras)))
|
||||||
endif
|
|
||||||
|
|
||||||
else # Not ARCH
|
else # Not ARCH
|
||||||
prog := make
|
prog := make
|
||||||
|
|
Loading…
Reference in a new issue