.SUFFIXES:
.SUFFIXES: .c .obj
##############################################################################
# Include paths probably need some modifications
INCPATHS = -I$(INCLUDE)
# Library paths
LIBPATHS =
# Libraries
LIBS =
##############################################################################
# Optimization flags for compiler
OPTIMIZE = /O2 /Ot /Oy /GA /Gs
PLATFORM = -DWIN32
# Compiler and linker
CC = cl.exe
LD = link.exe
##############################################################################
# The following settings should need no modifications
OBJECTS = blur.obj boundary.obj convmask.obj hopfield.obj image.obj \
maincmd.obj threshold.obj weights.obj xmalloc.obj lambda.obj
SOURCES = $(OBJECTS:.obj=.c)
PROGRAM = refocit.exe
CFLAGS = $(OPTIMIZE)
CPPFLAGS = $(INCPATHS) -DNDEBUG $(PLATFORM)
LDFLAGS = /SUBSYSTEM:CONSOLE $(LIBPATHS)
all: $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(LD) $(LDFLAGS) /OUT:$(PROGRAM) $(OBJECTS) $(LIBS)
instal: $(PROGRAM)
copy $(PROGRAM) $(TGT_LOCATION)
clean:
-del /Q /F $(OBJECTS) $(PROGRAM)
.c.obj:
$(CC) $(CPPFLAGS) $(CFLAGS) /c $<
$(OBJECTS): Makefile.msc
|