Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rsyn: add local lefdef #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions rsyn/def/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 rsyn/def/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) $@ || exit ; \
cd .. ; \
done

.DELETE_ON_ERROR:
18 changes: 18 additions & 0 deletions rsyn/def/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