Makefile
1.17 KB
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
#!smake -J 3
#
#
#
# $Revision: 1.1.1.1 $
#
PRDEPTH = ../../../..
include $(PRDEPTH)/PRdefs
#
# Tools
#
#
# Directories
#
RDPSIMDEPTH = ../../..
SIMLIB = $(RDPSIMDEPTH)/simlib
HDR = $(RDPSIMDEPTH)/hdr
INDATA = .
#
# C Sources
# For each of these .tab files there is a corresponding .c
# file which prints tabular data on stdout. Each .c file
# can be compiled to an executable.
#
TAB_FILES = inp000.tab inp002.tab inp003.tab inp011.tab inp012.tab inp013.tab inp014.tab inp015.tab
#
# Header file Directories
#
LCINCS = -I. \
-I$(SIMLIB) \
-I$(HDR) \
-fullwarn
GCINCS =
#
# Linker Directories and Options
#
LLDOPTS = -L. -L$(SIMLIB)
GLDOPTS =
LLDLIBS =
#LLDLIBS = -lsimlib -lgl -limage
LNFLAGS = $(CFLAGS)
LDFLAGS = -lm
#
# Default Targets
#
TARGETS = tab_files
LDIRT = *.log *~ $(TAB_FILES) inp[0-9][0-9][0-9]
default install: $(TARGETS)
#
# SGI Common Rules
#
include $(COMMONRULES)
#
# Create 'tab' files from 'C' files
#
tab_files: $(TAB_FILES)
#
# Suffix Rules
#
.SUFFIXES : .c .v .tab
.c.tab:
$(HOST_CC) $*.c $(LCINCS) $(LDFLAGS) -o $* $(LLDLIBS)
$* > $*.tab
.v.tab:
compile.vcs $*.v
simulate.vcs | awk -f clean_v > $*.tab