mirror of
https://github.com/mirror/make.git
synced 2025-03-13 11:20:38 +08:00
Formerly GNUmakefile.~93~
This commit is contained in:
parent
15d4ec2322
commit
f7ee7d26a5
16
GNUmakefile
16
GNUmakefile
@ -30,12 +30,6 @@ extras := $(filter-out getloadavg.o @%@,$(extras)) getloadavg.o
|
|||||||
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
|
LOADLIBES := $(filter-out @%@,$(LOADLIBES))
|
||||||
ALLOCA := $(filter-out @%@,$(ALLOCA))
|
ALLOCA := $(filter-out @%@,$(ALLOCA))
|
||||||
|
|
||||||
ifdef customs
|
|
||||||
REMOTE := -DCUSTOMS -Ipmake/customs -Ipmake/lib/include
|
|
||||||
LOADLIBES := $(addprefix pmake/customs/,customslib.o rpc.o xlog.o) \
|
|
||||||
pmake/lib/sprite/libsprite.a
|
|
||||||
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
|
||||||
@ -106,6 +100,12 @@ else # Not ARCH
|
|||||||
prog := make
|
prog := make
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef customs
|
||||||
|
REMOTE := -DCUSTOMS -Ipmake/customs -Ipmake/lib/include
|
||||||
|
LOADLIBES := $(addprefix pmake/customs/,customslib.o rpc.o xlog.o) \
|
||||||
|
pmake/lib/sprite/libsprite.a
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq "$(findstring gcc,$(CC))" ""
|
ifneq "$(findstring gcc,$(CC))" ""
|
||||||
CFLAGS = -g -W -Wunused -Wpointer-arith -Wreturn-type -Wswitch
|
CFLAGS = -g -W -Wunused -Wpointer-arith -Wreturn-type -Wswitch
|
||||||
else
|
else
|
||||||
@ -125,10 +125,6 @@ mkdep = $(CC) -M $(CPPFLAGS)
|
|||||||
depfiles = $(patsubst %.o,%.dep,$(filter %.o,$(objs)))
|
depfiles = $(patsubst %.o,%.dep,$(filter %.o,$(objs)))
|
||||||
|
|
||||||
|
|
||||||
ifdef yescustoms
|
|
||||||
prog := $(prog)-customs
|
|
||||||
endif
|
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: $(prog)
|
default: $(prog)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user