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

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


.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

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.