mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
now ZINT_VERSION it's set by the build system
This commit is contained in:
parent
a88fcaa923
commit
df102f0928
@ -7,6 +7,9 @@
|
|||||||
# make clean cleans up a previous compilation and any object or editor files
|
# make clean cleans up a previous compilation and any object or editor files
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ZINT_VERSION:=-DZINT_VERSION=\"1.80.0\"
|
||||||
|
|
||||||
|
|
||||||
CC := gcc
|
CC := gcc
|
||||||
INCLUDE := -I/usr/local/include
|
INCLUDE := -I/usr/local/include
|
||||||
CFLAGS := -g
|
CFLAGS := -g
|
||||||
@ -26,19 +29,19 @@ TWODIM:= code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c maxicode.c composite
|
|||||||
TWODIM_OBJ:= code16k.o blockf.o dmatrix.o dm200.o pdf417.o qr.o maxicode.o composite.o aztec.o
|
TWODIM_OBJ:= code16k.o blockf.o dmatrix.o dm200.o pdf417.o qr.o maxicode.o composite.o aztec.o
|
||||||
LIBS:= `libpng12-config --I_opts --L_opts --ldflags` -lz -lm
|
LIBS:= `libpng12-config --I_opts --L_opts --ldflags` -lz -lm
|
||||||
|
|
||||||
ifeq ($(WITHOUT_QR),true)
|
ifeq ($(NO_QR),true)
|
||||||
DEFINES:=
|
DEFINES:= -DNO_QR
|
||||||
else
|
else
|
||||||
DEFINES:= -DWITH_QR
|
DEFINES:=
|
||||||
LIBS+= -lqrencode
|
LIBS+= -lqrencode
|
||||||
endif
|
endif
|
||||||
|
|
||||||
libzint: code.c code128.c 2of5.c upcean.c medical.c telepen.c plessey.c postal.c auspost.c imail.c code16k.c dmatrix.c dm200.c reedsol.c pdf417.c maxicode.c rss.c common.c png.c library.c ps.c qr.c large.c composite.c aztec.c blockf.c
|
libzint: code.c code128.c 2of5.c upcean.c medical.c telepen.c plessey.c postal.c auspost.c imail.c code16k.c dmatrix.c dm200.c reedsol.c pdf417.c maxicode.c rss.c common.c png.c library.c ps.c qr.c large.c composite.c aztec.c blockf.c
|
||||||
$(CC) -fPIC $(CFLAGS) -c $(ONEDIM)
|
$(CC) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(ONEDIM)
|
||||||
$(CC) -fPIC $(CFLAGS) -c $(POSTAL)
|
$(CC) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(POSTAL)
|
||||||
$(CC) -fPIC $(DEFINES) $(CFLAGS) -c $(TWODIM)
|
$(CC) -fPIC $(DEFINES) $(CFLAGS) $(ZINT_VERSION) -c $(TWODIM)
|
||||||
$(CC) -fPIC $(CFLAGS) -c $(COMMON)
|
$(CC) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(COMMON)
|
||||||
$(CC) $(CFLAGS) -shared -Wl,-soname,libzint.so -o libzint.so.1.6.3 $(INCLUDE) $(COMMON_OBJ) $(ONEDIM_OBJ) $(TWODIM_OBJ) $(POSTAL_OBJ) $(LIBS)
|
$(CC) $(CFLAGS) $(ZINT_VERSION) -shared -Wl,-soname,libzint.so -o libzint.so.1.6.3 $(INCLUDE) $(COMMON_OBJ) $(ONEDIM_OBJ) $(TWODIM_OBJ) $(POSTAL_OBJ) $(LIBS)
|
||||||
ln -s libzint.so.* libzint.so
|
ln -s libzint.so.* libzint.so
|
||||||
|
|
||||||
.PHONY: install uninstall clean dist
|
.PHONY: install uninstall clean dist
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
# make clean cleans up a previous compilation and any object or editor files
|
# make clean cleans up a previous compilation and any object or editor files
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ZINT_VERSION:=-DZINT_VERSION=\"1.80.0\"
|
||||||
|
|
||||||
CC := gcc
|
CC := gcc
|
||||||
INCLUDE := -I/usr/local/include
|
INCLUDE := -I/usr/local/include
|
||||||
CFLAGS := -g
|
CFLAGS := -g
|
||||||
@ -15,7 +17,7 @@ bindir := $(prefix)/bin
|
|||||||
DESTDIR :=
|
DESTDIR :=
|
||||||
|
|
||||||
zint: main.c
|
zint: main.c
|
||||||
$(CC) $(INCLUDE) $(CFLAGS) -I../backend -L../backend main.c -o zint -lzint
|
$(CC) $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint_frontend -lzint
|
||||||
|
|
||||||
.PHONY: install uninstall clean dist
|
.PHONY: install uninstall clean dist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user