IBM InfoSphere Streams Version 4.1.0

Auto-generated makefiles

You can use a makefile to easily manage compiler options and to compile streams processing applications quickly from the command line.

The sc command generates a sample makefile when given the -m, --makefile-generation option. For example, you can issue the command sc -m -M my.sample::FooBar to generate the following makefile with the name Makefile:

  .PHONY: all standalone distributed clean

  SPLC_FLAGS ?= -a -T
  SPLC = $(STREAMS_INSTALL)/bin/sc

  SPL_CMD_ARGS ?=
  SPL_MAIN_COMPOSITE = my.sample::FooBar

  all: distributed

  distributed:
        $(SPLC) $(SPLC_FLAGS) -M $(SPL_MAIN_COMPOSITE) $(SPL_CMD_ARGS)
 
  standalone:
        $(SPLC) $(SPLC_FLAGS) -T -M $(SPL_MAIN_COMPOSITE) $(SPL_CMD_ARGS)
   
  clean:
        $(SPLC) $(SPLC_FLAGS) -C -M $(SPL_MAIN_COMPOSITE)

When you issue make in the application directory, this makefile is used to compile a streams processing application . The -a, --optimized-code-generation option turns on all code generation optimizations, and passes the highest optimization options to the C++ compiler for compiling the generated code. The -T, --standalone-application option generates a stand-alone application.