X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2FMakefile;h=2265cecf38f189376a197d031cb76250721ffe9f;hb=4d7eb93b7c82da31f928349ac7c6cd551d78ca57;hp=3a4fff3ba4221d5b97e612db67cc4060bd950b7f;hpb=2f6ec1e7e5b3649a58ae20211eb18511550246ae;p=ypp-sc-tools.web-live.git diff --git a/pctb/Makefile b/pctb/Makefile index 3a4fff3..2265cec 100644 --- a/pctb/Makefile +++ b/pctb/Makefile @@ -1,11 +1,21 @@ -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) -CONVERT_OBJS= convert.o ocr.o pages.o +TARGETS= convert x-manip-window -convert: $(CONVERT_OBJS) -lnetpbm -lXpm -lXtst -lX11 -$(CONVERT_OBJS): 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.*