Skip to content

Commit

Permalink
build: run make Makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
gperciva committed Mar 22, 2021
1 parent eefe222 commit 7266e46
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 18 deletions.
5 changes: 3 additions & 2 deletions perftests/recv-zeros/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS=main.c monoclock.c sock.c warnp.c
IDIRS=-I../../libcperciva/util
SUBDIR_DEPTH=../..
RELATIVE_DIR=perftests/recv-zeros
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -18,8 +19,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/util/parsenum.h ../../libcperciva/util/sock.h ../../libcperciva/util/warnp.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions perftests/send-zeros/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS=main.c monoclock.c sock.c warnp.c
IDIRS=-I../../libcperciva/util
SUBDIR_DEPTH=../..
RELATIVE_DIR=perftests/send-zeros
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -18,8 +19,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/util/monoclock.h ../../libcperciva/util/parsenum.h ../../libcperciva/util/sock.h ../../libcperciva/util/warnp.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions perftests/standalone-enc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ IDIRS=-I../../proto -I../../libcperciva/alg -I../../libcperciva/cpusupport -I../
LDADD_REQ=-lcrypto
SUBDIR_DEPTH=../..
RELATIVE_DIR=perftests/standalone-enc
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -19,8 +20,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/cpusupport/cpusupport.h ../../cpusupport-config.h ../../libcperciva/crypto/crypto_aes.h ../../libcperciva/crypto/crypto_aesctr.h ../../libcperciva/util/parsenum.h ../../libcperciva/util/perftest.h ../../proto/proto_crypt.h ../../libcperciva/crypto/crypto_dh.h ../../libcperciva/alg/sha256.h ../../libcperciva/util/sysendian.h ../../libcperciva/util/warnp.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -DSTANDALONE_ENC_TESTING -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions spipe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ IDIRS=-I../proto -I../lib/util -I../libcperciva/alg -I../libcperciva/datastruct
LDADD_REQ=-lcrypto -lpthread
SUBDIR_DEPTH=..
RELATIVE_DIR=spipe
LIBALL=../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand Down Expand Up @@ -35,8 +36,8 @@ install:${PROG}
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../libcperciva/events/events.h ../libcperciva/util/getopt.h ../lib/util/graceful_shutdown.h ../libcperciva/util/parsenum.h ../libcperciva/util/sock.h ../libcperciva/util/warnp.h ../proto/proto_conn.h ../proto/proto_crypt.h ../libcperciva/crypto/crypto_dh.h pushbits.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions spiped/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ IDIRS=-I../proto -I../libcperciva/alg -I../libcperciva/datastruct -I../lib/dnsth
LDADD_REQ=-lcrypto -lpthread
SUBDIR_DEPTH=..
RELATIVE_DIR=spiped
LIBALL=../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand Down Expand Up @@ -35,8 +36,8 @@ install:${PROG}
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../libcperciva/util/asprintf.h ../libcperciva/util/daemonize.h ../libcperciva/events/events.h ../libcperciva/util/getopt.h ../lib/util/graceful_shutdown.h ../libcperciva/util/parsenum.h ../libcperciva/util/setuidgid.h ../libcperciva/util/sock.h ../libcperciva/util/warnp.h dispatch.h ../proto/proto_crypt.h ../libcperciva/crypto/crypto_dh.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions tests/dnsthread-resolve/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ IDIRS=-I../../libcperciva/datastruct -I../../libcperciva/events -I../../libcperc
LDADD_REQ=-lpthread
SUBDIR_DEPTH=../..
RELATIVE_DIR=tests/dnsthread-resolve
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -19,8 +20,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/events/events.h ../../libcperciva/util/sock.h ../../libcperciva/util/sock_util.h ../../libcperciva/util/warnp.h ../../lib/dnsthread/dnsthread.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions tests/nc-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS=main.c elasticarray.c ptrheap.c timerqueue.c events_immediate.c events_netw
IDIRS=-I../../libcperciva/datastruct -I../../libcperciva/events -I../../libcperciva/network -I../../libcperciva/util
SUBDIR_DEPTH=../..
RELATIVE_DIR=tests/nc-client
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -18,8 +19,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/events/events.h ../../libcperciva/network/network.h ../../libcperciva/util/sock.h ../../libcperciva/util/warnp.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions tests/nc-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SRCS=main.c simple_server.c elasticarray.c ptrheap.c timerqueue.c events_immedia
IDIRS=-I../../libcperciva/datastruct -I../../libcperciva/events -I../../libcperciva/network -I../../libcperciva/util
SUBDIR_DEPTH=../..
RELATIVE_DIR=tests/nc-server
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -18,8 +19,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/util/parsenum.h ../../libcperciva/util/warnp.h simple_server.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down
5 changes: 3 additions & 2 deletions tests/pushbits/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ IDIRS=-I../../libcperciva/util -I../../spipe
LDADD_REQ=-lpthread
SUBDIR_DEPTH=../..
RELATIVE_DIR=tests/pushbits
LIBALL=../../liball/liball.a

all:
if [ -z "$${HAVE_BUILD_FLAGS}" ]; then \
Expand All @@ -19,8 +20,8 @@ all:
clean:
rm -f ${PROG} ${SRCS:.c=.o}

${PROG}:${SRCS:.c=.o}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}
${PROG}:${SRCS:.c=.o} ${LIBALL}
${CC} -o ${PROG} ${SRCS:.c=.o} ${LIBALL} ${LDFLAGS} ${LDADD_EXTRA} ${LDADD_REQ} ${LDADD_POSIX}

main.o: main.c ../../libcperciva/util/getopt.h ../../libcperciva/util/noeintr.h ../../libcperciva/util/parsenum.h ../../libcperciva/util/warnp.h ../../spipe/pushbits.h
${CC} ${CFLAGS_POSIX} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -DCPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" -I../.. ${IDIRS} ${CPPFLAGS} ${CFLAGS} -c main.c -o main.o
Expand Down

0 comments on commit 7266e46

Please sign in to comment.