Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/src/ape/cmd/img/refocit-2.0.0/Makefile.msc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.