# Makefile for mexcdf. # # NOTES: 1. You need an ANSI C compiler to build MexCDF # 2. You might need to modify this Makefile to specify: # - the location of the NetCDF library and include file # - the location of the your Matlab distribution # - compiler options ##################################### # # Specify ANSI C compiler and options # #For machines without without supplied ANSI C compilers, try gcc: #CC = gcc #Digital UNIX: CC = cc -non_shared -std #IRIX: #CC = cc -xansi ################################## # # The Netcdf library # LIBS = -L/usr/local/lib -lnetcdf MATLAB = /usr/local/matlab5 # # Directories for cmex.h and netcdf.h include files # INC = -I$(MATLAB)/extern/include -I/usr/local/include # # Point to the proper cmex # CMEX = $(MATLAB)/bin/cmex CMEXFLAGS = -V4 mexcdf53 : $(CMEX) $(CFLAGS) $(CMEXFLAGS) mexcdf53.c $(INC) $(LIBS)