summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-10-02 21:34:05 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-10-02 21:34:05 +0200
commitd75d24384221147d2dd6b52868e73c551fec4308 (patch)
treea8448a8d756fc63cfe5bdc1c91eb8689bdc4b31e /Makefile
downloadlibperf-d75d24384221147d2dd6b52868e73c551fec4308.tar.gz
libperf-d75d24384221147d2dd6b52868e73c551fec4308.zip
initial commit of libperf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
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