commit e63137bfd44fa732e258ec09d76881494f4f943f
Author: Laslo Hunhold <[email protected]>
AuthorDate: Sun Oct 18 22:35:34 2020 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Sun Oct 18 22:35:34 2020 +0200
Compile the test binaries explicitly with libgrapheme.a
Previously, they would be linked with the individual object files,
which boils down to the same thing but is not elegant.
Signed-off-by: Laslo Hunhold <[email protected]>
diff --git a/Makefile b/Makefile
index b02a347..fd7d686 100644
--- a/Makefile
+++ b/Makefile
@@ -31,9 +31,9 @@ test/utf8-decode.o: test/utf8-decode.c config.mk grapheme.h
data/gbp: data/gbp.o data/util.o
data/emo: data/emo.o data/util.o
data/gbt: data/gbt.o data/util.o
-test/grapheme_break: test/grapheme_break.o $(LIB:=.o)
-test/utf8-encode: test/utf8-encode.o $(LIB:=.o)
-test/utf8-decode: test/utf8-decode.o $(LIB:=.o)
+test/grapheme_break: test/grapheme_break.o libgrapheme.a
+test/utf8-encode: test/utf8-encode.o libgrapheme.a
+test/utf8-decode: test/utf8-decode.o libgrapheme.a
data/gbp.txt:
wget -O $@
https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakProperty.txt
@@ -51,7 +51,7 @@ $(DATA):
$(CC) -o $@ $(LDFLAGS) [email protected] data/util.o
$(TEST):
- $(CC) -o $@ $(LDFLAGS) [email protected] $(LIB:=.o)
+ $(CC) -o $@ $(LDFLAGS) [email protected] libgrapheme.a
.c.o:
$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<