@echo off @echo Windows/Dos batch makefile for MingW32 and lynx.exe @echo Remember to precede this by "command /E:8192" and to set the @echo MingW32 C_INCLUDE_PATH and %C_INCLUDE_PATH%..\..\bin paths @echo. @echo Usage: makelynx [option] @echo Default option: all @echo Specifying "src" causes the libwww code to be skipped. @echo Specifying "link" causes the batch file to skip to the final @echo linking phase. @echo. @echo Note that you have to edit i386-mingw32\include\stdlib.h to put @echo an "#ifndef WIN_EX" around the declaration for `sleep', or the @echo compile won't work. There is also an "#ifndef PDCURSES" around @echo the declaration for `beep' for the same reason. @echo. @echo To change the console library from libslang to libpdcurses, @echo uncomment the `SET LIBRARY' line below. rem SET LIBRARY=PDCURSES rem Uncomment these lines if the slang/curses headers and libraries rem are in the top-level lib directory: rem set C_INCLUDE_PATH=..\lib;..\..\..\lib;%C_INCLUDE_PATH% rem set LIBRARY_PATH=..\lib;..\..\..\lib;%LIBRARY_PATH% set CC=gcc echo /* Generated lynx_cfg.h file in the lynx directory: */ > lynx_cfg.h echo. >> lynx_cfg.h echo #define ANSI_VARARGS 1 >> lynx_cfg.h echo #define BOXHORI 0 >> lynx_cfg.h echo #define BOXVERT 0 >> lynx_cfg.h echo #define HAVE_GETCWD 1 >> lynx_cfg.h echo #define HAVE_STRERROR 1 >> lynx_cfg.h echo #define LYNX_CFG_FILE "./lynx.cfg" >> lynx_cfg.h echo #define LY_MAXPATH 1024 >> lynx_cfg.h echo #define USE_ALT_BLAT_MAILER 1 >> lynx_cfg.h echo #define USE_BLAT_MAILER 1 >> lynx_cfg.h echo #define _WIN_CC 1 >> lynx_cfg.h rem echo #define USE_SCROLLBAR 1 >> lynx_cfg.h SET DEFINES=-DCJK_EX SET DEFINES=%DEFINES% -DNO_CONFIG_INFO SET DEFINES=%DEFINES% -DSH_EX SET DEFINES=%DEFINES% -DWIN_EX SET DEFINES=%DEFINES% -D_WINDOWS SET DEFINES=%DEFINES% -DUSE_EXTERNALS SET DEFINES=%DEFINES% -DEXP_JUSTIFY_ELTS SET DEFINES=%DEFINES% -DDIRED_SUPPORT SET DEFINES=%DEFINES% -DDOSPATH SET DEFINES=%DEFINES% -DEXP_ALT_BINDINGS SET DEFINES=%DEFINES% -DEXP_PERSISTENT_COOKIES SET DEFINES=%DEFINES% -DHAVE_DIRENT_H SET DEFINES=%DEFINES% -DHAVE_KEYPAD SET DEFINES=%DEFINES% -DXMOSAIC_HACK SET DEFINES=%DEFINES% -DACCESS_AUTH SET DEFINES=%DEFINES% -DNO_FILIO_H SET DEFINES=%DEFINES% -DNO_UNISTD_H SET DEFINES=%DEFINES% -DNO_UTMP SET DEFINES=%DEFINES% -DNO_CUSERID SET DEFINES=%DEFINES% -DNO_TTYTYPE SET DEFINES=%DEFINES% -DNOSIGHUP SET DEFINES=%DEFINES% -DNOUSERS SET DEFINES=%DEFINES% -DLONG_LIST SET DEFINES=%DEFINES% -DDISP_PARTIAL SET DEFINES=%DEFINES% -DSOURCE_CACHE SET DEFINES=%DEFINES% -DUSE_PRETTYSRC SET DEFINES=%DEFINES% -DVC="2.14FM" if "%LIBRARY%" == "PDCURSES" goto else1 SET DEFINES=%DEFINES% -DUSE_SLANG goto endif1 :else1 SET DEFINES=%DEFINES% -DFANCY_CURSES SET DEFINES=%DEFINES% -DCOLOR_CURSES SET DEFINES=%DEFINES% -DPDCURSES SET DEFINES=%DEFINES% -DUSE_MULTIBYTE_CURSES :endif1 if not "%1" == "sr
*~
*.pyc
*.pyo
stuff/*