/
niceSOFT
/
gawk
Обзор
Документация
Войти
/
niceSOFT
/
gawk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pc/Makefile.ext
85 строк
3 KB
Eli Zaretskii
Add char32_t and UTF-8 support to the MinGW build of Gawk.
28 дек 2025, 20:06
28 дек 2025, 20:06
4a923f3
Код
Авторство
О чём код?
# extension/Makefile for the MinGW build # # Copyright (C) 2013, 2015, 2017, 2023 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. prefix = c:/gnu pkgdatadir = $(prefix)/lib/awk pkgextensiondir = $(prefix)/lib/gawk includedir = $(prefix)/include libdir = $(prefix)/lib datadir = $(prefix)/share pkgdatadir = $(datadir)/gawk-extensions pkgincludedir = $(includedir)/gawk-extensions pkglibdir = $(libdir)/gawk-extensions pkglibexecdir = $(libexecdir)/gawk-extensions SOEXT = dll MPFR = -DHAVE_MPFR MPFR_LIBS = -lmpfr -lgmp CFLAGS = -I.. -DHAVE_CONFIG_H -D__USE_MINGW_ANSI_STDIO LIBS = ../pc/mbc32.c ../pc/nl_langinfo.c ../missing_d/stdio-consolesafe.c SIMPLE_EXTENSIONS = inplace.$(SOEXT) ordchr.$(SOEXT) readfile.$(SOEXT)\ revoutput.$(SOEXT) revtwoway.$(SOEXT) testext.$(SOEXT) ALL_EXTENSIONS = filefuncs.$(SOEXT) fnmatch.$(SOEXT) inplace.$(SOEXT)\ intdiv.$(SOEXT) ordchr.$(SOEXT) readdir.$(SOEXT) readfile.$(SOEXT) \ revoutput.$(SOEXT) revtwoway.$(SOEXT) rwarray.$(SOEXT) \ testext.$(SOEXT) time.$(SOEXT) extensions: $(ALL_EXTENSIONS) fnmatch.$(SOEXT): fnmatch.c gcc $(CFLAGS) -I../missing_d -DHAVE_FNMATCH_H -shared -gdwarf-2 -g3 -o $@ fnmatch.c $(LIBS) intdiv.$(SOEXT): intdiv.c gcc $(CFLAGS) $(MPFR) -shared -gdwarf-2 -g3 -o $@ intdiv.c $(LIBS) $(MPFR_LIBS) readdir.$(SOEXT): readdir.c gawkdirfd.h gcc $(CFLAGS) -DHAVE_DIRENT_H -shared -gdwarf-2 -g3 -o $@ readdir.c $(LIBS) rwarray.$(SOEXT): rwarray.c gcc $(CFLAGS) -shared -gdwarf-2 -g3 -o $@ rwarray.c $(LIBS) -lws2_32 filefuncs.$(SOEXT): filefuncs.c stack.c stack.h gawkfts.h gcc $(CFLAGS) -shared -gdwarf-2 -g3 -o $@ filefuncs.c stack.c $(LIBS) time.$(SOEXT): time.c gcc $(CFLAGS) -DHAVE_GETSYSTEMTIMEASFILETIME -shared -gdwarf-2 -g3 -o $@ time.c $(LIBS) $(SIMPLE_EXTENSIONS): gcc $(CFLAGS) -shared -gdwarf-2 -g3 -o $@ $(@:.$(SOEXT)=.c) $(LIBS) $(ALL_EXTENSIONS): ../gawkapi.h ../gettext.h ../pc/mbc32.c ../missing_d/stdio-consolesafe.c inplace.$(SOEXT): inplace.c ordchr.$(SOEXT): ordchr.c ../pc/nl_langinfo.c readfile.$(SOEXT): readfile.c revoutput.$(SOEXT): revoutput.c rwarray.$(SOEXT): rwarray.c testext.$(SOEXT): testext.c time.$(SOEXT): time.c # This must not be called 'install' because there's a file INSTALL, # and case-insensitive filesystems will gladly accept it. install-extensions: -mkdir "$(pkgextensiondir)" cp *.$(SOEXT) "$(pkgextensiondir)" -mkdir "$(prefix)/share/man/man3" cp *.3am "$(prefix)/share/man/man3" install-strip: install-extensions strip --strip-unneeded "$(pkgextensiondir)"/*.$(SOEXT) clean: -rm -f *.$(SOEXT)