File: pre-Make

package info (click to toggle)
pact 980714-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 13,096 kB
  • ctags: 26,034
  • sloc: ansic: 109,076; lisp: 9,645; csh: 7,147; fortran: 1,050; makefile: 136; lex: 95; sh: 32
file content (128 lines) | stat: -rw-r--r-- 2,304 bytes parent folder | download
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#
# pre-Makefile for Portable Process Control Library
#
# Files and Directories
#

TGTBin = ${BinDir}/pcexec
LibName = ppc
LibVers = 1
TGTLib = ${LibDir}/lib${LibName}.a
TGTInc = ${Hdrs}

#
# Compiler/Loader Options
#
UniFlags =
CcFlags = ${CDebug} -I${IncDir} ${MachDepInc}
FcFlags =
LdFlags = -L${LibDir} ${LDFLAGS}

#
# Files to Save for Backup (pact save)
#
SaveFiles = *.c *.h

#
# Files to remove in directory clean (pact clean)
#
CleanFiles = *~ core

#
# Things upon which install depends (pact install)
#
InstallDep = ${TGTLib} ${TGTShLib}  ${TGTBin}
BinDep = ${Hdrs} ${TGTLib} pcexec.c
BinObj = ${LdFlags} pcexec.c

#
# Source Files
#
FocalLst = ppc.focal
FocalSrc = ${Hdrs} ppc.c ppcaux.c pcbin.c pcposix.c pctmod.c

#
# Required Libraries
#
Libs = -lppc -lpdb -lpml -lscore -lm ${MachDepLib}

#
# Headers Files
#
Hdrs = ppc.h

#
# Object Files
#
ObjsA = ppc.o ppcaux.o pcbin.o pctmod.o pcfio.o pcpio.o
Objs = ${MPassDevices} ${IPCDevices} ${ObjsA}

${Objs} : ${Hdrs}

OMPSC  = pcmpsc.o
OLMPS  = pclmps.o
OPARC  = pcparc.o

OPOSIX = pcposix.o
ONOIPC = pcnil.o

ArObjs = ${MPassDevices} ${IPCDevices} \
         ${TGTLib}(ppc.o) ${TGTLib}(ppcaux.o) ${TGTLib}(pcbin.o) \
         ${TGTLib}(pctmod.o) ${TGTLib}(pcfio.o) ${TGTLib}(pcpio.o)

ArMPSC = ${TGTLib}(pcmpsc.o)
ArLMPS = ${TGTLib}(pclmps.o)
ArPARC = ${TGTLib}(pcparc.o)

ArPOSIX = ${TGTLib}(pcposix.o)
ArNOIPC = ${TGTLib}(pcnil.o)

${TGTLib} : ${LibDep}

Cstd : ${BinDir}/pcexec ${BinDir}/pcmtst \
       ${BinDir}/pcbtst ${BinDir}/pcctst

Fstd : ${BinDir}/pcftst

parallel : ${BinDir}/pcptst ${BinDir}/pcexec

#
# binary data tests
#
${BinDir}/pcbtst : ${TGTLib} pcbtst.c
	${CC} ${LdFlags} pcbtst.c -o ${BinDir}/pcbtst ${Libs}

${BinDir}/pcctst : ${TGTLib} pcctst.c
	${CC} ${LdFlags} pcctst.c -o ${BinDir}/pcctst ${Libs}

${BinDir}/pcftst : ${TGTLib} pcftst.f
	${FC} ${LdFlags} pcftst.f -o ${BinDir}/pcftst ${Libs}
#
# multiple process tests
#
${BinDir}/pcmtst : ${TGTLib} pcmtst.c
	${CC} ${LdFlags} pcmtst.c -o ${BinDir}/pcmtst ${Libs}
#
# parallel process tests
#
${BinDir}/pcptst : ${TGTLib} pcptst.c
	${CC} ${LdFlags} pcptst.c -o ${BinDir}/pcptst ${Libs}
#
# install 
#
install: ${InstallDep}
	pact incinstall

#
# inform
#
inform :
	@rm -f required.objs
	@echo ${ObjsA} > required.objs

#
# Run the PPC test suite
#
test :
	@pctest