This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mbt on github. | |
* I am mtrausch83 (https://keybase.io/mtrausch83) on keybase. | |
* I have a public key ASC0LU69lmK6mBwmPhRhQ9f3KgEYV0V42filR6zVCBiUdAo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC := gcc -std=gnu11 | |
CFLAGS := -O0 -ggdb -Wall -Wextra | |
all: bin/libfoo.so main.bin | |
bin/libfoo.so: foo.o bar.o | |
mkdir -p bin | |
$(LINK.c) -shared $^ $(LOADLIBES) $(LDLIBS) -o $@ | |
main.bin: LDLIBS += -L$(shell pwd)/bin -lfoo |