makefile
Jamey Sharp
jamey at gabe.freedesktop.org
Mon Oct 31 15:09:13 PST 2005
Update of /cvs/xtest/xtest/src/tet3/tcmthrshlib
In directory gabe:/tmp/cvs-serv27930/src/tet3/tcmthrshlib
Added Files:
makefile
Log Message:
Importing TET 3.3h (unsupported) sources from http://tetworks.opengroup.org/tet/tet3.3h-unsup.src.tgz.
Omitted the contrib directory: we don't care, and the license situation wasn't entirely clear.
--- NEW FILE: makefile ---
#
# SCCS: @(#)makefile 1.1 (98/09/02)
#
# UniSoft Ltd., London, England
#
# Copyright (c) 1998 The Open Group
# All rights reserved.
#
# No part of this source code may be reproduced, stored in a retrieval
# system, or transmitted, in any form or by any means, electronic,
# mechanical, photocopying, recording or otherwise, except as stated in
# the end-user licence agreement, without the prior permission of the
# copyright owners.
# A copy of the end-user licence agreement is contained in the file
# Licence which accompanies this distribution.
#
# Motif, OSF/1, UNIX and the "X" device are registered trademarks and
# IT DialTone and The Open Group are trademarks of The Open Group in
# the US and other countries.
#
# X/Open is a trademark of X/Open Company Limited in the UK and other
# countries.
#
# ************************************************************************
#
# SCCS: @(#)makefile 1.1 98/09/02 TETware release 3.3
# NAME: makefile
# PRODUCT: TETware
# AUTHOR: Andrew Dingwall, UniSoft Ltd.
# DATE CREATED: August 1998
#
# DESCRIPTION:
# makefile used to build the static part of the
# thead-safe API shared library
#
# MODIFICATIONS:
#
# ************************************************************************
include ../../defines.mk
include ../ts.mk
LOCAL_TET_CDEFS = $(TET_THR_CDEFS)
LOCAL_DTET_CDEFS = $(DTET_THR_CDEFS)
LOCAL_CDEFS = -DTET_THREADS -DTET_SHLIB
LOCAL_COPTS = $(THR_COPTS)
LOCAL_CC = $(CC)
# TET_CFLAGS and DTET_CFLAGS are set in ../common.mk
include ../common.mk
LIBNAME = $(LIB)/libthrtcm_s$A
# generic C build targets
ALL_GN = tcm$O tcmchild$O
TARGETS_GN = $(LIB)/thrtcm_s$O $(LIB)/thrtcmchild_s$O
# additional targets when building the TCM in Distributed TETware
# (tcmrem$O isn't supported in a thread-safe API)
ALL_DIST =
TARGETS_DIST_S =
# this sets TCM_OFILES_TS
include ../tcm/ts.mk
# C build targets
ALL = $(ALL_GN)
TARGETS = $(TARGETS_GN)
# C++ build targets
# (tcmrem$O isn't supported in the C++ API)
ALLC = Ctcm$O Ctcmchild$O
TARGETSC = $(LIB)/Cthrtcm_s$O $(LIB)/Cthrtcmchild_s$O
all: $(ALL) lib_made
allC: $(ALLC)
install: $(TARGETS) lib_made
installC: $(TARGETSC)
# tcm/shared.mk contains a definition of TCM_STATIC_OFILES
TCMSRC = ../tcm/
APISHLIBSRC = ../apithrshlib/
include ../tcm/shared.mk
# apilib/shared.mk contains a definition of API_STATIC_THR_OFILES
APISRC = ../apilib/
include ../apilib/shared.mk
$(LIB)/thrtcm_s$O: tcm$O
cp $? $@
$(LIB)/thrtcmchild_s$O: tcmchild$O
cp $? $@
$(LIB)/Cthrtcm_s$O: Ctcm$O
cp $? $@
$(LIB)/Cthrtcmchild_s$O: Ctcmchild$O
cp $? $@
OFILES = $(TCM_STATIC_OFILES) $(API_STATIC_THR_OFILES)
lib_made: $(OFILES)
if test -f lib_made; then \
$(AR) rv $(LIBNAME) $? ;\
else \
$(AR) rv $(LIBNAME) `$(LORDER) $(OFILES) | $(TSORT)` ;\
fi
$(RANLIB) $(LIBNAME)
touch lib_made
.PRECIOUS: $(LIBNAME)
CLEAN clean:
rm -f $(ALL) $(ALLC) $(OFILES) dynlink_gen_made
CLOBBER clobber: clean
rm -f $(TARGETS) $(TARGETSC) $(LIBNAME) lib_made
FORCE FRC: clobber all
# remove suffix rules from this makefile
# all .o files are made by explicit rules
.SUFFIXES:
.SUFFIXES: .none
More information about the xorg-test-commit
mailing list