-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #476 from Tarsnap/optional-mutex-tests
Use liball_optional_mutex_{normal,pthread}.a
- Loading branch information
Showing
43 changed files
with
157 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.include "../Makefile.inc" | ||
|
||
SUBDIR_DEPTH := ${SUBDIR_DEPTH}/.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.POSIX: | ||
# AUTOGENERATED FILE, DO NOT EDIT | ||
LIB=liball_optional_mutex_normal.a | ||
SRCS=optional_mutex.c | ||
IDIRS=-I../../util | ||
SUBDIR_DEPTH=../.. | ||
RELATIVE_DIR=liball/optional_mutex_normal | ||
|
||
all: | ||
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \ | ||
cd ${SUBDIR_DEPTH}; \ | ||
${MAKE} BUILD_SUBDIR=${RELATIVE_DIR} \ | ||
BUILD_TARGET=${PROG} buildsubdir; \ | ||
else \ | ||
${MAKE} ${LIB}; \ | ||
fi | ||
|
||
clean: | ||
rm -f ${LIB} ${SRCS:.c=.o} | ||
|
||
${LIB}:${SRCS:.c=.o} | ||
${AR} ${ARFLAGS} ${LIB} ${SRCS:.c=.o} | ||
|
||
optional_mutex.o: ../../util/optional_mutex.c ../../util/optional_mutex.h | ||
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -DOPTIONAL_MUTEX_PTHREAD_NO -c ../../util/optional_mutex.c -o optional_mutex.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Library name. | ||
LIB = all_optional_mutex_normal | ||
|
||
# Don't install it. | ||
NOINST = 1 | ||
|
||
# Don't link to liball.a. | ||
NOLIBALL = 1 | ||
|
||
# Useful relative directories. | ||
LIBCPERCIVA_DIR = ../.. | ||
|
||
# Handle optional_mutex (this cannot be part of liball). | ||
.PATH.c : ${LIBCPERCIVA_DIR}/util | ||
SRCS += optional_mutex.c | ||
IDIRS += -I${LIBCPERCIVA_DIR}/util | ||
|
||
# Required define. | ||
CFLAGS.optional_mutex.c= -DOPTIONAL_MUTEX_PTHREAD_NO | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.POSIX: | ||
# AUTOGENERATED FILE, DO NOT EDIT | ||
LIB=liball_optional_mutex_pthread.a | ||
SRCS=optional_mutex.c | ||
IDIRS=-I../../util | ||
SUBDIR_DEPTH=../.. | ||
RELATIVE_DIR=liball/optional_mutex_pthread | ||
|
||
all: | ||
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \ | ||
cd ${SUBDIR_DEPTH}; \ | ||
${MAKE} BUILD_SUBDIR=${RELATIVE_DIR} \ | ||
BUILD_TARGET=${PROG} buildsubdir; \ | ||
else \ | ||
${MAKE} ${LIB}; \ | ||
fi | ||
|
||
clean: | ||
rm -f ${LIB} ${SRCS:.c=.o} | ||
|
||
${LIB}:${SRCS:.c=.o} | ||
${AR} ${ARFLAGS} ${LIB} ${SRCS:.c=.o} | ||
|
||
optional_mutex.o: ../../util/optional_mutex.c ../../util/optional_mutex.h | ||
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -DAPISUPPORT_CONFIG_FILE=\"apisupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -DOPTIONAL_MUTEX_PTHREAD_YES -c ../../util/optional_mutex.c -o optional_mutex.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Library name. | ||
LIB = all_optional_mutex_pthread | ||
|
||
# Don't install it. | ||
NOINST = 1 | ||
|
||
# Don't link to liball.a. | ||
NOLIBALL = 1 | ||
|
||
# Useful relative directories. | ||
LIBCPERCIVA_DIR = ../.. | ||
|
||
# Handle optional_mutex (this cannot be part of liball). | ||
.PATH.c : ${LIBCPERCIVA_DIR}/util | ||
SRCS += optional_mutex.c | ||
IDIRS += -I${LIBCPERCIVA_DIR}/util | ||
|
||
# Required define. | ||
CFLAGS.optional_mutex.c= -DOPTIONAL_MUTEX_PTHREAD_YES | ||
|
||
.include <bsd.prog.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.