]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[DAPL2] remove Linux Makefiles
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 17 Jan 2008 23:13:14 +0000 (23:13 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 17 Jan 2008 23:13:14 +0000 (23:13 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@927 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/dapl2/dapl/udapl/Makefile.linux [deleted file]
trunk/ulp/dapl2/dat/udat/Makefile.linux [deleted file]

diff --git a/trunk/ulp/dapl2/dapl/udapl/Makefile.linux b/trunk/ulp/dapl2/dapl/udapl/Makefile.linux
deleted file mode 100644 (file)
index 94569c6..0000000
+++ /dev/null
@@ -1,444 +0,0 @@
-#\r
-# Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.\r
-#\r
-# This Software is licensed under one of the following licenses:\r
-#\r
-# 1) under the terms of the "Common Public License 1.0" a copy of which is\r
-#    in the file LICENSE.txt in the root directory. The license is also\r
-#    available from the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/cpl.php.\r
-#\r
-# 2) under the terms of the "The BSD License" a copy of which is in the file\r
-#    LICENSE2.txt in the root directory. The license is also available from\r
-#    the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/bsd-license.php.\r
-#\r
-# 3) under the terms of the "GNU General Public License (GPL) Version 2" a \r
-#    copy of which is in the file LICENSE3.txt in the root directory. The \r
-#    license is also available from the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/gpl-license.php.\r
-#\r
-# Licensee has the right to choose one of the above licenses.\r
-#\r
-# Redistributions of source code must retain the above copyright\r
-# notice and one of the license notices.\r
-#\r
-# Redistributions in binary form must reproduce both the above copyright\r
-# notice, one of the license notices in the documentation\r
-# and/or other materials provided with the distribution.\r
-#\r
-\r
-#**********************************************************************\r
-#\r
-# MODULE: Makefile\r
-#\r
-# PURPOSE: Makefile for dapl reference provider\r
-#\r
-# $Id: Makefile 1367 2005-12-05 16:48:37Z jlentini $\r
-#*********************************************************************/\r
-\r
-TOPDIR = $(shell /bin/pwd)\r
-\r
-SRC_PATH    = $(TOPDIR)\r
-OBJ_PATH    = $(TOPDIR)/Obj\r
-TARGET_PATH = $(TOPDIR)/Target\r
-\r
-TARGET = $(TARGET_PATH)/libdapl.so\r
-STATIC = $(TARGET_PATH)/libdapl.a\r
-COMMON = $(TOPDIR)/../common\r
-LINUX  = $(TOPDIR)/../udapl/linux\r
-CC = gcc\r
-\r
-MACH=$(shell uname -m)\r
-OSRELEASE=$(shell expr `uname -r | cut -f1 -d.` \* 65536 + `uname -r | cut -f2 -d.`)\r
-\r
-#\r
-# Set up the default provider\r
-#\r
-ifndef $VERBS\r
-VERBS=openib_cma\r
-endif\r
-\r
-#\r
-# Set an OS Vendor \r
-#\r
-# OS_VENDOR = REDHAT_EL4\r
-# OS_VENDOR = SuSE\r
-#\r
-\r
-#\r
-# CFLAGS definition\r
-#\r
-# The makefile will build for multiple providers, but each provider\r
-# must have a set of compiler definitions that include, but are not \r
-# limited to:\r
-#\r
-#  PROVIDER    Directory of provider sources\r
-#  CFLAGS      Compile time flags for build\r
-#\r
-\r
-CFLAGS  = -O2 $(CPPFLAGS) -DOS_VERSION=$(OSRELEASE) -DDAPL_DBG\r
-\r
-ifdef OS_VENDOR\r
-CFLAGS += -D$(OS_VENDOR)\r
-endif\r
-\r
-#\r
-# dummy provider\r
-#\r
-ifeq ($(VERBS),dummy)\r
-PROVIDER = $(TOPDIR)/../dummy\r
-CFLAGS   += -DDAPL_ATS -DDUMMY\r
-endif\r
-\r
-#\r
-# JNI Provider\r
-#\r
-ifeq ($(VERBS),jni)\r
-PROVIDER = $(TOPDIR)/../ibapi\r
-CFLAGS   += -DDAPL_ATS -DIBAPI # -DCM_BUSTED\r
-CFLAGS   += -I../include/ib/IBM \r
-CFLAGS   += -I../include/ib/IBM/us\r
-endif\r
-\r
-#\r
-# Mellanox Provider\r
-#\r
-ifeq ($(VERBS),mellanox)\r
-DAPL_IBLIB_DIR = /usr/mellanox/lib\r
-PROVIDER = $(TOPDIR)/../vapi\r
-CFLAGS   += -DVAPI -DSMR_BUSTED  # -DCM_BUSTED  # -DMW_BUSTED \r
-#CFLAGS += -DIBHOSTS_NAMING\r
-#CFLAGS   += -I/usr/mellanox/include\r
-CFLAGS   += -I../include/ib/MELLANOX\r
-endif\r
-\r
-#\r
-# OpenIB Gen one provider\r
-#\r
-ifeq ($(VERBS),openib_gen_one)\r
-OPENIB_UNAME=$(shell uname -r)\r
-\r
-OPENIB_USER_DIR ?= /usr/local/ibgd\r
-OPENIB_KERNEL_DIR ?= /lib/modules/$(OPENIB_UNAME)/build/drivers/infiniband\r
-OPENIB_THCA_DIR ?= $(OPENIB_USER_DIR)/driver/infinihost\r
-\r
-PROVIDER = $(TOPDIR)/../openib_gen_one\r
-CFLAGS   += -D__OPENIB__ -DSMR_BUSTED  # -DMW_BUSTED \r
-CFLAGS   += -DDAPL_ATS \r
-CFLAGS   += -I$(OPENIB_KERNEL_DIR)/include\r
-CFLAGS   += -I$(OPENIB_KERNEL_DIR)/ulp/dapl_srv\r
-CFLAGS   += -I$(OPENIB_USER_DIR)/driver/infinihost/include\r
-endif\r
-\r
-#\r
-# OpenIB provider\r
-#\r
-ifeq ($(VERBS),openib)\r
-PROVIDER = $(TOPDIR)/../openib\r
-CFLAGS   += -DOPENIB\r
-CFLAGS   += -DCQ_WAIT_OBJECT \r
-CFLAGS   += -I/usr/local/include/infiniband\r
-endif\r
-\r
-#\r
-# OpenIB provider with Socket CM\r
-#\r
-ifeq ($(VERBS),openib_scm)\r
-PROVIDER = $(TOPDIR)/../openib_scm\r
-CFLAGS   += -DOPENIB\r
-CFLAGS   += -DCQ_WAIT_OBJECT\r
-CFLAGS   += -I/usr/local/include/infiniband\r
-endif\r
-\r
-#\r
-# OpenIB provider with IB CMA\r
-#\r
-ifeq ($(VERBS),openib_cma)\r
-PROVIDER = $(TOPDIR)/../openib_cma\r
-CFLAGS   += -DOPENIB\r
-CFLAGS   += -DCQ_WAIT_OBJECT\r
-CFLAGS   += -DDAT_EXTENSIONS\r
-CFLAGS   += -I/usr/local/include/infiniband\r
-endif\r
-\r
-#\r
-# If an implementation supports CM and DTO completions on the same EVD\r
-# then DAPL_MERGE_CM_DTO should be set\r
-# CFLAGS       += -DDAPL_MERGE_CM_DTO=1\r
-\r
-#\r
-# If an implementation supports Shared Memory, enable \r
-# VN_MEM_SHARED_VIRTUAL_SUPPORT \r
-# CFLAGS       += -DVN_MEM_SHARED_VIRTUAL_SUPPORT=1\r
-\r
-CFLAGS   += -I. \r
-CFLAGS   += -I.. \r
-CFLAGS   += -I../../dat/include \r
-CFLAGS   += -I../include \r
-\r
-CFLAGS   += -I$(PROVIDER)\r
-CFLAGS   += -I../udapl/linux \r
-CFLAGS   += -I../common \r
-CFLAGS   += -Wall\r
-CFLAGS   += -Wstrict-prototypes\r
-CFLAGS   += -Wmissing-prototypes\r
-CFLAGS   += -Wmissing-declarations\r
-CFLAGS   += --no-strict-aliasing\r
-CFLAGS   += -Werror\r
-CFLAGS   += -g3\r
-CFLAGS   += -fPIC\r
-\r
-ifdef GPROF\r
-CFLAGS   += -pg\r
-endif\r
-\r
-LD = ld\r
-\r
-#\r
-# LDFLAGS definition\r
-#\r
-LDFLAGS  = -shared\r
-LDFLAGS += -lpthread\r
-LDFLAGS += -init dapl_init\r
-LDFLAGS += -fini dapl_fini\r
-ifeq ($(OS_VENDOR),SuSE)\r
-LDFLAGS += -lgcc_s\r
-endif\r
-\r
-\r
-AR = ar\r
-#\r
-# ARFLAGS definition\r
-#\r
-ARFLAGS = r\r
-\r
-#\r
-# To build with JNI verbs:      make VERBS=jni [default]\r
-# To build with Mellanox verbs: make VERBS=mellanox\r
-# To build with XYZ verbs:      make VERBS=XYZ\r
-#\r
-# Verb libraries should be in /usr/lib or vendor specified directories\r
-#\r
-\r
-# Allow specification in the environment of a location for the\r
-# verbs library, to allow running DAPL without installing \r
-# the verbs library in /usr/lib.  For development.\r
-ifneq (${DAPL_IBLIB_DIR},)\r
-LDFLAGS += -L${DAPL_IBLIB_DIR} -R${DAPL_IBLIB_DIR}\r
-endif\r
-\r
-ifeq ($(VERBS),dummy)\r
-PROVIDER_SRCS =  dapl_dummy_util.c\r
-endif\r
-\r
-ifeq ($(VERBS),ibm)\r
-CFLAGS  += -D_IBM -DIBM\r
-LDFLAGS += -lIBusd\r
-LDFLAGS += -lIBlueHCAd \r
-LDFLAGS += -ldl\r
-PROVIDER_SRCS =  dapl_ibapi_util.c dapl_ibapi_qp.c dapl_ibapi_cm.c\r
-endif\r
-\r
-ifeq ($(VERBS),jni)\r
-CFLAGS  += -DJNI\r
-LDFLAGS += -lJniTavorVerbs\r
-LDFLAGS += -lpthread\r
-LDFLAGS += -rpath /opt/JNIhca/lib/ -L /opt/JNIhca/lib/\r
-PROVIDER_SRCS =  dapl_ibapi_util.c dapl_ibapi_qp.c dapl_ibapi_cm.c\r
-endif\r
-\r
-ifeq ($(VERBS),mellanox)\r
-CFLAGS  += -DMTL_MODULE=M_dapl -DMAX_TRACE=8 -DMAX_DEBUG=8 -DMAX_ERROR=8\r
-PROVIDER_SRCS =  dapl_vapi_util.c dapl_vapi_qp.c dapl_vapi_cm.c\r
-LDFLAGS += -lvapi\r
-LDFLAGS += -lmpga\r
-LDFLAGS += -lmtl_common\r
-LDFLAGS += -lcm\r
-endif\r
-\r
-ifeq ($(VERBS),openib_gen_one)\r
-CFLAGS  += -DMTL_MODULE=M_dapl -DMAX_TRACE=8 -DMAX_DEBUG=8 -DMAX_ERROR=8\r
-LDFLAGS += -lvapi\r
-LDFLAGS += -lmpga\r
-LDFLAGS += -lmtl_common\r
-LDFLAGS += -lcm\r
-LDFLAGS += -L$(OPENIB_USER_DIR)/lib  -L$(OPENIB_THCA_DIR)/lib\r
-PROVIDER_SRCS  = dapl_openib.c dapl_openib_qp.c \r
-PROVIDER_SRCS += dapl_openib_util.c dapl_openib_cm.c dapl_openib_cm_util_user.c\r
-endif\r
-\r
-ifeq ($(VERBS),openib)\r
-LDFLAGS += -libverbs -libcm -libat\r
-LDFLAGS += -rpath /usr/local/lib -L /usr/local/lib\r
-PROVIDER_SRCS  = dapl_ib_util.c dapl_ib_cq.c dapl_ib_qp.c \r
-PROVIDER_SRCS += dapl_ib_cm.c dapl_ib_mem.c\r
-endif\r
-\r
-ifeq ($(VERBS),openib_scm)\r
-LDFLAGS += -libverbs\r
-LDFLAGS += -rpath /usr/local/lib -L /usr/local/lib\r
-PROVIDER_SRCS  = dapl_ib_util.c dapl_ib_cq.c dapl_ib_qp.c \\r
-                 dapl_ib_cm.c dapl_ib_mem.c\r
-endif\r
-\r
-ifeq ($(VERBS),openib_cma)\r
-LDFLAGS += -libverbs -lrdmacm\r
-LDFLAGS += -rpath /usr/local/lib -L /usr/local/lib\r
-PROVIDER_SRCS  = dapl_ib_util.c dapl_ib_cq.c dapl_ib_qp.c \\r
-                 dapl_ib_cm.c dapl_ib_mem.c\r
-endif\r
-\r
-UDAPL_SRCS =   dapl_init.c             \\r
-       dapl_evd_create.c               \\r
-       dapl_evd_query.c                \\r
-       dapl_cno_create.c               \\r
-       dapl_cno_modify_agent.c         \\r
-       dapl_cno_free.c                 \\r
-       dapl_cno_wait.c                 \\r
-       dapl_cno_query.c                \\r
-       dapl_lmr_create.c               \\r
-       dapl_evd_wait.c                 \\r
-       dapl_evd_disable.c              \\r
-       dapl_evd_enable.c               \\r
-       dapl_evd_modify_cno.c           \\r
-       dapl_evd_set_unwaitable.c       \\r
-       dapl_evd_clear_unwaitable.c\r
-\r
-COMMON_SRCS =  dapl_cookie.c           \\r
-       dapl_cr_accept.c                \\r
-       dapl_cr_query.c                 \\r
-       dapl_cr_reject.c                \\r
-       dapl_cr_util.c                  \\r
-       dapl_cr_callback.c              \\r
-       dapl_cr_handoff.c               \\r
-       dapl_ep_connect.c               \\r
-       dapl_ep_create.c                \\r
-       dapl_ep_disconnect.c            \\r
-       dapl_ep_dup_connect.c           \\r
-       dapl_ep_free.c                  \\r
-       dapl_ep_reset.c                 \\r
-       dapl_ep_get_status.c            \\r
-       dapl_ep_modify.c                \\r
-       dapl_ep_post_rdma_read.c        \\r
-       dapl_ep_post_rdma_write.c       \\r
-       dapl_ep_post_recv.c             \\r
-       dapl_ep_post_send.c             \\r
-       dapl_ep_query.c                 \\r
-       dapl_ep_util.c                  \\r
-       dapl_evd_dequeue.c              \\r
-       dapl_evd_free.c                 \\r
-       dapl_evd_post_se.c              \\r
-       dapl_evd_resize.c               \\r
-       dapl_evd_util.c                 \\r
-       dapl_evd_cq_async_error_callb.c \\r
-       dapl_evd_qp_async_error_callb.c \\r
-       dapl_evd_un_async_error_callb.c \\r
-       dapl_evd_connection_callb.c     \\r
-       dapl_evd_dto_callb.c            \\r
-       dapl_get_consumer_context.c     \\r
-       dapl_get_handle_type.c          \\r
-        dapl_hash.c                            \\r
-       dapl_hca_util.c                 \\r
-       dapl_ia_close.c                 \\r
-       dapl_ia_open.c                  \\r
-       dapl_ia_query.c                 \\r
-       dapl_ia_util.c                  \\r
-       dapl_llist.c                    \\r
-       dapl_lmr_free.c                 \\r
-       dapl_lmr_query.c                \\r
-       dapl_lmr_util.c                 \\r
-       dapl_lmr_sync_rdma_read.c       \\r
-       dapl_lmr_sync_rdma_write.c      \\r
-       dapl_mr_util.c                  \\r
-       dapl_provider.c                 \\r
-       dapl_sp_util.c                  \\r
-       dapl_psp_create.c               \\r
-       dapl_psp_create_any.c           \\r
-       dapl_psp_free.c                 \\r
-       dapl_psp_query.c                \\r
-       dapl_pz_create.c                \\r
-       dapl_pz_free.c                  \\r
-       dapl_pz_query.c                 \\r
-       dapl_pz_util.c                  \\r
-       dapl_rmr_create.c               \\r
-       dapl_rmr_free.c                 \\r
-       dapl_rmr_bind.c                 \\r
-       dapl_rmr_query.c                \\r
-       dapl_rmr_util.c                 \\r
-       dapl_rsp_create.c               \\r
-       dapl_rsp_free.c                 \\r
-       dapl_rsp_query.c                \\r
-       dapl_cno_util.c                 \\r
-       dapl_set_consumer_context.c     \\r
-       dapl_ring_buffer_util.c         \\r
-       dapl_name_service.c             \\r
-       dapl_timer_util.c               \\r
-       dapl_ep_create_with_srq.c       \\r
-       dapl_ep_recv_query.c            \\r
-       dapl_ep_set_watermark.c         \\r
-       dapl_srq_create.c               \\r
-       dapl_srq_free.c                 \\r
-       dapl_srq_query.c                \\r
-       dapl_srq_resize.c               \\r
-       dapl_srq_post_recv.c            \\r
-       dapl_srq_set_lw.c               \\r
-       dapl_srq_util.c                 \\r
-       dapl_debug.c\r
-\r
-LINUX_SRCS =   dapl_osd.c\r
-\r
-SRCS = $(UDAPL_SRCS) $(COMMON_SRCS) $(LINUX_SRCS) $(PROVIDER_SRCS)\r
-\r
-UDAPL_OBJS    = $(UDAPL_SRCS:%.c=$(OBJ_PATH)/%.o)\r
-COMMON_OBJS   = $(COMMON_SRCS:%.c=$(OBJ_PATH)/%.o)\r
-LINUX_OBJS    = $(LINUX_SRCS:%.c=$(OBJ_PATH)/%.o)\r
-PROVIDER_OBJS = $(PROVIDER_SRCS:%.c=$(OBJ_PATH)/%.o)\r
-\r
-OBJS = $(UDAPL_OBJS) $(COMMON_OBJS) $(LINUX_OBJS) $(PROVIDER_OBJS)\r
-\r
-\r
-all: mkdirs $(TARGET) $(STATIC) MAKE_DONE\r
-\r
-mkdirs:\r
-       @[ -d $(TARGET_PATH) ] || /bin/mkdir -p $(TARGET_PATH)\r
-       @[ -d $(OBJ_PATH) ] || /bin/mkdir -p $(OBJ_PATH)\r
-\r
-$(UDAPL_OBJS): $(OBJ_PATH)/%.o : %.c\r
-       @echo Compiling $<\r
-       $(CC) $(CFLAGS) -c $< -o $@\r
-\r
-$(COMMON_OBJS): $(OBJ_PATH)/%.o : $(COMMON)/%.c\r
-       @echo Compiling $<\r
-       $(CC) $(CFLAGS) -c $< -o $@\r
-\r
-$(LINUX_OBJS): $(OBJ_PATH)/%.o : $(LINUX)/%.c\r
-       @echo Compiling $<\r
-       $(CC) $(CFLAGS) -c $< -o $@\r
-\r
-$(PROVIDER_OBJS): $(OBJ_PATH)/%.o : $(PROVIDER)/%.c\r
-       @echo Compiling $<\r
-       $(CC) $(CFLAGS) -c $< -o $@\r
-\r
-$(TARGET): $(OBJS)\r
-       @echo Linking $(TARGET)\r
-       $(LD) $(LDFLAGS) $^ -o $(TARGET)\r
-\r
-$(STATIC): $(OBJS)\r
-       @echo Archiving $(STATIC)\r
-       @$(AR) $(ARFLAGS) $(STATIC) $^\r
-\r
-MAKE_DONE:\r
-       @echo "--- Make done ----"\r
-\r
-clean: \r
-       rm -f $(OBJS)\r
-       rm -f $(TARGET) $(STATIC)\r
-\r
-tidy:\r
-       rm -f *~\r
-       rm -f ../common/*~\r
-       rm -f ../include/*~\r
-       rm -f ../vapi/*~\r
-       rm -f ../ibapi/*~\r
-       rm -f linux/*~\r
diff --git a/trunk/ulp/dapl2/dat/udat/Makefile.linux b/trunk/ulp/dapl2/dat/udat/Makefile.linux
deleted file mode 100644 (file)
index 3947588..0000000
+++ /dev/null
@@ -1,256 +0,0 @@
-#\r
-# Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.\r
-#\r
-# This Software is licensed under one of the following licenses:\r
-#\r
-# 1) under the terms of the "Common Public License 1.0" a copy of which is\r
-#    in the file LICENSE.txt in the root directory. The license is also\r
-#    available from the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/cpl.php.\r
-#\r
-# 2) under the terms of the "The BSD License" a copy of which is in the file\r
-#    LICENSE2.txt in the root directory. The license is also available from\r
-#    the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/bsd-license.php.\r
-#\r
-# 3) under the terms of the "GNU General Public License (GPL) Version 2" a \r
-#    copy of which is in the file LICENSE3.txt in the root directory. The \r
-#    license is also available from the Open Source Initiative, see\r
-#    http://www.opensource.org/licenses/gpl-license.php.\r
-#\r
-# Licensee has the right to choose one of the above licenses.\r
-#\r
-# Redistributions of source code must retain the above copyright\r
-# notice and one of the license notices.\r
-#\r
-# Redistributions in binary form must reproduce both the above copyright\r
-# notice, one of the license notices in the documentation\r
-# and/or other materials provided with the distribution.\r
-#\r
-\r
-#*********************************************************************\r
-# \r
-# MODULE: Makefile\r
-#\r
-# PURPOSE: Makefile for DAT registration module\r
-#\r
-# $Id: Makefile 1301 2005-03-24 05:58:55Z jlentini $\r
-#*********************************************************************/\r
-\r
-\r
-#AT = @\r
-ARCH := $(shell uname -m)\r
-UDAT_ROOT := $(shell /bin/pwd)\r
-UDAT_LINUX := $(UDAT_ROOT)/linux\r
-UDAT_COMMON := $(UDAT_ROOT)/../common\r
-\r
-DAT_ROOT := $(UDAT_ROOT)/..\r
-DAT_HEADERS := $(DAT_ROOT)/include\r
-DAT_HEADERS_SYSTEM_PATH := $(PREFIX)/usr/include/dat\r
-\r
-VPATH = $(UDAT_ROOT) $(UDAT_LINUX) $(UDAT_COMMON)\r
-\r
-OBJ_PATH = $(UDAT_ROOT)/Obj/$(ARCH)\r
-TARGET_PATH = $(UDAT_ROOT)/Target/$(ARCH)\r
-OBJ_PATH32 = $(UDAT_ROOT)/Obj/$(ARCH).32bit\r
-TARGET_PATH32 = $(UDAT_ROOT)/Target/$(ARCH).32bit\r
-\r
-STATIC = $(TARGET_PATH)/libdat.a\r
-DYNAMIC = $(TARGET_PATH)/libdat.so\r
-STATIC32 = $(TARGET_PATH32)/libdat.a\r
-DYNAMIC32 = $(TARGET_PATH32)/libdat.so\r
-\r
-ifeq "$(ARCH)" "x86_64"\r
-#DUAL_ARCH = true\r
-endif\r
-\r
-OBJS =         $(OBJ_PATH)/udat.o \\r
-       $(OBJ_PATH)/udat_api.o \\r
-       $(OBJ_PATH)/dat_api.o \\r
-       $(OBJ_PATH)/dat_osd.o \\r
-       $(OBJ_PATH)/dat_dictionary.o \\r
-       $(OBJ_PATH)/dat_dr.o \\r
-       $(OBJ_PATH)/dat_init.o \\r
-       $(OBJ_PATH)/dat_sr.o  \\r
-        $(OBJ_PATH)/udat_sr_parser.o \\r
-        $(OBJ_PATH)/dat_strerror.o \r
-\r
-OBJS32=        $(OBJ_PATH32)/udat.o \\r
-       $(OBJ_PATH32)/udat_api.o \\r
-       $(OBJ_PATH32)/dat_api.o \\r
-       $(OBJ_PATH32)/dat_osd.o \\r
-       $(OBJ_PATH32)/dat_dictionary.o \\r
-       $(OBJ_PATH32)/dat_dr.o \\r
-       $(OBJ_PATH32)/dat_init.o \\r
-       $(OBJ_PATH32)/dat_sr.o  \\r
-       $(OBJ_PATH32)/udat_sr_parser.o \\r
-       $(OBJ_PATH32)/dat_strerror.o \r
-\r
-#\r
-# CC definitions\r
-#\r
-\r
-CC = gcc\r
-\r
-CFLAGS   = -O $(CPPFLAGS)\r
-CFLAGS   += -g3\r
-CFLAGS   += -fPIC\r
-CFLAGS   += -I. \r
-CFLAGS   += -I../common \r
-CFLAGS   += -I./linux\r
-CFLAGS   += -I$(DAT_HEADERS)           \r
-CFLAGS   += -Wall\r
-CFLAGS   += -Wstrict-prototypes\r
-CFLAGS   += -Wmissing-prototypes\r
-CFLAGS   += -Wmissing-declarations\r
-CFLAGS   += -Werror\r
-ifdef GPROF\r
-CFLAGS   += -pg\r
-endif\r
-ifeq "$(ARCH)" "x86_64"\r
-CFLAGS32 = -m32\r
-endif\r
-\r
-CFLAGS   += -DDAT_EXTENSIONS \r
-\r
-#\r
-# LD definitions\r
-#\r
-\r
-LD = gcc\r
-\r
-LDFLAGS  = -shared\r
-LDFLAGS += -ldl\r
-ifeq "$(ARCH)" "x86_64"\r
-LDFLAGS32 = -m32\r
-endif\r
-\r
-\r
-#\r
-# AR definitions\r
-#\r
-\r
-AR = ar\r
-\r
-ARFLAGS  = r\r
-\r
-\r
-#\r
-# install definitions\r
-#\r
-\r
-INSTALL = install\r
-\r
-INSTALL_FLAGS += -p\r
-\r
-\r
-#\r
-# rpm definitions\r
-#\r
-\r
-RPM_FILE = dat-registry-1.1\r
-RPM_PATH = /tmp/$(RPM_FILE)-build\r
-\r
-\r
-#\r
-# Rules\r
-#\r
-\r
-ifdef DUAL_ARCH\r
-all: mkdirs $(DYNAMIC) $(STATIC) $(DYNAMIC32) $(STATIC32)\r
-else\r
-all: mkdirs $(DYNAMIC) $(STATIC)\r
-endif\r
-\r
-mkdirs:\r
-       $(AT)[ -d $(TARGET_PATH) ] || /bin/mkdir -p $(TARGET_PATH)\r
-       $(AT)[ -d $(OBJ_PATH) ] || /bin/mkdir -p $(OBJ_PATH)\r
-ifdef DUAL_ARCH\r
-       $(AT)[ -d $(TARGET_PATH32) ] || /bin/mkdir -p $(TARGET_PATH32)\r
-       $(AT)[ -d $(OBJ_PATH32) ] || /bin/mkdir -p $(OBJ_PATH32)\r
-endif\r
-\r
-$(OBJ_PATH)/%.o : %.c\r
-       @echo Compiling $<\r
-       $(AT)$(CC) $(CFLAGS) -c $< -o $@\r
-\r
-$(OBJ_PATH32)/%.o : %.c\r
-       @echo Compiling $<\r
-       $(AT)$(CC) $(CFLAGS) $(CFLAGS32) -c $< -o $@\r
-\r
-$(DYNAMIC): $(OBJS)\r
-       @echo Linking $(DYNAMIC)\r
-       $(AT)$(LD) $(LDFLAGS) $^ -o $(DYNAMIC)\r
-\r
-$(DYNAMIC32): $(OBJS32)\r
-       @echo Linking $(DYNAMIC32)\r
-       $(AT)$(LD) $(LDFLAGS) $(LDFLAGS32) $^ -o $(DYNAMIC32)\r
-\r
-$(STATIC): $(OBJS)\r
-       @echo Archiving $(STATIC)\r
-       $(AT)$(AR) $(ARFLAGS) $(STATIC) $^\r
-\r
-$(STATIC32): $(OBJS32)\r
-       @echo Archiving $(STATIC32)\r
-       $(AT)$(AR) $(ARFLAGS) $(STATIC32) $^\r
-\r
-rpm:   mkdirs\r
-       @echo Creating RPM\r
-       $(AT)if [ -d $(RPM_PATH) ]; then rm -rf $(RPM_PATH); fi; \\r
-       mkdir $(RPM_PATH); \\r
-       mkdir $(RPM_PATH)/SOURCES; \\r
-       mkdir $(RPM_PATH)/BUILD; \\r
-       mkdir $(RPM_PATH)/RPMS; \\r
-       mkdir $(RPM_PATH)/SPECS; \\r
-       case `uname -m` in \\r
-           i?86*)      ARCH_DIR=i386;;\\r
-           ia64*)      ARCH_DIR=ia64;;\\r
-           x86_64*)    ARCH_DIR=x86_64;;\\r
-           *)          echo "Unknown architecture: `uname -m`"; exit 1;;\\r
-       esac;\\r
-       mkdir $(RPM_PATH)/RPMS/$$ARCH_DIR; \\r
-       echo "%_topdir $(RPM_PATH)" > $(RPM_PATH)/rpmmacros; \\r
-       echo "macrofiles: /usr/lib/rpm/macros:/etc/rpm/macros:$(RPM_PATH)/rpmmacros" > $(RPM_PATH)/rpmrc; \\r
-       cd $(DAT_ROOT)/..; tar zcvf $(RPM_PATH)/SOURCES/$(RPM_FILE).tgz dat/* --exclude dat/udat/Target --exclude dat/udat/Obj; \\r
-       install -m 644 $(UDAT_LINUX)/$(RPM_FILE).spec $(RPM_PATH)/SPECS/; \\r
-       if [ -f /usr/bin/rpmbuild ]; then \\r
-           RPMBUILD=/usr/bin/rpmbuild;\\r
-       else\\r
-           RPMBUILD=rpm;\\r
-       fi;\\r
-       $$RPMBUILD -bb --rcfile $(RPM_PATH)/rpmrc --target=$$ARCH_DIR $(RPM_PATH)/SPECS/$(RPM_FILE).spec; \\r
-       if [ $$? != 0 ]; then \\r
-           echo "### ERROR: rpm failed:"; \\r
-           exit 1; \\r
-       fi; \\r
-       mv $(RPM_PATH)/RPMS/$$ARCH_DIR/*.rpm $(TARGET_PATH); \\r
-       rm -rf $(RPM_PATH)\r
-\r
-install: all\r
-ifdef DUAL_ARCH\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 755 $(DYNAMIC32) $(PREFIX)/usr/lib/libdat.so\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 644 $(STATIC32) $(PREFIX)/usr/lib/libdat.a\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 755 $(DYNAMIC) $(PREFIX)/usr/lib64/libdat.so\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 644 $(STATIC) $(PREFIX)/usr/lib64/libdat.a\r
-else\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 755 $(DYNAMIC) $(PREFIX)/usr/lib\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 644 $(STATIC) $(PREFIX)/usr/lib\r
-endif\r
-       $(INSTALL) $(INSTALL_FLAGS) -m 755 -d $(DAT_HEADERS_SYSTEM_PATH) \r
-       $(INSTALL) $(INSTALL_FLAGS) -m 644 $(DAT_HEADERS)/dat/*.h $(DAT_HEADERS_SYSTEM_PATH)\r
-\r
-clean: \r
-       rm -f $(OBJ_PATH)/*.o\r
-       rm -f $(TARGET_PATH)/*.rpm\r
-       rm -f $(DYNAMIC) \r
-       rm -f $(STATIC)\r
-ifdef DUAL_ARCH\r
-       rm -f $(OBJ_PATH32)/*.o\r
-       rm -f $(DYNAMIC32) \r
-       rm -f $(STATIC32)\r
-endif\r
-\r
-tidy:\r
-       rm -f $(UDAT_ROOT)/*~\r
-       rm -f $(UDAT_LINUX)/*~\r
-       rm -f $(UDAT_COMMON)/*~\r