X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=pctb%2FMakefile;h=afea4283118d4eb6f7b69942149a06d75d24c218;hb=aac1ada93b1c972e964f53c47dccd0fe4f8aff3a;hp=c28e00bb20015051a5ba8e771827b3bb85528d8a;hpb=4429a63ef0b8a3255bb8a85aa63b134785329f80;p=ypp-sc-tools.db-test.git diff --git a/pctb/Makefile b/pctb/Makefile index c28e00b..afea428 100644 --- a/pctb/Makefile +++ b/pctb/Makefile @@ -1,9 +1,22 @@ -CFLAGS += -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \ - -Wstrict-prototypes -Werror -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 x-manip-window +CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG) -convert: convert.o ocr.o -lnetpbm -convert.o ocr.o: ocr.h +TARGETS= ypp-commodities -x-manip-window: -lXtst -lX11 +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