Mercurial > minori
comparison dep/utf8proc/bench/Makefile @ 343:1faa72660932
*: transfer back to cmake from autotools
autotools just made lots of things more complicated than
they should have and many things broke (i.e. translations)
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 20 Jun 2024 05:56:06 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
342:adb79bdde329 | 343:1faa72660932 |
---|---|
1 CURL=curl | |
2 | |
3 CC = cc | |
4 CFLAGS ?= -O2 | |
5 CFLAGS += -std=c99 -pedantic -Wall | |
6 | |
7 all: bench | |
8 | |
9 LIBUTF8PROC = ../utf8proc.o | |
10 | |
11 bench: bench.o util.o $(LIBUTF8PROC) | |
12 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ bench.o util.o $(LIBUTF8PROC) | |
13 | |
14 DATAURL = https://raw.githubusercontent.com/duerst/eprun/master/benchmark | |
15 DATAFILES = Deutsch_.txt Japanese_.txt Korean_.txt Vietnamese_.txt | |
16 | |
17 $(DATAFILES): | |
18 $(CURL) -O $(DATAURL)/$@ | |
19 | |
20 bench.out: $(DATAFILES) bench | |
21 ./bench -nfkc $(DATAFILES) > $@ | |
22 | |
23 # you may need make CPPFLAGS=... LDFLAGS=... to help it find ICU | |
24 icu: icu.o util.o | |
25 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ icu.o util.o -licuuc | |
26 | |
27 icu.out: $(DATAFILES) icu | |
28 ./icu $(DATAFILES) > $@ | |
29 | |
30 unistring: unistring.o util.o | |
31 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ unistring.o util.o -lunistring | |
32 | |
33 unistring.out: $(DATAFILES) unistring | |
34 ./unistring $(DATAFILES) > $@ | |
35 | |
36 .c.o: | |
37 $(CC) $(CPPFLAGS) -I.. $(CFLAGS) -c -o $@ $< | |
38 | |
39 clean: | |
40 rm -rf *.o *.txt bench *.out icu unistring |