chiark / gitweb /
progress printing and bugfixing and build system improvements
[ypp-sc-tools.web-live.git] / pctb / Makefile
index 2cb3fad60670aef5745b334841fcf1ddd76ee3ff..2265cecf38f189376a197d031cb76250721ffe9f 100644 (file)
@@ -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.*