blob: dbbc08301fcbcdee7c96ba26bcdd98273f2456a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# config/post.in
# put all:: first just in case no other rules occur here
#
all::
#
# Set the #define to indicate that we are compiling a DLL. We default to
# compiling the Kerberos library
#
!if defined(DLL_EXP_TYPE)
DLL_FILE_DEF=/D$(DLL_EXP_TYPE)_DLL_FILE
!else
DLL_FILE_DEF=/DKRB5_DLL_FILE
!endif
# Build the Makefile unless we are in the top-level
#(where there is already an explicit rule).
!if !defined(ZIP) && !defined(WINFILES)
Makefile: Makefile.in $(BUILDTOP)\config\windows.in $(BUILDTOP)\config\win-post.in
$(BUILDTOP)\wconfig $(BUILDTOP)\config < Makefile.in > Makefile
!endif
.c.obj:
$(CC) $(CFLAGS) /c $*.c
!if defined(LIBNAME)
##WIN16## $(LIBCMD) $(PAGESIZE) /nologo $(LIBNAME) -+$@;
##WIN32##!if !defined(OBJFILELIST)
##WIN32##OBJFILELIST=@$(OBJFILE)
##WIN32##!endif
##WIN32##!if !defined(OBJFILEDEP)
##WIN32##OBJFILEDEP=$(OBJFILE)
##WIN32##!endif
##WIN32##all-windows:: $(LIBNAME)
##WIN32##$(LIBNAME): $(OBJFILEDEP)
##WIN32## $(LIBCMD) /out:$(LIBNAME) /nologo $(OBJFILELIST)
!endif
!if defined(OBJFILE)
all-windows:: $(OBJFILE)
clean-windows::
$(RM) $(OBJFILE)
!if defined(LIBOBJS)
##DOS$(OBJFILE): $(LIBOBJS)
##DOS $(RM) $(OBJFILE)
##WIN16## $(CP) nul: $(OBJFILE)
!if defined(PREFIXDIR)
##WIN32## $(LIBECHO) -p $(PREFIXDIR)\ $** > $(OBJFILE)
!else
##WIN32## $(LIBECHO) $** > $(OBJFILE)
!endif
!endif
!endif
check::
check-windows::
.depend: $(SRCS) $(SRCTOP)/util/depfix.sed
if test -n "$(SRCS)" ; then \
$(CC) -M $(CFLAGS) $(SRCS) | \
sed -f $(SRCTOP)/util/depfix.sed | \
sed -e 's; $(SRCTOP)/; $$(SRCTOP)/;g' | \
sed -e 's; $(srcdir)/; $$(srcdir)/;g' | \
sed -e 's; $(BUILDTOP)/; $$(BUILDTOP)/;g' | \
sed -e 's; \./; ;g' > .depend; \
else :; fi
depend:: .depend
if test -n "$(SRCS)" ; then \
sed -e '/^# +++ Dependency line eater +++/,$$d' \
< $(srcdir)/Makefile.in | cat - .depend \
> $(srcdir)/Makefile.in.new; \
$(MV) $(srcdir)/Makefile.in $(srcdir)/Makefile.in.old; \
$(MV) $(srcdir)/Makefile.in.new $(srcdir)/Makefile.in; \
else :; fi
clean:: clean-$(WHAT)
$(RM) config.log pre.out post.out Makefile.out
clean-unix::
if test -n "$(OBJS)" ; then $(RM) $(OBJS); else :; fi
$(RM) .depend
clean-windows::
$(RM) *.$(OBJEXT)
$(RM) msvc.pdb *.err *.exe *.bak
!if defined(LIBNAME)
clean-windows::
$(RM) $(LIBNAME)
!endif
!if defined(OBJFILE)
clean-windows::
$(RM) $(OBJFILE)
!endif
|