# # Generic Makefile body to be concatenated to config header. # # Imports: # PVM_ARCH = the official pvm-name of your processor # ARCHCFLAGS = special cc flags # ARCHLIB = special libs needed for daemon # HASRANLIB = 't' or 'f' # # Define: # NOSTRCASE if libc doesn't have strcasecmp, strncasecmp # SYSVSIGNAL for system5 signal handling # SYSVSTR for strchr() instead of index() # SHELL = /bin/sh SDIR = .. LOBJ = pgtracelib.o PVMIDIR = $(PVM_ROOT)/include PVMLDIR = $(PVM_ROOT)/lib/$(PVM_ARCH) PVMBDIR = $(PVM_ROOT)/bin PVMXDIR = $(PVMBDIR)/$(PVM_ARCH) PVMLIB = -lpvm3 CFLAGS = -I$(PVMIDIR) -L$(PVMLDIR) $(ARCHCFLAGS) -DIMA_$(PVM_ARCH) LIBS = $(PVMLIB) $(ARCHLIB) install: pgpvm2 clocksync converter default: pgpvm2 clocksync converter pgpvm2: libpgpvm2.a $(PVMXDIR) $(PVMLDIR) cp libpgpvm2.a $(PVMLDIR) $(PVMXDIR): - mkdir $(PVMBDIR) - mkdir $(PVMXDIR) $(PVMLDIR): - mkdir $(PVMLDIR) libpgpvm2.a: $(LOBJ) rm -f libpgpvm2.a ar cr libpgpvm2.a $(LOBJ) case x$(HASRANLIB) in xt ) echo ranlib; ranlib libpgpvm2.a ;; esac clocksync: $(SDIR)/clocksync.c $(CC) -o clocksync $(SDIR)/clocksync.c chmod 755 clocksync cp clocksync $(PVMLDIR)/clocksync chmod 755 $(PVMLDIR)/clocksync cp $(SDIR)/PGSORT . chmod 755 PGSORT cp $(SDIR)/PGSORT $(PVMLDIR)/PGSORT chmod 755 $(PVMLDIR)/PGSORT converter: $(SDIR)/converter.c $(CC) -o converter $(SDIR)/converter.c chmod 755 converter cp converter $(PVMLDIR)/converter chmod 755 $(PVMLDIR)/converter clean: rm -f $(LOBJ) libpgpvm2.a pgtracelib.o clocksync converter tidy: rm -f $(LOBJ) # pgtracelib.o: $(SDIR)/pgtracelib.c $(CC) $(CFLAGS) -c $(SDIR)/pgtracelib.c cp $(SDIR)/pgpvm2.h $(PVM_ROOT)/include # .h deps pgtracelib.o: $(PVMIDIR)/pvm3.h $(SDIR)/pgpvm2.h