From d75d24384221147d2dd6b52868e73c551fec4308 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 2 Oct 2024 21:34:05 +0200 Subject: initial commit of libperf --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89b2a3d --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +EXAMPLES := $(wildcard example/*) +BINARIES := $(patsubst example/%.cc, out/%, $(EXAMPLES)) + +all: $(BINARIES) + +out/%: example/%.cc + @mkdir -p out + g++ -o $@ -g -O2 $^ -I $(PWD) + +clean: + $(RM) -r out -- cgit v1.2.3