# # $Id: Makefile.aimk,v 1.17 2000/02/16 21:49:35 pvmsrc Exp $ # # Makefile.aimk for PVM example programs. # # Set PVM_ROOT to the path where PVM includes & libraries are installed. # Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.) # Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, # etc.) # otherwise leave ARCHLIB blank # # PVM_ARCH and ARCHLIB, among other things, are set for you if you # use "$PVM_ROOT/lib/aimk" instead of "make". # # aimk also creates a $PVM_ARCH directory below this one and will cd # to it before invoking make - this allows building in parallel on # different arches. # SHELL = /bin/sh PVMDIR = /usr/lib/pvm3 PVMLOCAL = /clients/users/levent/pvm3 SDIR = $(PVMLOCAL)/pEdge BDIR = $(PVMLOCAL)/bin XDIR = $(BDIR)/$(PVM_ARCH) CFLOPTS = -g CFLAGS = $(CFLOPTS) -I$(PVMDIR)/include $(ARCHCFLAGS) -lm ##### Need to select some architecture-specific libraries to link tasks # The default setup is for workstations ### Select PVMLIB depending on architecture. # For MPPs (PGON and AIX4SP2/SP2MPI) select: # PVMLIB = -lpvm3pe # For Workstations and shared memory architectures select: # PVMLIB = -lpvm3 PVMLIB = -lpvm3 ### Select the PVMHLIB depending on architecture # Host versions of programs use sockets to communicate with the daemon. # They can be built with aimk hostprogs, they are only necessary for # MPPs and are OPTIONAL for other architectures # # For MPPs and Workstations select # PVMHLIB = -lpvm3 # for Shared Memory Archtiectures # PVMHLIB = -lpvm3s PVMHLIB = -lpvm3 ######################################################################## LIBS = $(PVMLIB) $(ARCHLIB) HLIBS = $(PVMHLIB) $(ARCHLIB) GLIBS = -lgpvm3 LDFLAGS = $(LOPT) -L$(PVMDIR)/lib/$(PVM_ARCH) all: pEdge spEdge clean: rm -f *.o pEdge spEdge $(XDIR): - mkdir $(BDIR) - mkdir $(XDIR) pEdge: $(SDIR)/pEdge.c $(XDIR) $(CC) $(CFLAGS) -o $@ $(SDIR)/pEdge.c $(SDIR)/pixel_chunk.c $(LDFLAGS) $(LIBS) mv $@ $(XDIR) spEdge: $(SDIR)/spEdge.c $(XDIR) $(CC) $(CFLAGS) -o $@ $(SDIR)/spEdge.c $(SDIR)/pixel_chunk.c $(LDFLAGS) $(LIBS) mv $@ $(XDIR)