mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2025-02-25 02:45:13 +00:00
Reordered definition and added comment to C makefile.
This commit is contained in:
parent
a3dcc36dd4
commit
ea59bedc93
@ -61,13 +61,14 @@ all: $(MAINS)
|
|||||||
clean:
|
clean:
|
||||||
rm -f -- $(MAINS) libqrcodegen.so
|
rm -f -- $(MAINS) libqrcodegen.so
|
||||||
|
|
||||||
|
# Shared library
|
||||||
|
libqrcodegen.so: $(LIBSRC:=.c) $(LIBSRC:=.h)
|
||||||
|
$(CC) $(CFLAGS) -fPIC -shared -o $@ $<
|
||||||
|
|
||||||
# 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user