X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2FMakefile;h=afea4283118d4eb6f7b69942149a06d75d24c218;hb=aac1ada93b1c972e964f53c47dccd0fe4f8aff3a;hp=10c0be9d7fa954b3e3f96d7c3b77e439ba4d7ac5;hpb=59acfe7ae6e8c81462dce00da5006166efb63d22;p=ypp-sc-tools.db-test.git diff --git a/pctb/Makefile b/pctb/Makefile index 10c0be9..afea428 100644 --- a/pctb/Makefile +++ b/pctb/Makefile @@ -1,5 +1,22 @@ -LDLIBS += -lnetpbm -CFLAGS += -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ - -Wstrict-prototypes -g +CC= gcc +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) + +TARGETS= ypp-commodities + +all: $(TARGETS) + +CONVERT_OBJS= convert.o ocr.o pages.o structure.o + +ypp-commodities: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) + +$(CONVERT_OBJS): ocr.h convert.h structure.h common.h + +clean: + rm -f $(TARGETS) *.o core core.* *~ t t.* u u.* ./#pages#.ppm