]> git.saurik.com Git - apple/libc.git/blobdiff - compat-43/Makefile.inc
Libc-498.1.7.tar.gz
[apple/libc.git] / compat-43 / Makefile.inc
index 8d6a7e02edf7ce98fc42a44ef6509d86c4da3ace..f1bf8903632df667b074ea6bdd773a48a7f0501c 100644 (file)
@@ -3,16 +3,39 @@
 
 # compat-43 sources
 .PATH: ${.CURDIR}/${MACHINE_ARCH}/compat-43 ${.CURDIR}/compat-43
 
 # compat-43 sources
 .PATH: ${.CURDIR}/${MACHINE_ARCH}/compat-43 ${.CURDIR}/compat-43
+CWD := ${.CURDIR}/compat-43
 
 
-SRCS+= creat.c  getwd.c send.c       setpgrp.c    setreuid.c   setruid.c \
-       gethostid.c killpg.c sethostid.c  setregid.c   setrgid.c    sigcompat.c
+MISRCS+= sigaltstk.c sigcompat.c
+.include "Makefile.fbsd_begin"
+FBSDMISRCS= creat.c gethostid.c getwd.c killpg.c sethostid.c setpgrp.c \
+       setrgid.c setruid.c
+.include "Makefile.fbsd_end"
 
 
+LEGACYSRCS += creat.c setregid.c setreuid.c sigcompat.c killpg.c
+CANCELABLESRCS += creat.c sigcompat.c
+
+# set the LIBC_ALIAS_* macros so we can decorate the symbol independent
+# of other macro settings
+CFLAGS-creat-fbsd.c += -DLIBC_ALIAS_CREAT
+CFLAGS-setregid.c += -DLIBC_ALIAS_SETREGID
+CFLAGS-setreuid.c += -DLIBC_ALIAS_SETREUID
+CFLAGS-setpgrp-fbsd.c += -DLIBC_ALIAS_SETPGRP
+CFLAGS-sigcompat.c += -DLIBC_ALIAS_SIGPAUSE
+CFLAGS-killpg-fbsd.c += -DLIBC_ALIAS_KILLPG
+CFLAGS-sigaltstk.c += -DLIBC_ALIAS_SIGALTSTACK
 
 .if ${LIB} == "c"
 
 .if ${LIB} == "c"
-MAN2+= creat.2 killpg.2 sigpause.2 sigvec.2
-MAN3+= gethostid.3 setruid.3
+MAN2+= sigblock.2 sigpause.2 sigsetmask.2 sigvec.2
+
+.include "Makefile.fbsd_begin"
+FBSDMAN2= creat.2 killpg.2
+FBSDMAN3= gethostid.3 setruid.3
+.include "Makefile.fbsd_end"
+
+MLINKS+= gethostid.3 sethostid.3
+
+MLINKS+= setruid.3 setrgid.3
 
 
-MLINKS+=gethostid.3 sethostid.3
-MLINKS+=setruid.3 setrgid.3
+MLINKS+= sigsetmask.2 sigmask.2
 
 .endif
 
 .endif