Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ailrst committed Sep 16, 2024
1 parent 84389f7 commit c9e2f4e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/csmith/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ ADTS=$(addsuffix .adt,$(SOURCENAMES))
OUTS=$(addsuffix .out,$(SOURCENAMES))
CHECKSUMS=$(addsuffix .checksum,$(SOURCENAMES))

CSMITH_HEADER = "/nix/store/6rawnpny818v7wki6zlr3i0f3phmysyb-csmith-2.3.0/include/csmith-2.3.0/"
CSMITH_HEADER = "/usr/include/csmith/"
CC=clang -target aarch64-linux-gnu

%.out : %.c
aarch64-suse-linux-gcc $< -w -I $(CSMITH_HEADER) -o $@

$(CC) $< -w -I $(CSMITH_HEADER) -o $@

%.relf : %.out
aarch64-suse-linux-readelf -s -r -W $< > $@
readelf -s -r -w $< > $@

%.adt: %.out
bap $< -d adt:$@
Expand All @@ -23,7 +23,6 @@ CSMITH_HEADER = "/nix/store/6rawnpny818v7wki6zlr3i0f3phmysyb-csmith-2.3.0/includ

default : $(ADTS) $(RELFS)


.PHONY=checksum
checksum: $(CHECKSUMS)

Expand Down

0 comments on commit c9e2f4e

Please sign in to comment.