File: Makefile.mak

package info (click to toggle)
xpvm 1.2.5-11
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,368 kB
  • ctags: 1,509
  • sloc: ansic: 22,799; tcl: 7,750; makefile: 101; csh: 11; sh: 10
file content (76 lines) | stat: -rw-r--r-- 2,257 bytes parent folder | download | duplicates (7)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#*************************************************************#
#
#  $Id: Makefile.mak,v 4.1 1997/06/25 21:55:38 pvmsrc Exp $
#
#  Nmake file for the PVM tracer
#
#  PVM_ARCH   = the official pvm-name of your processor
#  ARCHCFLAGS = special cc flags
#

#  USER installation specific part -- to be modified

!IF "$(OS)" == "Windows_NT"
NULL=
!ELSE
NULL=nul
!ENDIF
!include $(PVM_ROOT)\conf\$(PVM_ARCH).def

INCL	=	/I $(PVM_ROOT)/include /I $(PVM_ROOT)/tracer \
			/I $(PVM_ROOT)/src
LIBS	=	$(PVM_ARCH)/libpvmtracer.lib \
			$(PVM_ROOT)/lib/$(PVM_ARCH)/libpvm3.lib
OBJS	=	$(PVM_ARCH)/cmd.obj $(PVM_ARCH)/trcglob.obj \
			$(PVM_ARCH)/tracer.obj

LIBOBJS	=	$(PVM_ARCH)/trcmess.obj $(PVM_ARCH)/trcfile.obj \
			$(PVM_ARCH)/trccompat.obj $(PVM_ARCH)/trccompatglob.obj \
			$(PVM_ARCH)/trcutil.obj $(PVM_ARCH)/trclib.obj

all:	paths $(PVM_ARCH)/libpvmtracer.lib tracer.exe

paths:
	if not exist "$(PVM_ARCH)/$(NULL)" mkdir "$(PVM_ARCH)"
	if not exist "../lib/$(PVM_ARCH)/$(NULL)" mkdir "../lib/$(PVM_ARCH)"

$(PVM_ARCH)/libpvmtracer.lib:  $(LIBOBJS)
	$(link) $(libspec) $(conflags) \
		$(OUTBIN)$(PVM_ROOT)\tracer\$(PVM_ARCH)\libpvmtracer.lib \
		$(LIBOBJS)

tracer.exe: $(OBJS) $(PVM_ARCH)/libpvmtracer.lib
	$(link) $(OUTBIN)$(PVM_ROOT)\tracer\$(PVM_ARCH)\tracer.exe \
		$(OBJS) $(LIBS) $(link_flags)

$(PVM_ARCH)/cmd.obj: cmd.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/cmd.obj cmd.c

$(PVM_ARCH)/trcglob.obj: trcglob.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcglob.obj trcglob.c

$(PVM_ARCH)/tracer.obj: tracer.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/tracer.obj tracer.c

# LIB

$(PVM_ARCH)/trcmess.obj: trcmess.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcmess.obj trcmess.c

$(PVM_ARCH)/trcfile.obj: trcfile.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcfile.obj trcfile.c

$(PVM_ARCH)/trccompat.obj: trccompat.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trccompat.obj \
		trccompat.c

$(PVM_ARCH)/trccompatglob.obj: trccompatglob.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trccompatglob.obj \
		trccompatglob.c

$(PVM_ARCH)/trcutil.obj: trcutil.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trcutil.obj trcutil.c

$(PVM_ARCH)/trclib.obj: trclib.c
	$(cc) $(cflags) -c $(INCL) $(OUT)$(PVM_ARCH)/trclib.obj trclib.c