Print corner coodinates in decimal form for more precision.
[gocam.git] / Makefile
blob2f99516893a5c1f5c6b9afe752a86324ed2dae42
1 # Compilers and compile flags
3 CXX = g++
4 OPT = -O2
5 CXXFLAGS = $(OPT) -Wall # -Wno-sign-compare
6 LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread
8 # The CImg library seems to know only about Sun, Linux, Windows, Mac
9 # and FreeBSD systems. If you have other X11-capable system, that
10 # CImg does not recognize, try uncommenting the following line:
12 # CXXFLAGS += -Dcimg_display_type=1 -Dcimg_OS=1
15 # Source files
17 PROGS = gocam_test
18 PROG_SRCS = gocam_test.cc
19 HEADERS = CImg.h geom.hh gocam.hh im.hh util.hh conf.hh str.hh
20 CLASS_SRCS = gocam.cc conf.cc str.cc
21 CLASS_OBJS = $(CLASS_SRCS:.cc=.o)
22 SRCS = $(CLASS_SRCS) $(PROG_SRCS)
24 # Distribution
26 VERSION = 0.3
27 PROJECT = gocam
28 PACKAGE= $(PROJECT)-$(VERSION)
29 DIST_FILES = README INSTALL NEWS COPYING Makefile Doxyfile html \
30 example.jpg \
31 $(HEADERS) $(SRCS)
33 # Rules
35 all: $(PROGS)
37 gocam_test: gocam_test.o $(CLASS_OBJS)
38 g++ $(CXXFLAGS) -o $@ $< $(CLASS_OBJS) $(LDFLAGS)
40 dep-stamp:
41 touch dep-stamp
43 .PHONY: depreal
44 depreal:
45 touch dep-stamp
46 make dep
48 dep: dep-stamp
49 $(CXX) -MM $(CPPFLAGS) $(CXXFLAGS) $(SRCS) > dep
51 .PHONY: doc
52 doc:
53 doxygen
55 .PHONY: clean
56 clean:
57 rm -f *.o $(PROGS)
59 .PHONY: cleanbak
60 cleanbak:
61 rm -f *~
63 .PHONY: dist
64 dist: doc
65 if [ -e "$(PACKAGE)" ]; then \
66 echo "$(PACKAGE) exists already"; \
67 exit 1; \
70 mkdir $(PACKAGE)
71 cp -r $(DIST_FILES) $(PACKAGE)
72 tar -czvf $(PACKAGE).tar.gz $(PACKAGE)
73 rm -rf $(PACKAGE)
74 @echo "created $(PACKAGE).tar.gz"
76 include dep