1# =========================================================================== 2# 3# PUBLIC DOMAIN NOTICE 4# National Center for Biotechnology Information 5# 6# This software/database is a "United States Government Work" under the 7# terms of the United States Copyright Act. It was written as part of 8# the author's official duties as a United States Government employee and 9# thus cannot be copyrighted. This software/database is freely available 10# to the public for use. The National Library of Medicine and the U.S. 11# Government have not placed any restriction on its use or reproduction. 12# 13# Although all reasonable efforts have been taken to ensure the accuracy 14# and reliability of the software and data, the NLM and the U.S. 15# Government do not and cannot warrant the performance or results that 16# may be obtained by using this software or data. The NLM and the U.S. 17# Government disclaim all warranties, express or implied, including 18# warranties of performance, merchantability or fitness for any particular 19# purpose. 20# 21# Please cite the author in any work or product based on this material. 22# 23# =========================================================================== 24 25default: all 26 27TOP ?= $(abspath ../..) 28MODULE = libs/diagnose 29 30INT_LIBS = \ 31 32EXT_LIBS = \ 33 libdiagnose 34 35ALL_LIBS = \ 36 $(INT_LIBS) \ 37 $(EXT_LIBS) 38 39OBJFILES = \ 40 $(KDIAGNOSE_OBJ) 41 42include $(TOP)/build/Makefile.env 43 44#------------------------------------------------------------------------------- 45# outer targets 46# 47all std: makedirs compile 48 @ $(MAKE_CMD) $(TARGDIR)/std 49 50$(INT_LIBS): makedirs 51 @ $(MAKE_CMD) $(ILIBDIR)/$@ 52 53$(EXT_LIBS): makedirs 54 @ $(MAKE_CMD) $(LIBDIR)/$@ 55 56.PHONY: all std $(ALL_LIBS) 57 58#------------------------------------------------------------------------------- 59# std 60# 61$(TARGDIR)/std: \ 62 $(addprefix $(ILIBDIR)/,$(INT_LIBS)) \ 63 $(addprefix $(LIBDIR)/,$(EXT_LIBS)) 64 65.PHONY: $(TARGDIR)/std 66 67#------------------------------------------------------------------------------- 68# clean 69# 70clean: stdclean 71 72.PHONY: clean 73 74#------------------------------------------------------------------------------- 75# diagnose 76# 77$(LIBDIR)/libdiagnose: $(addprefix $(LIBDIR)/libdiagnose.,$(LIBEXT)) 78 79KDIAGNOSE_SRC = \ 80 diagnose \ 81 endpoint \ 82 83KDIAGNOSE_OBJ = \ 84 $(addsuffix .$(LOBX),$(KDIAGNOSE_SRC)) 85 86$(LIBDIR)/libdiagnose.$(SHLX): $(KDIAGNOSE_OBJ) 87 $(LD) --dlib --vers $(SRCDIR)/../ncbi-vdb/libncbi-vdb.vers -o $@ $^ 88 89$(LIBDIR)/libdiagnose.$(LIBX): $(KDIAGNOSE_OBJ) 90 $(LD) --slib --vers $(SRCDIR)/../ncbi-vdb/libncbi-vdb.vers -o $@ $^ 91 92compile: stdcompile 93 94$(TARGDIR)/compile: $(OBJFILES) 95