scripts: Fix makefile.std and include it in the CI verification

This commit is contained in:
Cosmin Truta 2020-03-29 22:26:32 -04:00
parent 2dd5630eae
commit 50bd1abdb1
3 changed files with 22 additions and 20 deletions

View File

@ -40,11 +40,9 @@ environment:
CI_CC: x86_64-w64-mingw32-gcc CI_CC: x86_64-w64-mingw32-gcc
- TOOLCHAIN: msys2 - TOOLCHAIN: msys2
AUTOMATION: legacy AUTOMATION: legacy
CI_LEGACY_MAKEFILES: scripts/makefile.gcc scripts/makefile.msys
CI_CC: i686-w64-mingw32-gcc CI_CC: i686-w64-mingw32-gcc
- TOOLCHAIN: msys2 - TOOLCHAIN: msys2
AUTOMATION: legacy AUTOMATION: legacy
CI_LEGACY_MAKEFILES: scripts/makefile.gcc scripts/makefile.msys
CI_CC: x86_64-w64-mingw32-gcc CI_CC: x86_64-w64-mingw32-gcc
install: install:
@ -60,6 +58,7 @@ before_build:
- 'set CI_CMAKE_BUILD_FLAGS=--parallel 2' - 'set CI_CMAKE_BUILD_FLAGS=--parallel 2'
- 'set CI_CTEST_FLAGS=--parallel 2' - 'set CI_CTEST_FLAGS=--parallel 2'
- 'set CI_MAKE_FLAGS=-j2' - 'set CI_MAKE_FLAGS=-j2'
- 'set CI_LEGACY_MAKEFILES=scripts/makefile.gcc scripts/makefile.msys scripts/makefile.std'
build_script: build_script:
- 'if "%TOOLCHAIN%"=="vstudio" C:\msys64\usr\bin\bash.exe -l "%APPVEYOR_BUILD_FOLDER%\scripts\ci_cmake.sh"' - 'if "%TOOLCHAIN%"=="vstudio" C:\msys64\usr\bin\bash.exe -l "%APPVEYOR_BUILD_FOLDER%\scripts\ci_cmake.sh"'

View File

@ -35,7 +35,7 @@ before_script:
- 'export CI_CTEST_FLAGS="--parallel 2"' - 'export CI_CTEST_FLAGS="--parallel 2"'
- 'export CI_MAKE_FLAGS=-j2' - 'export CI_MAKE_FLAGS=-j2'
- 'export CI_CC=$TRAVIS_COMPILER' - 'export CI_CC=$TRAVIS_COMPILER'
- 'export CI_LEGACY_MAKEFILES="scripts/makefile.$TRAVIS_COMPILER"' - 'export CI_LEGACY_MAKEFILES="scripts/makefile.$TRAVIS_COMPILER scripts/makefile.std"'
script: script:
- './scripts/ci_$AUTOMATION.sh' - './scripts/ci_$AUTOMATION.sh'

View File

@ -1,4 +1,5 @@
# makefile for libpng # makefile for libpng
# Copyright (C) 2020 Cosmin Truta
# Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson # Copyright (C) 2002, 2006, 2014 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc. # Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
# #
@ -28,6 +29,8 @@ ZLIBLIB=../zlib
ZLIBINC=../zlib ZLIBINC=../zlib
CC = cc CC = cc
CPP = $(CC) -E
LD = $(CC)
AR_RC = ar rc AR_RC = ar rc
MKDIR_P = mkdir MKDIR_P = mkdir
LN_SF = ln -sf LN_SF = ln -sf
@ -36,22 +39,22 @@ CP = cp
RM_F = rm -f RM_F = rm -f
AWK = awk AWK = awk
SED = sed SED = sed
CPP = $(CC) -E
ECHO = echo ECHO = echo
DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build
DFA_EXTRA = # extra files that can be used to control configuration DFA_EXTRA = # extra files that can be used to control configuration
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5 CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
CFLAGS = -O # -g CFLAGS = -O # -g
LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm LDFLAGS = -L$(ZLIBLIB)
LIBS = -lz -lm
# Pre-built configuration # Pre-built configuration
# See scripts/pnglibconf.mak for more options # See scripts/pnglibconf.mak for more options
PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt PNGLIBCONF_H_PREBUILT = scripts/pnglibconf.h.prebuilt
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \ OBJS = png.o pngerror.o pngget.o pngmem.o pngpread.o \
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \ pngread.o pngrio.o pngrtran.o pngrutil.o pngset.o \
pngwtran.o pngmem.o pngerror.o pngpread.o pngtrans.o pngwio.o pngwrite.o pngwtran.o pngwutil.o
.c.o: .c.o:
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
@ -83,7 +86,7 @@ libpng.a: $(OBJS)
$(RANLIB) $@ $(RANLIB) $@
pngtest: pngtest.o libpng.a pngtest: pngtest.o libpng.a
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) $(LD) $(LDFLAGS) -o $@ pngtest.o libpng.a $(LIBS)
test: pngtest test: pngtest
./pngtest ./pngtest
@ -106,8 +109,8 @@ install: libpng.a pnglibconf.h
chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a chmod 644 $(DESTDIR)$(LIBPATH)/libpng.a
clean: clean:
$(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h pnglibconf.c \ $(RM_F) *.o libpng.a pngtest pngout.png pnglibconf.h
pnglibconf.out $(RM_F) pnglibconf.c pnglibconf.dfn pnglibconf.out pnglibconf.pre
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO
writelock: writelock:
@ -117,16 +120,16 @@ writelock:
png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h png.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngerror.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngget.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngmem.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngpread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngread.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngrtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngrutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngset.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngtrans.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwio.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngwrite.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngwtran.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h pngwutil.o: png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h