>./MAKE ARCHITECTURE_TYPEARCHITECTURE_TYPE must be one of the following architectures: sunos, solaris, j90, linux, alpha and AIX. The MAKE script makes a directory with the architecture name, and links source files in the directory, and then executes 'make'. This script will make three directories, 'bin', 'lib' and 'include'. You can install them by typing,
>./MAKE install INSTALL_DIRIf you want to make Ninf for different architecture, first, install Ninf in the other directory, secondly, clean up this directory by typing,
>./MAKE cleanthirdly, make Ninf again for another architecture.
setenv NINF_DIR /usr/local/ninf/solarisNOTE: If you installed them to the other directory, of course you should specify the directory.
include $(NINF_DIR)/templateThe 'template' file provides macros 'NINF_CFLAGS' and 'NINF_LDFLAGS'. These are needed to link Ninf Libraries. Typical rule for ninf client program is like this.
test: test.c $(CC) $(CFLAGS) $(NINF_CFLAGS) -o test test.c $(LDFLAGS) $(NINF_LDFLAGS)
include $(NINF_DIR)/lib/templateThen, you can use NINF_GEN macro. This macro gives you a program which produce makefile and stub programs. For example, your IDL file is 'ep.idl' and your routine is provided by 'ep_slave.o', then Makefile should contain following lines.
_stub_ep: ep_slave.o ep.mak make -f ep.mak ep.mak: ep.idl $(NINF_GEN) $<
Send your comments or questions to
ninf@apgrid.org
Ninf Home Page