Blame


1 5c2e310e 2021-01-22 op include ../Makefile.local
2 5c2e310e 2021-01-22 op
3 5c2e310e 2021-01-22 op .PHONY: all clean runtime
4 5c2e310e 2021-01-22 op
5 3300cbe0 2021-01-27 op all: puny-test testdata iri_test cert.pem
6 3300cbe0 2021-01-27 op ./puny-test
7 3300cbe0 2021-01-27 op ./runtime
8 5c2e310e 2021-01-22 op ./iri_test
9 5c2e310e 2021-01-22 op
10 3abf91b0 2021-02-07 op puny-test: puny-test.o ../puny.o ../utf8.o ../utils.o ../log.o
11 3abf91b0 2021-02-07 op ${CC} puny-test.o ../puny.o ../utf8.o ../utils.o ../log.o -o puny-test ${LDFLAGS}
12 3300cbe0 2021-01-27 op
13 5c2e310e 2021-01-22 op iri_test: iri_test.o ../iri.o ../utf8.o
14 3300cbe0 2021-01-27 op ${CC} iri_test.o ../iri.o ../utf8.o -o iri_test
15 5c2e310e 2021-01-22 op
16 609fc9f9 2021-01-22 op fill-file: fill-file.o
17 609fc9f9 2021-01-22 op ${CC} fill-file.o -o fill-file
18 609fc9f9 2021-01-22 op
19 5c2e310e 2021-01-22 op key.pem: cert.pem
20 5c2e310e 2021-01-22 op
21 5c2e310e 2021-01-22 op # XXX: key size is NOT GOOD. This is only for testing. Smaller keys
22 5c2e310e 2021-01-22 op # are quicker to generate. DON'T DO THIS AT HOME.
23 5c2e310e 2021-01-22 op cert.pem:
24 5c2e310e 2021-01-22 op printf ".\n.\n.\n.\n.\nlocalhost\n.\n" | \
25 2349b02b 2021-01-23 op openssl req -x509 -newkey rsa:2048 \
26 5c2e310e 2021-01-22 op -keyout key.pem \
27 5c2e310e 2021-01-22 op -out cert.pem \
28 5c2e310e 2021-01-22 op -days 365 -nodes
29 5c2e310e 2021-01-22 op @echo
30 5c2e310e 2021-01-22 op
31 5c2e310e 2021-01-22 op clean:
32 5c2e310e 2021-01-22 op rm -f *.o iri_test cert.pem key.pem
33 5c2e310e 2021-01-22 op rm -rf testdata
34 5c2e310e 2021-01-22 op
35 609fc9f9 2021-01-22 op testdata: fill-file
36 5c2e310e 2021-01-22 op mkdir testdata
37 609fc9f9 2021-01-22 op ./fill-file testdata/bigfile
38 5c2e310e 2021-01-22 op ./sha testdata/bigfile testdata/bigfile.sha
39 5c2e310e 2021-01-22 op printf "# hello world\n" > testdata/index.gmi
40 5c2e310e 2021-01-22 op ./sha testdata/index.gmi testdata/index.gmi.sha
41 e3ddf390 2021-02-06 op cp hello slow err invalid serve-bigfile env testdata/
42 5c2e310e 2021-01-22 op mkdir testdata/dir
43 c8b74339 2021-01-24 op cp hello testdata/dir
44 5c2e310e 2021-01-22 op cp testdata/index.gmi testdata/dir/foo.gmi
45 5c2e310e 2021-01-22 op
46 3300cbe0 2021-01-27 op runtime: testdata
47 5c2e310e 2021-01-22 op ./runtime