chiark / gitweb /
progress printing and bugfixing and build system improvements
[ypp-sc-tools.web-live.git] / pctb / Makefile
index 7d1d6efad02f7cffab871472b992e38e3f26deba..2265cecf38f189376a197d031cb76250721ffe9f 100644 (file)
@@ -1,7 +1,14 @@
-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)
+
+TARGETS= convert x-manip-window
+
+all: $(TARGETS)
 
 CONVERT_OBJS= convert.o ocr.o pages.o structure.o
 
@@ -9,3 +16,6 @@ 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.*