.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 -Wno-parentheses -fsigned-char -O3 # -mcpu=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer \ # -fregmove -foptimize-register-move -frerun-loop-opt \ # -frerun-cse-after-loop -fprefetch-loop-arrays \ # -fmove-all-movables -fpeephole -m3dnow -msse -mmmx \ # -mfpmath=sse -funroll-loops PLATFORM = ############################################################################## # 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.unix