From df102f0928ea5da8687b508161611f2cd5b9db88 Mon Sep 17 00:00:00 2001 From: taipanromania Date: Thu, 18 Sep 2008 14:39:25 +0000 Subject: [PATCH] now ZINT_VERSION it's set by the build system --- backend/Makefile | 19 +++++++++++-------- frontend/Makefile | 4 +++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/backend/Makefile b/backend/Makefile index 15a9bbdc..499a888e 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -7,6 +7,9 @@ # make clean cleans up a previous compilation and any object or editor files # +ZINT_VERSION:=-DZINT_VERSION=\"1.80.0\" + + CC := gcc INCLUDE := -I/usr/local/include 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 LIBS:= `libpng12-config --I_opts --L_opts --ldflags` -lz -lm -ifeq ($(WITHOUT_QR),true) -DEFINES:= +ifeq ($(NO_QR),true) +DEFINES:= -DNO_QR else -DEFINES:= -DWITH_QR +DEFINES:= LIBS+= -lqrencode 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 - $(CC) -fPIC $(CFLAGS) -c $(ONEDIM) - $(CC) -fPIC $(CFLAGS) -c $(POSTAL) - $(CC) -fPIC $(DEFINES) $(CFLAGS) -c $(TWODIM) - $(CC) -fPIC $(CFLAGS) -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) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(ONEDIM) + $(CC) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(POSTAL) + $(CC) -fPIC $(DEFINES) $(CFLAGS) $(ZINT_VERSION) -c $(TWODIM) + $(CC) -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(COMMON) + $(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 .PHONY: install uninstall clean dist diff --git a/frontend/Makefile b/frontend/Makefile index e244c6af..8539896c 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -6,6 +6,8 @@ # make clean cleans up a previous compilation and any object or editor files # +ZINT_VERSION:=-DZINT_VERSION=\"1.80.0\" + CC := gcc INCLUDE := -I/usr/local/include CFLAGS := -g @@ -15,7 +17,7 @@ bindir := $(prefix)/bin DESTDIR := 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