File: Makefile.aimk

package info (click to toggle)
pvm 3.4beta7-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,256 kB
  • ctags: 5,938
  • sloc: ansic: 66,147; makefile: 1,446; fortran: 631; sh: 424; csh: 70; asm: 37
file content (44 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# $Id: Makefile.aimk,v 1.5 1997/06/17 20:48:50 pvmsrc Exp $
#
# 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
#
SHELL		=	/bin/sh
PVMDIR		=	../..
PVMIDIR		=	$(PVMDIR)/include
PVMLDIR		=	$(PVMDIR)/lib/$(PVM_ARCH)
PVMLIB		=	pvm3
PVMLIBDEP	=	$(PVMLDIR)/lib$(PVMLIB).a
SDIR		=	$(PVMDIR)/tasker
BDIR		=	$(PVMDIR)/bin
XDIR		=	$(BDIR)/$(PVM_ARCH)

CFLOPTS		=	-g
CFLAGS		=	$(ARCHCFLAGS) $(CFLOPTS) -I$(PVMIDIR) \
				-DIMA_$(PVM_ARCH)
LIBS		=	-L$(PVMLDIR) -l$(PVMLIB) $(ARCHLIB)

HEADERS		=	$(PVMIDIR)/pvm3.h $(PVMIDIR)/pvmproto.h

default:	all

all:	$(XDIR) $(XDIR)/tasker

$(XDIR):
	- mkdir $(BDIR)
	- mkdir $(XDIR)

$(XDIR)/tasker:  tasker
	cp tasker $(XDIR)

tasker:	$(SDIR)/tasker.c $(HEADERS) $(XDIR) $(PVMLIBDEP)
	$(CC) $(CFLAGS) -o tasker $(SDIR)/tasker.c $(LIBS)

clean:
	rm -f tasker *.o