chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
get pirate name right
[ypp-sc-tools.web-live.git]
/
pctb
/
Makefile
diff --git
a/pctb/Makefile
b/pctb/Makefile
index 3a4fff3ba4221d5b97e612db67cc4060bd950b7f..2265cecf38f189376a197d031cb76250721ffe9f 100644
(file)
--- a/
pctb/Makefile
+++ b/
pctb/Makefile
@@
-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
-convert: $(CONVERT_OBJS) -lnetpbm -lXpm -lXtst -lX11
-$(CONVERT_OBJS): 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
x-manip-window: -lXtst -lX11
+
+clean:
+ rm -f $(TARGETS) *.o core core.*