chiark / gitweb /
get pirate name right
[ypp-sc-tools.web-live.git] / pctb / Makefile
index 55f4d53bcb7002d7c6245aef61fb5cba2ef4059e..2265cecf38f189376a197d031cb76250721ffe9f 100644 (file)
@@ -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
+
+all: $(TARGETS)
+
+CONVERT_OBJS= convert.o ocr.o pages.o structure.o
 
 convert: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11
-$(CONVERT_OBJS): ocr.h
+$(CONVERT_OBJS): ocr.h convert.h structure.h
 
 x-manip-window: -lXtst -lX11
+
+clean:
+       rm -f $(TARGETS) *.o core core.*