Skip to content

Commit 979aa16

Browse files
committed
Initial commit
0 parents  commit 979aa16

File tree

118 files changed

+109598
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+109598
-0
lines changed

LICENSE.TXT

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2012 - 2016, Cadence Design Systems
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Makefile

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# $Source: /usr1/mfg/3.4C/solaris_bld/group/util/makefiles/RCS/dir.mk,v $
2+
#
3+
# $Author: wanda $
4+
# $Revision: #3 $
5+
# $Date: 2004/09/29 $
6+
# $State: Exp $
7+
#
8+
9+
.PHONY: all
10+
all: install release
11+
12+
BUILD_ORDER = \
13+
lef \
14+
clef \
15+
clefzlib \
16+
lefzlib \
17+
lefrw \
18+
lefwrite \
19+
lefdiff
20+
21+
## HP-UX 9.0.X
22+
OS_TYPE := $(shell uname)
23+
ifeq ($(OS_TYPE),HP-UX)
24+
OPTIMIZE_FLAG = +O2
25+
else
26+
OS_VER := $(shell uname -r)
27+
ifeq ($(findstring 4.1,$(OS_VER)),4.1)
28+
OPTIMIZE_FLAG = -O
29+
else
30+
OPTIMIZE_FLAG = -O
31+
endif
32+
endif
33+
34+
install:
35+
@$(MAKE) $(MFLAGS) installhdrs installlib installbin
36+
37+
release:
38+
@$(MAKE) "DEBUG=$(OPTIMIZE_FLAG)" install
39+
40+
test:
41+
@$(MAKE) "BUILD_ORDER=TEST" dotest
42+
43+
.PHONY: clean
44+
clean:
45+
@$(MAKE) "BUILD_ORDER += TEST" doclean;
46+
echo $(BUILD_ORDER);
47+
@$(MAKE) doclean;
48+
49+
.DEFAULT:
50+
@for i in $(BUILD_ORDER) ;do \
51+
echo $(MAKE) $@ in $$i ; \
52+
cd $$i ; \
53+
$(MAKE) $(MFLAGS) $@ || exit ; \
54+
cd .. ; \
55+
done
56+
57+
.DELETE_ON_ERROR:

TEST/Makefile

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FAKE_ALL: all
2+
3+
all: test
4+
5+
install: test
6+
7+
dotest: test
8+
9+
clean doclean:
10+
rm -f run.output run.stderr diff.out
11+
12+
TEST_FILE = complete.5.8.lef
13+
14+
TEST_GOLD = complete.5.8.lef.au
15+
16+
test: ../bin/lefrw
17+
../bin/lefrw -65nm -lef58 $(TEST_FILE) > run.output 2> run.stderr
18+
diff run.output $(TEST_GOLD) && echo TEST PASSED

0 commit comments

Comments
 (0)