all: libftfake.so dumpee libsqfake.so ftdidrv libsqfake.so: libsqfake.c $(CC) -shared -fPIC -Wall -Wextra -Wno-unused-parameter -std=gnu11 -pipe -o $@ $< libftfake.so: libftfake.c libftfake_hl.h $(CC) -shared -fPIC -o "$@" "$<" -I. -ldl -Wall -Wextra -lm dumpee: dumpee.c $(CC) -o "$@" "$<" -L../build/ -I. -lftd2xx -Wl,-rpath=../build -Wall -Wextra ftdidrv: ftdidrv.c $(CC) -o "$@" "$<" $(shell pkg-config --cflags --libs libftdi1) -Wall -Wextra