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$(srcdir)/../../src/core \ -I$(includedir) LIBS = \ -L../../src/core -lrappture \ -L$(libdir) -lexpat -lz -lm VPATH = $(srcdir) CXX_SWITCHES = $(CXXFLAGS) $(INCLUDES) $(DEFINES) CC_SWITCHES = $(CFLAGS) $(INCLUDES) $(DEFINES) FILES = \ $(srcdir)/README \ $(srcdir)/compress.c \ $(srcdir)/compress.cc \ $(srcdir)/output.dx \ $(srcdir)/plot.cc \ $(srcdir)/plotc.c \ $(srcdir)/tool.xml \ $(srcdir)/tool2.xml \ Makefile destdir = $(prefix)/examples/c-example PROGS = \ compress \ compressc \ plot \ plotc \ all: $(PROGS) compress: $(srcdir)/compress.cc $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) compressc: $(srcdir)/compress.c $(CC) $(CC_SWITCHES) -o $@ $< $(LIBS) plot: $(srcdir)/plot.cc $(CXX) $(CXX_SWITCHES) -o $@ $< $(LIBS) plotc: $(srcdir)/plotc.c $(CC) $(CC_SWITCHES) -o $@ $< $(LIBS) install: $(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) run*.xml distclean: clean $(RM) Makefile *~