mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
Formerly GNUmakefile.~92~
This commit is contained in:
parent
69e442ec90
commit
fe356384aa
1 changed files with 8 additions and 7 deletions
15
GNUmakefile
15
GNUmakefile
|
@ -30,6 +30,12 @@ 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
|
||||||
|
@ -84,9 +90,9 @@ $(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
|
$(archpfx)remote.o: remote.c remote-*.c
|
||||||
$(COMPILE.c) $(REMOTE) $< -o $@
|
$(COMPILE.c) $(REMOTE) $< -o $@
|
||||||
$(archpfx)remote.dep: remote.c
|
$(archpfx)remote.dep: remote.c remote-*.c
|
||||||
$(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
|
$(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))
|
||||||
|
@ -107,11 +113,6 @@ CFLAGS = -g
|
||||||
endif
|
endif
|
||||||
LDFLAGS = -g
|
LDFLAGS = -g
|
||||||
|
|
||||||
ifdef yescustoms
|
|
||||||
REMOTE := -DCUSTOMS
|
|
||||||
LOADLIBES := libcustoms.a
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Define the command to make dependencies.
|
# Define the command to make dependencies.
|
||||||
ifneq "$(findstring gcc,$(CC))" ""
|
ifneq "$(findstring gcc,$(CC))" ""
|
||||||
# Don't include system directories.
|
# Don't include system directories.
|
||||||
|
|
Loading…
Reference in a new issue