Makefile 1001 Bytes
Newer Older
mb0's avatar
mb0 committed
1

mb0's avatar
mb0 committed
2
all: cmusl-cli
mb0's avatar
mb0 committed
3

mb0's avatar
mb0 committed
4
ccmp:
Julian Kranz's avatar
Julian Kranz committed
5
	clang -O2 -Wall -static -I. -I../.. -I../../resources/xed/xed2-intel64/include -L../../resources/xed/xed2-intel64/lib -Wfatal-errors cmp.c ../../dis.c pretty.c -lbfd -liberty -ldl -lz -lxed -DRELAXEDFATAL -o cmp
mb0's avatar
mb0 committed
6

mb0's avatar
mb0 committed
7
cxedcmp:
Julian Kranz's avatar
Julian Kranz committed
8
	clang -O2 -Wall -Wfatal-errors -static -I. -I../.. -I../../resources/xed/xed2-intel64/include -L../../resources/xed/xed2-intel64/lib xed-cmp.c pretty.c ../../dis.c -lbfd -liberty -ldl -lz -lxed -DRELAXEDFATAL -o xed-cmp
mb0's avatar
mb0 committed
9

mb0's avatar
mb0 committed
10
ccli:
Julian Kranz's avatar
Julian Kranz committed
11
	clang -pipe -O2 -Wall -static -I. -I../.. -Wfatal-errors cli.c pretty.c ../../dis.c -DRELAXEDFATAL -o cli
mb0's avatar
mb0 committed
12 13

cmusl-cli:
mb0's avatar
mb0 committed
14 15 16 17
	/usr/musl/bin/musl-gcc -pipe -O3 -Wall -static -I. -I../.. -Wfatal-errors cli.c pretty.c ../../dis.c -DRELAXEDFATAL -o musl-cli

cmusl-cli-println:
	/usr/musl/bin/musl-gcc -pipe -O3 -Wall -static -I. -I../.. -Wfatal-errors cli-println.c ../../dis.c -DRELAXEDFATAL -o musl-cli-println
18 19

ccli-println:
Julian Kranz's avatar
Julian Kranz committed
20
	clang -O2 -Wall -static -I. -I../.. -Wfatal-errors cli-println.c ../../dis.c -DRELAXEDFATAL -o cli-println