.SUFFIXES: .SUFFIXES: .c .o ############################################################################## TGT_LOCATION = $(HOME)\ # Include paths probably need some modifications INCPATHS = # Library paths LIBPATHS = # Libraries LIBS = -lm -lc ############################################################################## # Optimization flags for compiler OPTIMIZE = -Wall -O3 PLATFORM = -DPLAN9 ############################################################################## # The following settings should need no modifications OBJECTS = blur.o boundary.o convmask.o hopfield.o image.o \ maincmd.o threshold.o weights.o xmalloc.o lambda.o SOURCES = $(OBJECTS:.o=.c) PROGRAM = refocit CFLAGS = $(OPTIMIZE) CPPFLAGS = $(INCPATHS) -DNDEBUG $(PLATFORM) LDFLAGS = $(LIBPATHS) all: $(PROGRAM) $(PROGRAM): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS) # $(LD) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS) # chmod a+x $(PROGRAM) instal: $(PROGRAM) cp $(PROGRAM) $(TGT_LOCATION) clean: -rm -f $(OBJECTS) $(PROGRAM) .c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -c $< $(OBJECTS): Makefile.plan9