bindir = @bindir@ datadir = @datadir@ datarootdir = @datarootdir@ exec_prefix = @exec_prefix@ includedir = @includedir@ libdir = @libdir@ mandir = @mandir@ prefix = @prefix@ srcdir = @srcdir@ INSTALL = @INSTALL@ MKDIR_P = @MKDIR_P@ CC = @CC@ CFLAGS = @CFLAGS@ CXX = @CXX@ CXXFLAGS = @CFLAGS@ DEFINES = -g -Wall INCLUDES = -I../../../src/core \ -I../../../src/objects \ -I$(srcdir)/../../../src/core \ -I$(srcdir)/../../../src/objects \ -I$(includedir) LIBS = \ -L../../../src/core -lrappture \ -L../../../src/objects -lRpObjects\ -L$(libdir) -lexpat -lz -lm VPATH = $(srcdir) CXX_SWITCHES = $(CXXFLAGS) $(INCLUDES) $(DEFINES) CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) FILES = \ $(srcdir)/number.cc \ Makefile destdir = $(prefix)/examples/objects/number PROGS = \ number .PHONY: all install clean distclean all: $(PROGS) number: $(srcdir)/number.cc $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) install: all $(MKDIR_P) -m 0755 $(destdir) for i in $(FILES) ; do \ $(INSTALL) -m 0444 $$i $(destdir) ; \ done for i in $(PROGS) ; do \ $(INSTALL) -m 0555 $$i $(destdir) ; \ done clean: $(RM) $(PROGS) distclean: clean $(RM) Makefile *~