X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=pctb%2FMakefile;h=2265cecf38f189376a197d031cb76250721ffe9f;hp=7d1d6efad02f7cffab871472b992e38e3f26deba;hb=09e8b6a8735c8cd1f7f3ffbabc1a05f0a8f8ca75;hpb=a628ba6e81f90a4ebc632731bc5e39ca5daae7fb diff --git a/pctb/Makefile b/pctb/Makefile index 7d1d6ef..2265cec 100644 --- a/pctb/Makefile +++ b/pctb/Makefile @@ -1,7 +1,14 @@ -CFLAGS += -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ - -Wstrict-prototypes -Werror -g +OPTIMISE= -O2 +WERROR= -Werror +WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ + -Wstrict-prototypes -Wno-format-zero-length +DEBUG=-g -all: convert x-manip-window +CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG) + +TARGETS= convert x-manip-window + +all: $(TARGETS) CONVERT_OBJS= convert.o ocr.o pages.o structure.o @@ -9,3 +16,6 @@ convert: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11 $(CONVERT_OBJS): ocr.h convert.h structure.h x-manip-window: -lXtst -lX11 + +clean: + rm -f $(TARGETS) *.o core core.*