X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2FMakefile;h=2265cecf38f189376a197d031cb76250721ffe9f;hb=4d7eb93b7c82da31f928349ac7c6cd551d78ca57;hp=2cb3fad60670aef5745b334841fcf1ddd76ee3ff;hpb=ad09cd7cce6584c63c275d7ed1106e66959b3f9d;p=ypp-sc-tools.web-live.git diff --git a/pctb/Makefile b/pctb/Makefile index 2cb3fad..2265cec 100644 --- a/pctb/Makefile +++ b/pctb/Makefile @@ -1,9 +1,21 @@ -LDLIBS += -lnetpbm -CFLAGS += -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ - -Wstrict-prototypes -g +OPTIMISE= -O2 +WERROR= -Werror +WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ + -Wstrict-prototypes -Wno-format-zero-length +DEBUG=-g -all: convert +CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG) -convert: convert.o ocr.o +TARGETS= convert x-manip-window -convert.o ocr.o: ocr.h +all: $(TARGETS) + +CONVERT_OBJS= convert.o ocr.o pages.o structure.o + +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.*