File: Makefile

package info (click to toggle)
xppaut 5.85-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,552 kB
  • ctags: 7,725
  • sloc: ansic: 80,633; cpp: 965; makefile: 265
file content (116 lines) | stat: -rw-r--r-- 2,916 bytes parent folder | download | duplicates (3)
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
.SUFFIXES: .c .o
CC = gcc
#CFLAGS = -DSkip_f2c_Undefs -O
#  NOTE !!
#  If you get some sort of error that is along the lines of
#    
#  wsfe.c: In function `x_putc':
#  wsfe.c:42: structure has no member named `_ptr'
#   ...
#  Then try the following:
CFLAGS += -DSkip_f2c_Undefs -DNON_UNIX_STDIO -O
#
# I really don't know what the $!@@**! is going on but it works ...
#
# some probs with ctype on newer machines can be fixed
# with the -DWCTYPE 
#
# this seems to work fine and is much less subject to
# screwups
.c.o:
	$(CC) $(CFLAGS) -c $*.c
#
# 
# compile, then strip unnecessary symbols
#.c.o:
#	$(CC) $(CFLAGS) -c $*.c
#	ld -r -x $*.o
#	mv a.out $*.o
#
#  NOTE !!
# if you have SUN Loader or sometimes others, eliminate -x in the above
# and it should work
#

OBJ =	Version.o backspace.o dfe.o due.o iio.o inquire.o rewind.o rsfe.o \
	rdfmt.o sue.o uio.o wsfe.o sfe.o fmt.o lio.o lread.o open.o \
	close.o util.o endfile.o wrtfmt.o wref.o err.o fmtlib.o rsne.o wsne.o \
        fc77.o f2cstart.o
######################################################
#  use this if you do have ranlib                    #
######################################################
#
libI77.a:	$(OBJ)
		ar r libf2cm.a $?
		ranlib libf2cm.a
		cp libf2cm.a ../.
######################################################
#  use this if you do not have ranlib                #
######################################################
#
#libI77.a:	$(OBJ)
#		ar r libf2cm.a $?
#		cp libf2cm.a ../.
########################################################
# whatever the problem is, it wont be found below here #
########################################################

lio.o:	lio.h
SRC=	lio.h fio.h fmt.h backspace.c dfe.c due.c iio.c inquire.c rewind.c \
	rsfe.c rdfmt.c sue.c uio.c wsfe.c sfe.c fmt.c lio.c lread.c open.c \
	close.c util.c endfile.c wrtfmt.c wref.c err.c fmtlib.c fc77.c f2cstart.c 

Version.o: Version.c
	$(CC) -c Version.c

backspace.o:  fio.h
close.o:  fio.h
dfe.o:  fio.h
dfe.o:  fmt.h
due.o:  fio.h
endfile.o:  fio.h
err.o:  fio.h
fmt.o:  fio.h
fmt.o:  fmt.h
ftest.o:  fio.h
iio.o:  fio.h
iio.o:  fmt.h
inquire.o:  fio.h
lib.o:  fio.h
lio.o:  fio.h
lio.o:  fmt.h
lio.o:  lio.h
lread.o:  fio.h
lread.o:  fmt.h
lread.o:  lio.h
lread.o:  fp.h
nio.o:  fio.h
nio.o:  fmt.h
nio.o:  lio.h
open.o:  fio.h
rdfmt.o:  fio.h
rdfmt.o:  fmt.h
rdfmt.o:  fp.h
rewind.o:  fio.h
rsfe.o:  fio.h
rsfe.o:  fmt.h
rsne.o: fio.h lio.h
sfe.o:  fio.h
stest.o:  fio.h
sue.o:  fio.h
uio.o:  fio.h
util.o:  fio.h
wref.o:  fio.h fmt.h fp.h
wrtfmt.o:  fio.h
wrtfmt.o:  fmt.h
wsfe.o:  fio.h
wsfe.o:  fmt.h
wsne.o: fio.h lio.h

check:
	xsum README Version.c backspace.c close.c dfe.c due.c \
	endfile.c err.c fio.h fmt.c fmt.h fmtlib.c fp.h iio.c \
	inquire.c lio.c lio.h lread.c makefile open.c rdfmt.c \
	rewind.c rsfe.c rsne.c sfe.c sue.c uio.c util.c wref.c \
	wrtfmt.c wsfe.c wsne.c >zap
	cmp zap libI77.xsum && rm zap || diff libI77.xsum zap