Home | History | Annotate | Line # | Download | only in include
      1      1.1     elric ########################################################################
      2      1.1     elric #
      3      1.1     elric # Copyright (c) 2009, Secure Endpoints Inc.
      4      1.1     elric # All rights reserved.
      5      1.1     elric # 
      6      1.1     elric # Redistribution and use in source and binary forms, with or without
      7      1.1     elric # modification, are permitted provided that the following conditions
      8      1.1     elric # are met:
      9      1.1     elric # 
     10      1.1     elric # - Redistributions of source code must retain the above copyright
     11      1.1     elric #   notice, this list of conditions and the following disclaimer.
     12      1.1     elric # 
     13      1.1     elric # - Redistributions in binary form must reproduce the above copyright
     14      1.1     elric #   notice, this list of conditions and the following disclaimer in
     15      1.1     elric #   the documentation and/or other materials provided with the
     16      1.1     elric #   distribution.
     17      1.1     elric # 
     18      1.1     elric # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     19      1.1     elric # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     20      1.1     elric # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
     21      1.1     elric # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
     22      1.1     elric # COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
     23      1.1     elric # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     24      1.1     elric # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     25      1.1     elric # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     26      1.1     elric # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27      1.1     elric # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     28      1.1     elric # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29      1.1     elric # POSSIBILITY OF SUCH DAMAGE.
     30      1.1     elric # 
     31      1.1     elric 
     32      1.1     elric RELDIR=include
     33      1.1     elric 
     34      1.1     elric SUBDIRS=kadm5 hcrypto gssapi
     35      1.1     elric 
     36      1.1     elric !include ../windows/NTMakefile.w32
     37  1.1.1.2    pettai !include ../windows/NTMakefile.version
     38      1.1     elric !include ../windows/NTMakefile.config
     39      1.1     elric 
     40      1.1     elric INCFILES=			\
     41      1.1     elric 	$(INCDIR)\config.h	\
     42      1.1     elric 	$(INCDIR)\crypto-headers.h	\
     43      1.1     elric 	$(INCDIR)\heim_threads.h	\
     44      1.1     elric 	$(INCDIR)\krb5-types.h	\
     45      1.1     elric 	$(INCDIR)\version.h
     46      1.1     elric 
     47      1.1     elric $(INCDIR)\krb5-types.h: $(OBJ)\bits.exe
     48      1.1     elric 	$(OBJ)\bits.exe $(INCDIR)\krb5-types.h
     49      1.1     elric 
     50      1.1     elric $(OBJ)\bits.exe: $(OBJ)\bits.obj
     51      1.1     elric 	$(EXECONLINK)
     52      1.1     elric 	$(EXEPREP_NODIST)
     53      1.1     elric 
     54  1.1.1.2    pettai $(INCDIR)\config.h: config.h.w32 ..\windows\NTMakefile.config ..\windows\NTMakefile.version NTMakefile
     55      1.1     elric 	$(PERL) << < config.h.w32 > $@
     56      1.1     elric 
     57      1.1     elric while(<>) {
     58      1.1     elric 
     59      1.1     elric   if (m/\@FEATURE_DEFS\@/) {
     60      1.1     elric 
     61      1.1     elric     if ("$(KRB5)") { print "#define KRB5 1\n"; }
     62      1.1     elric     if ("$(KRB4)") { print "#define KRB4 1\n"; }
     63      1.1     elric     if ("$(WEAK_CRYPTO)") { print "#define HEIM_WEAK_CRYPTO 1\n"; }
     64  1.1.1.3  christos     if ("$(HCRYPTO_FALLBACK)") { print "#define HCRYPTO_FALLBACK 1\n"; } else { print "#define HCRYPTO_FALLBACK 0\n"; }
     65      1.1     elric     if ("$(PKINIT)") { print "#define PKINIT 1\n"; }
     66      1.1     elric     if ("$(NO_AFS)") { print "#define NO_AFS 1\n"; }
     67      1.1     elric     if ("$(OPENLDAP)") { print "#define OPENLDAP 1\n"; }
     68      1.1     elric     if ("$(OPENLDAP_MODULE)") { print "#define OPENLDAP_MODULE 1\n"; }
     69      1.1     elric     if ("$(OTP)") { print "#define OTP 1 \n"; }
     70      1.1     elric     if ("$(AUTHENTICATION)") { print "#define AUTHENTICATION 1\n"; }
     71      1.1     elric     if ("$(DIAGNOSTICS)") { print "#define DIAGNOSTICS 1\n"; }
     72      1.1     elric     if ("$(ENCRYPTION)") { print "#define ENCRYPTION 1\n"; }
     73      1.1     elric     if ("$(ENABLE_AFS_STRING_TO_KEY)") { print "#define ENABLE_AFS_STRING_TO_KEY 1\n"; }
     74      1.1     elric     if ("$(ENABLE_PTHREAD_SUPPORT)") { print "#define ENABLE_PTHREAD_SUPPORT 1\n"; }
     75      1.1     elric     if ("$(HAVE_PTHREAD_H)") { print "#define HAVE_PTHREAD_H 1\n"; }
     76      1.1     elric     if ("$(ENV_HACK)") { print "#define ENV_HACK 1\n"; }
     77      1.1     elric     if ("$(HAVE_KCM)") { print "#define HAVE_KCM 1\n"; }
     78      1.1     elric     if ("$(HAVE_SCC)") { print "#define HAVE_SCC 1\n"; }
     79  1.1.1.3  christos     if ("$(HAVE_STDINT_H)") { print "#define HAVE_STDINT_H 1\n"; }
     80      1.1     elric     if ("$(DIR_hdbdir)") { print "#define HDB_DB_DIR \"".'$(DIR_hdbdir)'."\"\n"; }
     81      1.1     elric     if ("$(HAVE_MSLSA_CACHE)") { print "#define HAVE_MSLSA_CACHE 1\n"; }
     82  1.1.1.2    pettai     if ("$(NO_LOCALNAME)") { print "#define NO_LOCALNAME 1\n"; }
     83      1.1     elric 
     84      1.1     elric   } elsif (m/\@VERSION_OPTDEFS\@/) {
     85      1.1     elric 
     86      1.1     elric     if ("$(VER_PRERELEASE)") { print "#define VER_PRERELEASE 1\n"; }
     87      1.1     elric     if ("$(VER_PRIVATE)") { print "#define VER_PRIVATE \"$(VER_PRIVATE)\"\n"; }
     88      1.1     elric     if ("$(VER_SPECIAL)") { print "#define VER_SPECIAL \"$(VER_SPECIAL)\"\n"; }
     89  1.1.1.3  christos     if ("$(BUILD)" eq "dbg") { print "#define VER_DEBUG 1\n"; }
     90      1.1     elric     print "#define HOST \"$(COMPUTERNAME)\"\n";
     91      1.1     elric 
     92      1.1     elric   } else {
     93      1.1     elric 
     94      1.1     elric     s/\@PACKAGE\@/$(VER_PACKAGE)/;
     95      1.1     elric     s/\@PACKAGE_NAME\@/$(VER_PACKAGE_NAME)/;
     96  1.1.1.3  christos     s{\@PACKAGE_BUGREPORT\@}{$(VER_PACKAGE_BUGREPORT:@=\@)};
     97      1.1     elric     s/\@PACKAGE_VERSION\@/$(VER_PACKAGE_VERSION)/;
     98      1.1     elric     s/\@PACKAGE_COPYRIGHT\@/$(VER_PACKAGE_COPYRIGHT)/;
     99      1.1     elric     s/\@PACKAGE_COMPANY\@/$(VER_PACKAGE_COMPANY)/;
    100      1.1     elric     s/\@MAJOR\@/$(VER_PRODUCT_MAJOR)/;
    101      1.1     elric     s/\@MINOR\@/$(VER_PRODUCT_MINOR)/;
    102      1.1     elric     s/\@AUX\@/$(VER_PRODUCT_AUX)/;
    103      1.1     elric     s/\@PATCH\@/$(VER_PRODUCT_PATCH)/;
    104      1.1     elric 
    105      1.1     elric     print $_;
    106      1.1     elric   }
    107      1.1     elric }
    108      1.1     elric 
    109      1.1     elric <<
    110      1.1     elric 
    111  1.1.1.2    pettai $(INCDIR)\version.h: ..\windows\NTMakefile.version NTMakefile
    112      1.1     elric 	$(CP) << $@
    113      1.1     elric const char *heimdal_long_version = "@(#)$$Version: $(VER_PACKAGE_NAME) $(VER_PACKAGE_VERSION) by $(USERNAME) on $(COMPUTERNAME) ($(CPU)-pc-windows) $$";
    114      1.1     elric const char *heimdal_version = "$(VER_PACKAGE_NAME) $(VER_PACKAGE_VERSION)";
    115      1.1     elric <<
    116      1.1     elric 
    117      1.1     elric all:: $(INCFILES)
    118      1.1     elric 
    119      1.1     elric clean::
    120      1.1     elric 	-$(RM) $(INCFILES)
    121      1.1     elric 
    122