2 # This is part of ypp-sc-tools, a set of third-party tools for assisting
3 # players of Yohoho Puzzle Pirates.
5 # Copyright (C) 2009 Ian Jackson <ijackson@chiark.greenend.org.uk>
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20 # Yohoho and Puzzle Pirates are probably trademarks of Three Rings and
21 # are used without permission. This program is not endorsed or
22 # sponsored by Three Rings.
28 WARNINGS= -Wall -Wwrite-strings -Wpointer-arith -Wmissing-prototypes \
29 -Wstrict-prototypes -Wno-format-zero-length
32 CFLAGS += $(WARNINGS) $(WERROR) $(OPTIMISE) $(DEBUG)
34 TARGETS= ypp-commodities
38 CONVERT_OBJS= convert.o ocr.o pages.o structure.o common.o rgbimage.o resolve.o
40 ypp-commodities: $(CONVERT_OBJS) -lnetpbm -lXtst -lX11
41 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
43 $(CONVERT_OBJS): ocr.h convert.h structure.h common.h
46 rm -f $(TARGETS) *.o core core.* *~ vgcore.*
47 rm -f t t.* u u.* v v.* ./#pages#.ppm