Moved .c -> .obj rule to win-post.in, since we need it after the
authorTheodore Tso <tytso@mit.edu>
Wed, 11 Oct 1995 01:43:52 +0000 (01:43 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 11 Oct 1995 01:43:52 +0000 (01:43 +0000)
LIBNAME makefile variable is defined in the main body of the Makefile.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6957 dc483132-0cff-0310-8789-dd5450dbe970

src/config/ChangeLog
src/config/win-post.in [new file with mode: 0644]
src/config/windows.in

index 861fc36138fb144eac74aba79314273243741bf4..2ec3d0a95cd88257f9d97a70f5711f1c4a46ebd6 100644 (file)
@@ -1,3 +1,11 @@
+Tue Oct 10 21:42:14 1995  Theodore Y. Ts'o  <tytso@dcl>
+
+       * win-post.in: New file
+
+       * windows.in: Moved .c -> .obj rule to win-post.in, since we need
+               it after the LIBNAME makefile variable is defined in the
+               main body of the Makefile.
+
 Wed Sep 27 00:51:51 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * winexclude.sed: New file, used for generating DOS zip files.
diff --git a/src/config/win-post.in b/src/config/win-post.in
new file mode 100644 (file)
index 0000000..c06f91b
--- /dev/null
@@ -0,0 +1,45 @@
+# config/post.in
+# put all:: first just in case no other rules occur here
+#
+all::
+
+.c.obj:
+       $(CC) $(CFLAGS) /c $*.c
+!if defined(LIBNAME)
+!if "$(LIBCMD)"!="rem"
+       $(LIBCMD) /nologo $(LIBNAME) -+$@;
+!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
index 30dd6817e8dae8264572cea7dd242aa459fd714a..8717c22fa26ddf4f7684502254a2be8fe920f801 100644 (file)
@@ -69,14 +69,6 @@ EXEEXT=.exe
 
 MFLAGS=$(MAKEFLAGS)
 
-.c.obj:
-       $(CC) $(CFLAGS) /c $*.c
-!if defined(LIBNAME)
-!if "$(LIBCMD)"!="rem"
-       $(LIBCMD) /nologo $(LIBNAME) -+$@;
-!endif
-!endif
-
 #
 # End of Microsoft Windows config lines
 #