| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
ifdef in-Makerules |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
includes += -I$(..)mach -I$(common-objpfx)mach/ |
| 23 |
|
| 24 |
ifneq (mach,$(subdir)) |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
mach-objpfx = $(common-objpfx)mach/ |
| 29 |
else |
| 30 |
mach-objpfx = $(objpfx) |
| 31 |
endif |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| •38 |
mach-before-compile := $(mach-objpfx)mach-shortcuts.h $(mach-objpfx)mach/mach_interface.h \ |
| 39 |
$(patsubst %,$(mach-objpfx)mach/mach_%.h,\ |
| 40 |
port host) |
| 41 |
|
| 42 |
ifneq (mach,$(subdir)) |
| 43 |
|
| 44 |
|
| 45 |
$(patsubst mach%,m\%h%,$(mach-before-compile)): mach-before-compile |
| 46 |
.PHONY: mach-before-compile |
| 47 |
mach-before-compile: |
| 48 |
$(MAKE) -C $(..)mach subdir=mach mach-before-compile no_deps=t generating=t |
| 49 |
|
| 50 |
before-compile += $(mach-before-compile) |
| 51 |
endif |
| 52 |
|
| 53 |
ifeq (dlfcn,$(subdir)) |
| 54 |
LDLIBS-dl.so += $(objdir)/mach/libmachuser.so |
| 55 |
else ifeq (nis,$(subdir)) |
| 56 |
LDLIBS-nsl.so += $(objdir)/mach/libmachuser.so |
| 57 |
LDLIBS-nss_compat.so += $(objdir)/mach/libmachuser.so |
| 58 |
else ifeq (nss,$(subdir)) |
| 59 |
LDLIBS-nss.so += $(objdir)/mach/libmachuser.so |
| 60 |
LDLIBS-nss_files.so += $(objdir)/mach/libmachuser.so |
| 61 |
LDLIBS-nss_db.so += $(objdir)/mach/libmachuser.so |
| 62 |
LDLIBS-nss_compat.so += $(objdir)/mach/libmachuser.so |
| 63 |
LDLIBS-tst-rfc3484 += $(objdir)/mach/libmachuser.so |
| 64 |
LDLIBS-tst-rfc3484-2 += $(objdir)/mach/libmachuser.so |
| 65 |
LDLIBS-tst-rfc3484-3 += $(objdir)/mach/libmachuser.so |
| 66 |
else ifeq (hesiod,$(subdir)) |
| 67 |
LDLIBS-nss_hesiod.so += $(objdir)/mach/libmachuser.so |
| 68 |
else ifeq (nscd,$(subdir)) |
| 69 |
LDLIBS-nscd += $(objdir)/mach/libmachuser.so |
| 70 |
endif |
| 71 |
|
| 72 |
LDLIBS-pthread.so += $(objdir)/mach/libmachuser.so |
| 73 |
|
| 74 |
endif |