diff --git a/CMakeLists.txt b/CMakeLists.txt index d2c929d3..729a63b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ project(zint-package) set(CMAKE_INCLUDE_CURRENT_DIR ON) -#set(CMAKE_VERBOSE_MAKEFILE ON) +set(CMAKE_VERBOSE_MAKEFILE ON) #comment or remove the above line before release set (ZINT_VERSION_MAJOR 1) @@ -13,7 +13,7 @@ set (ZINT_VERSION_MINOR 99) set (ZINT_VERSION_RELEASE 1) set (ZINT_VERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}.${ZINT_VERSION_RELEASE}" ) -add_definitions (-DZINT_VERSION=\"${ZINT_VERSION}\") +add_definitions (-DZINT_VERSION=\"${ZINT_VERSION}\" -Wall) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) diff --git a/backend/Makefile b/backend/Makefile index d3c04f96..17a712d7 100644 --- a/backend/Makefile +++ b/backend/Makefile @@ -37,10 +37,10 @@ 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) $(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) -Wall -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(ONEDIM) + $(CC) -Wall -fPIC $(CFLAGS) $(ZINT_VERSION) -c $(POSTAL) + $(CC) -Wall -fPIC $(DEFINES) $(CFLAGS) $(ZINT_VERSION) -c $(TWODIM) + $(CC) -Wall -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 diff --git a/frontend/Makefile b/frontend/Makefile index c7a2c36e..bf6058fe 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -17,12 +17,12 @@ bindir := $(prefix)/bin DESTDIR := zint: main.c - $(CC) $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint -lzint + $(CC) -Wall $(INCLUDE) $(CFLAGS) $(ZINT_VERSION) -I../backend -L../backend main.c -o zint -lzint .PHONY: install uninstall clean dist clean: - rm -f zint *.o *.a *~ *.png *.eps + rm -f zint *.o *.a *~ *.png *.eps *.log install: install -D -p zint $(DESTDIR)$(bindir)/zint