aboutsummaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-13 16:36:10 +0000
committerOmar Polo <op@omarpolo.com>2023-06-13 16:36:10 +0000
commit1610f9541d742906f7f683e9ad1ad2a29225ae8a (patch)
treee6458f2e82204977ba337d08d934b30a64a49b7b /regress
parent10cc819309de08fbab770ce9605dec1b35a4fad9 (diff)
rework the configure script
now it resembles less oconfigure and more the configure scripts I'm using in my recent projects. I'd argue it's more easy to use it.
Diffstat (limited to 'regress')
-rw-r--r--regress/Makefile24
1 files changed, 15 insertions, 9 deletions
diff --git a/regress/Makefile b/regress/Makefile
index 2e09681..a0feea0 100644
--- a/regress/Makefile
+++ b/regress/Makefile
@@ -20,9 +20,16 @@ DISTFILES = Makefile \
tests.sh \
valid.ext
-include ../Makefile.local
+include ../config.mk
-COMPAT= ${COBJS:%=../%}
+COBJS = ${COMPATS:.c=.o}
+REG_COMPATS = ${COBJS:%=../%}
+
+PUNY_SRCS = puny-test.c ../puny.c ../utf8.c ../utils.c ../log.c
+PUNY_OBJS = ${PUNY_SRCS:.c=.o} ${REG_COMPATS}
+
+IRI_SRCS = iri_test.c ../iri.c ../utf8.c
+IRI_OBJS = ${IRI_SRCS:.c=.o} ${REG_COMPATS}
.PHONY: all data clean dist
@@ -31,18 +38,17 @@ all: data puny-test iri_test fcgi-test
data: testdata cert.pem testca.pem valid.crt invalid.cert.pem
-puny-test: puny-test.o ../puny.o ../utf8.o ../utils.o ../log.o ${COMPAT}
- ${CC} puny-test.o ../puny.o ../utf8.o ../utils.o ../log.o ${COMPAT} \
- -o puny-test ${LDFLAGS}
+puny-test: ${PUNY_OBJS}
+ ${CC} ${PUNY_OBJS} -o puny-test ${LIBS} ${LDFLAGS}
-iri_test: iri_test.o ../iri.o ../utf8.o ${COMPAT}
- ${CC} iri_test.o ../iri.o ../utf8.o ${COMPAT} -o $@ ${LDFLAGS}
+iri_test: ${IRI_OBJS}
+ ${CC} ${IRI_OBJS} -o $@ ${LIBS} ${LDFLAGS}
fill-file: fill-file.o
- ${CC} fill-file.o -o $@ ${LDFLAGS}
+ ${CC} fill-file.o -o $@ ${LIBS} ${LDFLAGS}
fcgi-test: fcgi-test.o
- ${CC} fcgi-test.o ${COMPAT} -o fcgi-test ${LDFLAGS}
+ ${CC} fcgi-test.o ${REG_COMPATS} -o fcgi-test ${LIBS} ${LDFLAGS}
key.pem: cert.pem