4 BUILDTOP=$(REL)..$(S)..
8 ##DOS##BUILDTOP = ..\..
9 ##DOS##LIBNAME=$(OUTPRE)k5sprt32.lib
10 ##DOS##WIN64LIBNAME=$(OUTPRE)k5sprt64.lib
12 ##DOS##OBJFILE=$(OUTPRE)k5sprt32.lst
13 ##DOS##WIN64OBJFILE=$(OUTPRE)k5sprt64.lst
17 KRB5_RUN_ENV= @KRB5_RUN_ENV@
18 PROG_LIBPATH=-L$(TOPLIBD)
19 PROG_RPATH=$(KRB5_LIBDIR)
22 LIBMAJOR=@SUPPORTLIB_MAJOR@
25 LIBINITFUNC=krb5int_thread_support_init
26 LIBFINIFUNC=krb5int_thread_support_fini
28 MKSTEMP_ST_OBJ= @MKSTEMP_ST_OBJ@
29 MKSTEMP_OBJ= @MKSTEMP_OBJ@
30 ##DOS##MKSTEMP_ST_OBJ= mkstemp.o
31 ##DOS##MKSTEMP_OBJ= $(OUTPRE)mkstemp.$(OBJEXT)
43 $(OUTPRE)threads.$(OBJEXT) \
44 $(OUTPRE)init-addrinfo.$(OBJEXT) \
45 $(OUTPRE)plugins.$(OBJEXT) \
46 $(OUTPRE)errors.$(OBJEXT) \
47 $(OUTPRE)gmt_mktime.$(OBJEXT) \
48 $(OUTPRE)fake-addrinfo.$(OBJEXT) \
55 LOCALINCLUDES=-I. -I$(srcdir)
59 $(srcdir)/init-addrinfo.c \
61 $(srcdir)/gmt_mktime.c \
62 $(srcdir)/fake-addrinfo.c \
66 # Add -lm if dumping thread stats, for sqrt.
67 SHLIB_EXPLIBS= $(LIBS) $(DL_LIB)
69 SHLIB_RDIRS=$(KRB5_LIBDIR)
74 all-unix:: all-liblinks
76 install-unix:: install-libs
78 clean-unix:: clean-liblinks clean-libs clean-libobjs
81 $(BUILDTOP)/include/autoconf.h: $(SRCTOP)/include/autoconf.h.in
82 (cd $(BUILDTOP)/include; $(MAKE) autoconf.h)
85 t_mktime: gmt_mktime.c
86 $(CC) $(ALL_CFLAGS) -DTEST_LEAP -o t_mktime $(srcdir)/gmt_mktime.c
88 SHLIB_EXPORT_FILE=libkrb5support.exports
89 ##DOS##all-windows:: libkrb5support.exports
91 EXTRA_SUPPORT_SYMS= @EXTRA_SUPPORT_SYMS@
92 ##DOS##EXTRA_SUPPORT_SYMS= krb5int_mkstemp
95 libkrb5support.exports: $(srcdir)/libkrb5support-fixed.exports Makefile
96 cat $(srcdir)/libkrb5support-fixed.exports > new-exports
97 for i in $(EXTRA_SUPPORT_SYMS) .; do \
98 if test "$$i" != .; then echo $$i >> new-exports; else :; fi ; \
100 $(MV) new-exports libkrb5support.exports
102 ##DOS##libkrb5support.exports: libkrb5support-fixed.exports Makefile
103 ##DOS## $(CP) libkrb5support-fixed.exports new-exports
104 ##DOS## for %%x in ($(EXTRA_SUPPORT_SYMS) .) do if not %%x==. echo %%x >> new-exports
105 ##DOS## $(RM) libkrb5support.exports
106 ##DOS## $(MV) new-exports libkrb5support.exports
111 # +++ Dependency line eater +++
113 # Makefile dependencies follow. This must be the last section in
114 # the Makefile.in file
116 threads.so threads.po $(OUTPRE)threads.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
117 $(SRCTOP)/include/fake-addrinfo.h $(SRCTOP)/include/k5-platform.h \
118 $(SRCTOP)/include/k5-thread.h $(SRCTOP)/include/port-sockets.h \
119 $(SRCTOP)/include/socket-utils.h cache-addrinfo.h supp-int.h \
121 init-addrinfo.so init-addrinfo.po $(OUTPRE)init-addrinfo.$(OBJEXT): \
122 $(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/fake-addrinfo.h \
123 $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
124 $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
125 cache-addrinfo.h init-addrinfo.c
126 errors.so errors.po $(OUTPRE)errors.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
127 $(SRCTOP)/include/k5-err.h $(SRCTOP)/include/k5-platform.h \
128 $(SRCTOP)/include/k5-thread.h errors.c supp-int.h
129 gmt_mktime.so gmt_mktime.po $(OUTPRE)gmt_mktime.$(OBJEXT): \
130 $(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/k5-gmt_mktime.h \
132 fake-addrinfo.so fake-addrinfo.po $(OUTPRE)fake-addrinfo.$(OBJEXT): \
133 $(BUILDTOP)/include/autoconf.h $(SRCTOP)/include/fake-addrinfo.h \
134 $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
135 $(SRCTOP)/include/port-sockets.h $(SRCTOP)/include/socket-utils.h \
136 cache-addrinfo.h fake-addrinfo.c supp-int.h
137 mkstemp.so mkstemp.po $(OUTPRE)mkstemp.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
138 $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \