Home | History | Annotate | Line # | Download | only in com_err
      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 = lib\com_err
     33  1.1  elric 
     34  1.1  elric intcflags=-DBUILD_KRB5_LIB
     35  1.1  elric 
     36  1.1  elric !include ../../windows/NTMakefile.w32
     37  1.1  elric 
     38  1.1  elric INCFILES=$(INCDIR)\com_err.h $(INCDIR)\com_right.h
     39  1.1  elric 
     40  1.1  elric libcomerr_OBJs=$(OBJ)\error.obj $(OBJ)\com_err.obj
     41  1.1  elric 
     42  1.1  elric COMERRDLL=$(BINDIR)\com_err.dll
     43  1.1  elric 
     44  1.1  elric !ifdef STATICLIBS
     45  1.1  elric 
     46  1.1  elric $(LIBCOMERR): $(libcomerr_OBJs)
     47  1.1  elric 	$(LIBCON)
     48  1.1  elric 
     49  1.1  elric !else
     50  1.1  elric 
     51  1.1  elric $(LIBCOMERR): $(COMERRDLL)
     52  1.1  elric 
     53  1.1  elric $(COMERRDLL): $(libcomerr_OBJs) $(OBJ)\libcom_err-version.res
     54  1.1  elric 	$(DLLGUILINK_C) -out:$(COMERRDLL) -implib:$(LIBCOMERR) $** \
     55  1.1  elric 		$(LIBROKEN) \
     56  1.1  elric 		-def:libcom_err-exports.def
     57  1.1  elric 	$(DLLPREP_NODIST)
     58  1.1  elric 
     59  1.1  elric !endif
     60  1.1  elric 
     61  1.1  elric $(BINDIR)\compile_et.exe:  $(OBJ)\parse.obj $(OBJ)\lex.obj $(OBJ)\compile_et.obj $(OBJ)\compile_et-version.res
     62  1.1  elric 	$(EXECONLINK) $(LIBROKEN) $(LIBVERS)
     63  1.1  elric 	$(EXEPREP_NOHEIM)
     64  1.1  elric 
     65  1.1  elric $(OBJ)\parse.obj: $(OBJ)\parse.c
     66  1.1  elric 	$(C2OBJ) -I$(SRC)\$(RELDIR)
     67  1.1  elric 
     68  1.1  elric $(OBJ)\lex.obj: $(OBJ)\lex.c
     69  1.1  elric 	$(C2OBJ) -I$(SRC)\$(RELDIR) -DYY_NO_UNISTD_H
     70  1.1  elric 
     71  1.1  elric $(OBJ)\compile_et.obj: compile_et.c
     72  1.1  elric 	$(C2OBJ) -I$(OBJ)
     73  1.1  elric 
     74  1.1  elric $(OBJ)\parse.c: parse.y
     75  1.1  elric 	$(YACC) -o $@ --defines=$(OBJ)\parse.h parse.y
     76  1.1  elric 
     77  1.1  elric $(OBJ)\lex.c: lex.l
     78  1.1  elric 	$(LEX) -o$@ lex.l
     79  1.1  elric 
     80  1.1  elric all:: $(INCFILES) $(LIBCOMERR) $(BINDIR)\compile_et.exe
     81  1.1  elric 
     82  1.1  elric clean::
     83  1.1  elric 	-$(RM) $(LIBCOMERR)
     84  1.1  elric 	-$(RM) $(INCFILES)
     85  1.1  elric 	-$(RM) $(COMERRDLL:.dll=.*)
     86  1.1  elric 	-$(RM) $(BINDIR)\compile_et.*
     87  1.1  elric 
     88  1.1  elric test-exports:
     89  1.1  elric 	$(PERL) ..\..\cf\w32-check-exported-symbols.pl --vs version-script.map --def libcom_err-exports.def
     90  1.1  elric 
     91  1.1  elric test:: test-exports
     92