Commit 71180376 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Initial import of Solaris build structure for unmodsqz.

parent 442bbac5
# Copyright 2000 Pace Micro Technology plc
#
# 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.
#
# Makefile for unmodsqz
#
# ***********************************
# *** C h a n g e L i s t ***
# ***********************************
# Date Name Description
# ---- ---- -----------
# 18 Aug 00 SNB Created
#
#
# Paths
#
EXP_HDR = <cexport$dir>
#
# Generic options:
#
AWK = awk
MKDIR = mkdir
CC = gcc
LD = gcc
RM = -rm
WIPE = -rm
CD = cd
TOUCH = touch
STRIP = strip
COMPONENT = unmodsqz
#
# Internet version compatibility
#
DEFINES = ${OPTIONS}
CFLAGS = -c -g ${DEFINES} ${INCLUDES} ${DEPENDS}
WFLAGS = -rf
#
# Libraries
#
CLIB =
#
# Include files
#
INCLUDES = -I${CLXPATH}
#
# Program specific options:
#
TARGET = ${COMPONENT}
OBJS = unsqueezec.o unmodsqz.o
#
# Rule patterns
#
.SUFFIXES: .o .c
.c.o:; ${CC} ${CFLAGS} -o $@ $<
#
# build modsqz
#
all: ${TARGET}
@echo ${COMPONENT}: all complete
clean:
${WIPE} ${WFLAGS} *.o
${RM} ${TARGET}
@echo ${COMPONENT}: cleaned
#
# Target
#
${TARGET}: ${OBJS} ${CLIB}
${LD} -o $@ ${LDFLAGS} ${OBJS} ${CLXPATH}/clx.a ${CLIB}
${STRIP} $@
# Dynamic dependencies:
#!/usr/local/bin/bash
# usage: wantlink source dest
wantlink()
{
dir=$1
ext=$2
file=$3
source="../../$dir/$ext/$file";
dest="$file.$ext";
if [ ! -L $dest ];
then
echo ln -s $source $dest
ln -s $source $dest
fi
}
if [ ! -L VersionNum ];
then
echo ln -s ../../VersionNum VersionNum
ln -s ../../VersionNum VersionNum
fi
wantlink . c unmodsqz
wantlink . c unsqueezec
wantlink . h unmodsqz
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment