Makefile (2138B)
1 all: 2 @echo Possible options are: 3 @echo ' make alltest' 4 @echo 5 @echo ' make parsetest' 6 @echo ' make mimetest' 7 @echo ' make llistsort' 8 @echo ' make parsetest' 9 @echo ' make b64test' 10 @echo ' make pqtest' 11 @echo ' make printtest' 12 @echo ' make encodetest' 13 14 alltest: parsetest mimetest llistsort parsetest b64test pqtest printtest \ 15 encodetest 16 17 parsetest: 18 gcc -g -std=gnu99 -I.. -lssl -lcrypto -o parsetest parsetest.c \ 19 ../net.c ../ind.c ../llist.c ../parser.c ../strio.c \ 20 ../base64.c 21 @echo Now run in one terminal: 22 @echo 'cat ../proto/parsetest.example | socat - tcp-l:5600,reuseaddr' 23 @echo 'or the other parsetest.* files.' 24 @echo 'Then in another terminal:' 25 @echo './parsetest tcp!localhost!5600' 26 27 mimetest: 28 gcc -g -pedantic -Wall -std=gnu99 -I.. -lssl -lcrypto -o mimetest \ 29 mimetest.c \ 30 ../ind.c ../llist.c ../mime.c ../parser.c ../net.c \ 31 ../strio.c ../base64.c ../quote.c ../param.c -D_XOPEN_SOURCE 32 @echo Now you can run: 33 @echo 'cat ../proto/mime.simple.example | ./mimetest' 34 @echo 'cat ../proto/mime.complex.example | ./mimetest' 35 36 llistsort: 37 gcc -g -std=gnu99 -I.. -o llistsort llistsort.c ../ind.c \ 38 ../llist.c 39 @echo Now run ./llistsort 40 41 imaptest: 42 gcc -g -std=gnu99 -I.. -o imaptest imaptest.c ../ind.c ../llist.c \ 43 ../mime.c ../parser.c ../net.c ../strio.c ../base64.c \ 44 ../imap.c ../mark.c ../txtdb.c ../cfg.c ../inc.c ../flag.c \ 45 ../quote.c ../param.c -lssl -lcrypto -D_XOPEN_SOURCE 46 @echo Now run ./imaptest user pass 'tpcs!host!imaps' 47 48 b64test: 49 gcc -g -std=gnu99 -I.. -o b64test b64test.c ../base64.c ../ind.c 50 @echo Now run ./b64test 51 52 pqtest: 53 gcc -g -std=gnu99 -I.. -o pqtest pqtest.c ../quote.c ../ind.c 54 @echo Now run ./pqtest 55 56 printtest: 57 gcc -g -std=gnu99 -I.. -o printtest printtest.c ../ind.c 58 @echo Now run ./printtest 59 60 encodetest: 61 gcc -g -pedantic -Wall -std=gnu99 -I.. -lcrypto -lssl -o encodetest \ 62 encodetest.c \ 63 ../ind.c ../llist.c ../mime.c ../parser.c ../net.c \ 64 ../strio.c ../base64.c ../quote.c ../param.c ../meta.c \ 65 -D_XOPEN_SOURCE 66 @echo Now run ./encodetest 67 68 .PHONY: all alltest imaptest llistsort mimetest parsetest b64test pqtest \ 69 printtest encodetest 70