* Makefile.in: Check if API version is updated when exports are

changed and stop if not so.
This commit is contained in:
Egor Duda 2002-07-25 09:09:34 +00:00
parent 6ebbcd2563
commit b9e8058df3
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-07-25 Egor Duda <deo@logos-m.ru>
* Makefile.in: Check if API version is updated when exports are
changed and stop if not so.
2002-07-24 Egor Duda <deo@logos-m.ru> 2002-07-24 Egor Duda <deo@logos-m.ru>
* include/cygwin/version.h: Bump minor API version. * include/cygwin/version.h: Bump minor API version.

View File

@ -144,6 +144,8 @@ NEW_FUNCTIONS:=regcomp posix_regcomp \
regexec posix_regexec \ regexec posix_regexec \
regfree posix_regfree regfree posix_regfree
API_VER:=$(srcdir)/include/cygwin/version.h
PWD:=${shell pwd} PWD:=${shell pwd}
SUBLIBS:=libpthread.a $(PWD)/libm.a libc.a SUBLIBS:=libpthread.a $(PWD)/libm.a libc.a
EXTRALIBS:=libautomode.a libbinmode.a libtextmode.a EXTRALIBS:=libautomode.a libbinmode.a libtextmode.a
@ -247,7 +249,7 @@ maintainer-clean realclean: clean
# Rule to build cygwin.dll # Rule to build cygwin.dll
new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(LIBM) Makefile winver_stamp new-$(DLL_NAME): $(LDSCRIPT) $(DLL_OFILES) $(DEF_FILE) $(DLL_IMPORTS) $(LIBC) $(LIBM) $(API_VER) Makefile winver_stamp
$(CXX) $(CXXFLAGS) -nostdlib -Wl,-T$(firstword $^) -Wl,--out-implib,cygdll.a -shared -o $@ \ $(CXX) $(CXXFLAGS) -nostdlib -Wl,-T$(firstword $^) -Wl,--out-implib,cygdll.a -shared -o $@ \
-e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \ -e $(DLL_ENTRY) $(DEF_FILE) $(DLL_OFILES) version.o winver.o \
$(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \ $(DLL_IMPORTS) $(MALLOC_OBJ) $(LIBM) $(LIBC) \
@ -272,6 +274,10 @@ dll_ofiles: $(DLL_OFILES)
$(LIBGMON_A): $(GMON_OFILES) $(GMON_START) $(LIBGMON_A): $(GMON_OFILES) $(GMON_START)
$(AR) rcv $(LIBGMON_A) $(GMON_OFILES) $(AR) rcv $(LIBGMON_A) $(GMON_OFILES)
$(API_VER): $(srcdir)/cygwin.din
@echo Error: Version info is older than DLL API!
@false
version.cc winver.o: winver_stamp version.cc winver.o: winver_stamp
@ : @ :