• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Windows System Libraries


Commit MetaInfo

Revisione67de2a9321dd80e1c4566e7fbcb89573484fdb5 (tree)
Time2012-08-16 04:47:13
AuthorEarnie Boyd <earnie@user...>
CommiterEarnie Boyd

Log Message

Add the winapi libraries and install the historical documents.

Change Summary

Incremental Difference

--- a/Makefile.in
+++ b/Makefile.in
@@ -18,7 +18,9 @@ CFLAGS=@CFLAGS@
1818 RANLIB=@RANLIB@
1919 AS=@AS@
2020 DLLTOOL=@DLLTOOL@
21+DLLTOOL_FLAGS := --as $(AS) -k -U --dllname
2122 INSTALL=@INSTALL@
23+MKDIR_P=@MKDIR_P@
2224
2325 INCLUDES=-I$(top_srcdir)/include -I$(srcdir)/include \
2426 -I$(top_srcdir)/src/libcrt/include -nostdinc \
@@ -27,7 +29,7 @@ ALL_CFLAGS=$(CFLAGS) $(INCLUDES) -DNTDDI_VERSION=0x04000000
2729
2830 .SUFFIXES: .def.in .def
2931
30-lib_LIBRARIES = \
32+mingwrt_lib_LIBRARIES = \
3133 libmsvcrt.a \
3234 libmsvcrtd.a \
3335 libmsvcr70.a \
@@ -59,6 +61,14 @@ lib_LIBRARIES = \
5961 libmingwex.a \
6062 libgmon.a
6163
64+winapi_DEF := $(notdir $(wildcard ${top_srcdir}/lib/lib32/*.def))
65+winapi_MRI := $(notdir $(wildcard ${top_srcdir}/lib/lib32/*.mri))
66+winapi_lib_LIBRARIES := $(addprefix lib,$(winapi_DEF:.def=.a))
67+winapi_mri_LIBRARIES := $(addprefix lib,$(winapi_MRI:.mri=.a))
68+winapi_lib_EXTRA_LIBRARIES := libuuid.a libscrnsave.a libscrnsavw.a liblargeint.a
69+
70+lib_LIBRARIES := $(mingwrt_lib_LIBRARIES) $(winapi_lib_LIBRARIES) $(winapi_lib_EXTRA_LIBRARIES) $(winapi_mri_LIBRARIES)
71+
6272 SRCDIR := src/libcrt/crt
6373 crt0_SOURCES := \
6474 $(SRCDIR)/crt1.c \
@@ -99,6 +109,21 @@ lib_OBJECTS := $(crt0_OBJECTS) $(gcrt0_OBJECTS)
99109
100110 bin_LIBRARIES := mingwm10.dll
101111 doc_DOCUMENTS := README LICENSE
112+doc_DOCUMENTS_EXTRA := doc/historical/mingw doc/historical/w32api
113+
114+libuuid_a_SOURCES := $(addprefix src/libuuid/,$(notdir $(wildcard ${top_srcdir}/src/libuuid/*.c)))
115+libuuid_a_OBJECTS := $(libuuid_a_SOURCES:.c=.o)
116+
117+libscrnsave_a_SOURCES := src/libscrnsave/scrnsave.c
118+libscrnsave_a_OBJECTS := $(libscrnsave_a_SOURCES:.c=.o)
119+scrnsave_o_CFLAGS := -UUNICODE
120+
121+libscrnsavw_a_SOURCES := src/libscrnsave/scrnsave.c
122+libscrnsavw_a_OBJECTS := src/libscrnsave/srcnsavw.o
123+scrnsavw_o_CFLAGS := -DUNICODE
124+
125+liblargeint_a_SOURCES := src/liblargeint/largeint.c
126+liblargeint_a_OBJECTS := $(liblargeint_a_SOURCES:.c=.o)
102127
103128 msvcrt_DEF = \
104129 msvcrt.def \
@@ -566,27 +591,48 @@ $(moldname_DEF): lib/lib32/moldname.def.in
566591 -D__MSVCRT__ -C -E -P -xc-header \
567592 $? > $@
568593
594+SRCDIR := lib/lib32
595+$(notdir $(winapi_lib_LIBRARIES)): $(addprefix lib/lib32/,$(winapi_DEF))
596+ @echo Making library $@ from $<.
597+ DLLNAME=$(notdir $(<:.def=.dll))
598+ $(DLLTOOL) $(DLLTOOL_FLAGS) $${DLLNAME} --def $< --output-lib $@
599+ $(RANLIB) $@
600+
601+$(notdir $(winapi_mri_LIBRARIES)): $(addprefix lib/lib32/,$(winapi_MRI))
602+ @echo Making library $@ from $<.
603+ $(AR) -M < $<
604+ $(RANLIB) $@
605+
569606 lib%.a: %.def
570607 @echo Making library $@ from $?.
571608 N=`echo $@ | sed -e 's|lib\([a-z]*\)\([0-9]*\).*|\1|'`; \
572609 V=`echo $@ | sed -e 's|lib\([a-z]*\)\([0-9]*\).*|\2|'`; \
573610 DLLNAME="$${N}$${V}.dll"; \
574- $(DLLTOOL) --as $(AS) -k -U --dllname $${DLLNAME} --def $< --output-lib $@
611+ $(DLLTOOL) $(DLLTOOL_FLAGS) $${DLLNAME} --def $< --output-lib $@
575612 $(RANLIB) $@
576613
577614 %.o : %.c
578- mkdir -p $(@D)
615+ $(MKDIR_P) $(@D)
579616 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -o $@ $<
580617
581618 SRCDIR := src/libcrt/crt
582619 $(SRCDIR)/crt1.o $(SRCDIR)/dllcrt1.o:
583- mkdir -p $(@D)
620+ $(MKDIR_P) $(@D)
584621 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -U__MSVCRT__ -D__CRTDLL__ -o $@ $<
585622
586623 $(SRCDIR)/crt2.o $(SRCDIR)/dllcrt2.o:
587- mkdir -p $(@D)
624+ $(MKDIR_P) $(@D)
588625 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -D__MSVCRT__ -U__CRTDLL__ -o $@ $<
589626
627+SRCDIR := src/libscrnsave
628+$(libscrnsave_a_OBJECTS): $(libscrnsave_a_SOURCES)
629+ $(MKDIR_P) $(@D)
630+ $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(scrnsave_o_CFLAGS) -o $@ $<
631+
632+$(libscrnsavw_a_OBJECTS): $(libscrnsavw_a_SOURCES)
633+ $(MKDIR_P) $(@D)
634+ $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(scrnsavw_o_CFLAGS) -o $@ $<
635+
590636 $(SRCDIR)/crt1.o: $(SRCDIR)/crt1.c
591637 $(SRCDIR)/dllcrt1.o: $(SRCDIR)/dllcrt1.c
592638 $(SRCDIR)/crt2.o: $(SRCDIR)/crt1.c
@@ -616,7 +662,7 @@ libmingwthrd.a: $(libmingwthrd_a_OBJECTS)
616662 $(RANLIB) $@
617663
618664 libmingwthrd_old.a: $(libmingwthrd_a_OBJECTS) mingwm10.dll mingwthrd.def
619- $(DLLTOOL) $(DLLTOOL_FLAGS) --dllname mingwm10.dll \
665+ $(DLLTOOL) $(DLLTOOL_FLAGS) mingwm10.dll \
620666 --def mingwthrd.def --output-lib $@
621667 $(AR) rc $@ $(libmingwthrd_a_OBJECTS)
622668 $(RANLIB) $@
@@ -625,6 +671,22 @@ libgmon.a: $(libgmon_a_OBJECTS)
625671 $(AR) rc $@ $(libgmon_a_OBJECTS)
626672 $(RANLIB) $@
627673
674+libuuid.a: $(libuuid_a_OBJECTS)
675+ $(AR) rc $@ $(libuuid_a_OBJECTS)
676+ $(RANLIB) $@
677+
678+libscrnsave.a: $(libscrnsave_a_OBJECTS)
679+ $(AR) rc $@ $(libscrnsave_a_OBJECTS)
680+ $(RANLIB) $@
681+
682+libscrnsavw.a: $(libscrnsavw_a_OBJECTS)
683+ $(AR) rc $@ $(libscrnsavw_a_OBJECTS)
684+ $(RANLIB) $@
685+
686+liblargeint.a: $(liblargeint_a_OBJECTS)
687+ $(AR) rc $@ $(liblargeint_a_OBJECTS)
688+ $(RANLIB) $@
689+
628690 _libm_dummy.c:
629691 @echo "static int __mingw_libm_dummy;" > _libm_dummy.c
630692
@@ -640,7 +702,7 @@ mingwm10.dll: $(mingwm10_dll_OBJECTS) mingwthrd.def libmingwex.a
640702 -o mingwm10.dll
641703
642704 clean:
643- rm -f *.def *.a _libm_dummy.c stamp*
705+ rm -f *.def *.s *.a _libm_dummy.c stamp*
644706 rm -rf .deps/
645707 find . -type f -name \*.o -delete
646708 find . -type f -name \*.dll -delete
@@ -668,6 +730,10 @@ install-dirs: $(need-DESTDIR-compatibility)
668730 $(mkinstalldirs) $(DESTDIR)$(bindir)
669731 $(mkinstalldirs) $(DESTDIR)$(libdir)
670732 $(mkinstalldirs) $(DESTDIR)$(docdir)
733+ $(mkinstalldirs) $(DESTDIR)$(docdir)/historical
734+ $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/mingw
735+ $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/mingw/man
736+ $(mkinstalldirs) $(DESTDIR)$(docdir)/historical/w32api
671737 $(mkinstalldirs) $(DESTDIR)$(includedir)
672738 for I in `find $(top_srcdir)/include/* -type d`; do \
673739 J=`basename $$I`; \
@@ -688,6 +754,7 @@ install-docs:
688754 for DOC in $(doc_DOCUMENTS); do \
689755 $(INSTALL) $(INSTALL_FLAGS) $(top_srcdir)/$$DOC $(DESTDIR)$(docdir)/$$DOC ; \
690756 done
757+ cp -a $(top_srcdir)/doc/historical $(DESTDIR)$(docdir) ;
691758
692759 install-includes:
693760 for INC in $(top_srcdir)/include/*.h; do \