mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2025-02-18 15:59:29 +00:00
Add shared library make target for C library
This commit is contained in:
parent
88cc1c05fd
commit
a3dcc36dd4
@ -59,12 +59,15 @@ all: $(MAINS)
|
||||
|
||||
# Delete build output
|
||||
clean:
|
||||
rm -f -- $(MAINS)
|
||||
rm -f -- $(MAINS) libqrcodegen.so
|
||||
|
||||
# Executable files
|
||||
%: %.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
||||
$(CC) $(CFLAGS) -o $@ $< $(LIBSRC:=.c)
|
||||
|
||||
libqrcodegen.so: $(LIBSRC:=.c) $(LIBSRC:=.h)
|
||||
$(CC) $(CFLAGS) -fPIC -shared -o $@ $<
|
||||
|
||||
# Special executable
|
||||
qrcodegen-test: qrcodegen-test.c $(LIBSRC:=.c) $(LIBSRC:=.h)
|
||||
$(CC) $(CFLAGS) -DQRCODEGEN_TEST -o $@ $< $(LIBSRC:=.c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user