Skip to content

Commit

Permalink
original files downloaded from si2 website https://www.si2.org/opened…
Browse files Browse the repository at this point in the history
  • Loading branch information
li3939108 committed Mar 30, 2016
0 parents commit e832cec
Show file tree
Hide file tree
Showing 158 changed files with 63,380 additions and 0 deletions.
13 changes: 13 additions & 0 deletions LICENSE.TXT
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2012 - 2016, Cadence Design Systems

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
57 changes: 57 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# $Source: /usr1/mfg/3.4C/solaris_bld/group/util/makefiles/RCS/dir.mk,v $
#
# $Author: wanda $
# $Revision: #3 $
# $Date: 2004/09/29 $
# $State: Exp $
#

.PHONY: all
all: install release

BUILD_ORDER = \
def \
cdef \
cdefzlib \
defzlib \
defrw \
defwrite \
defdiff

## HP-UX 9.0.X
OS_TYPE := $(shell uname)
ifeq ($(OS_TYPE),HP-UX)
OPTIMIZE_FLAG = +O2
else
OS_VER := $(shell uname -r)
ifeq ($(findstring 4.1,$(OS_VER)),4.1)
OPTIMIZE_FLAG = -O
else
OPTIMIZE_FLAG = -O
endif
endif

install:
@$(MAKE) $(MFLAGS) installhdrs installlib installbin

release:
@$(MAKE) "DEBUG=$(OPTIMIZE_FLAG)" install

test:
@$(MAKE) "BUILD_ORDER=TEST" dotest

.PHONY: clean
clean:
@$(MAKE) "BUILD_ORDER += TEST" doclean;
echo $(BUILD_ORDER);
@$(MAKE) doclean;

.DEFAULT:
@for i in $(BUILD_ORDER) ;do \
echo $(MAKE) $@ in $$i ; \
cd $$i ; \
$(MAKE) $(MFLAGS) $@ ; \
cd .. ; \
done

.DELETE_ON_ERROR:
18 changes: 18 additions & 0 deletions TEST/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FAKE_ALL: all

all: test

install: test

dotest: test

clean doclean:
rm -f run.output run.stderr diff.out

TEST_FILE = complete.5.8.def

TEST_GOLD = complete.5.8.def.au

test: ../bin/defrw
../bin/defrw $(TEST_FILE) > run.output 2> run.stderr
diff run.output $(TEST_GOLD) && echo TEST PASSED
Loading

0 comments on commit e832cec

Please sign in to comment.