|
|
@ -59,12 +59,15 @@ all: $(MAINS)
|
|
|
|
|
|
|
|
|
|
|
|
# Delete build output
|
|
|
|
# Delete build output
|
|
|
|
clean:
|
|
|
|
clean:
|
|
|
|
rm -f -- $(MAINS)
|
|
|
|
rm -f -- $(MAINS) libqrcodegen.so
|
|
|
|
|
|
|
|
|
|
|
|
# Executable files
|
|
|
|
# Executable files
|
|
|
|
%: %.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
|
|
|
%: %.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LIBSRC:=.c)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LIBSRC:=.c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
libqrcodegen.so: $(LIBSRC:=.c) $(LIBSRC:=.h)
|
|
|
|
|
|
|
|
$(CC) $(CFLAGS) -fPIC -shared -o $@ $<
|
|
|
|
|
|
|
|
|
|
|
|
# Special executable
|
|
|
|
# Special executable
|
|
|
|
qrcodegen-test: qrcodegen-test.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
|
|
|
qrcodegen-test: qrcodegen-test.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
|
|
|
$(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $< $(LIBSRC:=.c)
|
|
|
|
$(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $< $(LIBSRC:=.c)
|
|
|
|