# MAKEFILE Monash Image Library MAKEFILE # This is a simple makefile that can be used with the image library. Simply # adjust the BIN and OBJ variables to suit your programs (ie BIN should list # the executable and OBJ the object files for that executable). Note that # there should be tabs before $(CC) and rm. If you have include files then # list any object file dependencies as shown below for example.h . # # NOTE: The $MILHOME environmental variable MUST be set to the directory # in which you installed the Monash Image Library. CC = gcc # Flags for both compile and link/loader phase. FLAGS = -Wall -g # Libraries for link/loader phase. LIBS = -L$(MILHOME)/lib -limage -lX11 -lm # Flags for link/loader phase. LDFLAGS = $(FLAGS) # Flags for compile phase (used automatically when $(OBJS) are created). CFLAGS = $(FLAGS) -I$(MILHOME) OBJS = example.o BIN = example $(BIN) : $(OBJS) $(CC) -o $(BIN) $(LDFLAGS) $(OBJS) $(LIBS) # If you use a header file then list it here or else delete the next line. $(OBJS): example.h clean : rm -f core *.o $(BIN)
index | userguide | full | arithmetic | basic | binary | blocks | colour | compress | display | docs | fft | hist | image | io | makefile | masks | memory | misc | morph | pixel | rgb | stats | transform | error | mapping