diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-09 23:39:25 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-09 23:39:25 +0200 |
commit | be160c7e5ae5445283b5b26dc6e93f11980941cc (patch) | |
tree | 9a694ab5a6261542cb1ee17ac4a4471e8ed543ad /Makefile | |
parent | f33eb53ef7426ee3a306430738e300bc8043bbab (diff) | |
download | preload-libbt-be160c7e5ae5445283b5b26dc6e93f11980941cc.tar.gz preload-libbt-be160c7e5ae5445283b5b26dc6e93f11980941cc.zip |
add readme and change default make target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,8 @@ -all: $(patsubst example/%.c, out/%, $(wildcard example/*.c)) -all: $(patsubst example/%.c, run/%, $(wildcard example/*.c)) +libbt.so: bt.c + $(CC) -o $@ $^ -shared -fPIC -static-libgcc -ldl $(CFLAGS) + +run: $(patsubst example/%.c, out/%, $(wildcard example/*.c)) +run: $(patsubst example/%.c, run/%, $(wildcard example/*.c)) CFLAGS := -Wall -Wextra -g CFLAGS_recurse1 := -Wno-infinite-recursion @@ -12,9 +15,6 @@ out/%: example/%.c libbt.so @mkdir -p out $(CC) -o $@ $< -rdynamic $(CFLAGS) $(CFLAGS_$*) -libbt.so: bt.c - $(CC) -o $@ $^ -shared -fPIC -static-libgcc -ldl $(CFLAGS) - clean: $(RM) -r out $(RM) libbt.so |