# where is your base directory? BASE_DIR = /home/idunn1/rgr/prototype # which compiler are you using? CC = /usr/local/gnu/bin/gcc # code optimization flag FLAGS = -O2 # where are the header files that prototype the routines in the libraries? INCLUDE_HEADER_DIRS = -I${BASE_DIR}/src/include # where are the libraries which contain the routines you are calling? INCLUDE_LIB_DIRS = -L${BASE_DIR}/lib # what are the names of the libraries you need? INCLUDE_LIBRARIES = -lCrisGetData -lUtilities cris: crisTest.c ${CC} ${FLAGS} crisTest.c -o crisTest \ ${INCLUDE_HEADER_DIRS} \ ${INCLUDE_LIB_DIRS} \ ${INCLUDE_LIBRARIES} clean: rm -rf *.o crisTest -------------------------------------------------------------------------- and here are the results when you run make after editing crisTest.c: mussel % make clean rm -rf *.o crisTest mussel % make cris /usr/local/gnu/bin/gcc -O2 crisTest.c -o crisTest \ -I/home/idunn1/rgr/prototype/src/include \ -L/home/idunn1/rgr/prototype/lib \ -lCrisGetData -lUtilities mussel %