chiark / gitweb /
disable yppsc-ocr-resolver test mode
[ypp-sc-tools.db-test.git] / pctb / Makefile
1 CC= gcc
2 OPTIMISE= -O2
3 WERROR= -Werror
4 WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \
5           -Wstrict-prototypes -Wno-format-zero-length
6 DEBUG=-g
7
8 CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG)
9
10 TARGETS= ypp-commodities
11
12 all: $(TARGETS)
13
14 CONVERT_OBJS= convert.o ocr.o pages.o structure.o
15
16 ypp-commodities: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11
17         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
18
19 $(CONVERT_OBJS): ocr.h convert.h structure.h common.h
20
21 clean:
22         rm -f $(TARGETS) *.o core core.* *~ t t.* u u.* ./#pages#.ppm