1 # Compilers and compile flags
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
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
)
28 PACKAGE
= $(PROJECT
)-$(VERSION
)
29 DIST_FILES
= README INSTALL NEWS COPYING Makefile Doxyfile html \
37 gocam_test
: gocam_test.o
$(CLASS_OBJS
)
38 g
++ $(CXXFLAGS
) -o
$@
$< $(CLASS_OBJS
) $(LDFLAGS
)
49 $(CXX
) -MM
$(CPPFLAGS
) $(CXXFLAGS
) $(SRCS
) > dep
65 if
[ -e
"$(PACKAGE)" ]; then \
66 echo
"$(PACKAGE) exists already"; \
71 cp
-r
$(DIST_FILES
) $(PACKAGE
)
72 tar -czvf
$(PACKAGE
).
tar.gz
$(PACKAGE
)
74 @echo
"created $(PACKAGE).tar.gz"