File: hp.config

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 (33 lines) | stat: -rw-r--r-- 903 bytes parent folder | download | duplicates (2)
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
#
# HP.CONFIG - HP700 configuration
#

CCompiler = c89
FCompiler = fort77
CFLAGS    = -D_HPUX_SOURCE
FFLAGS    = +U77
YaccFlags = -Ns2000

# Believe it or not HP's LEX creates a static function __yy__unused which drags
# in a worthless reference to main.  This function is not referenced and
# could be empty and hence benign. But no, it will foul up the loading of
# FORTRAN programs which don't have a call to main!!!!!!!!!!

.l.o:
	lex $< 2> /dev/null
	@mv lex.yy.c $*.c
	@( echo 'e $*.c' ; echo '1,$$s/yy/$*_/g' ; echo '1,$$s/main/rand/g' ; echo '1,$$w $*.c' ; echo 'q' ) | ed > /dev/null
	${LX} -c $*.c
	@${RM} $*.c $*.o

.l.a:
	lex $< 2> /dev/null
	@mv lex.yy.c $*.c
	@( echo 'e $*.c' ; echo '1,$$s/yy/$*_/g' ; echo '1,$$s/main/rand/g' ; echo '1,$$w $*.c' ; echo 'q' ) | ed > /dev/null
	${LX} -c $*.c
	@ar ${AROpt} ${TGTLib} $*.o 2> /dev/null
	@${RM} $*.c $*.o

CEnvironment
   HAVE_NO_RUSAGE
end