Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MinGWは `cinst mingw` でインストールしている前提。nkfのバージョンは2.1.4。
- ```
- > C:\tools\mingw64\bin\mingw32-make.exe CC=C:\tools\mingw64\bin\gcc.exe CFLAGS="-g -O2 -Wall -pedantic -DDEFAULT_NEWLINE=0x0D0A -DDEFAULT_CODE_WINDOWS_31J"
- ```
- MinGWには `make` コマンドと `cc` という名前のコマンドは存在しないので、代替のコマンドを指定する。`CC` は `Makefile` 内の変数なので、`make` の引数で指定すれば上書きできる。
- gccの `-Dmacro` オプションでマクロを上書きできる。`DEFAULT_NEWLINE` がデフォルト出力の改行文字、`DEFAULT_CODE_WINDOWS_31J` はデフォルトの出力エンコーディングが `WIndows-31J` になる。
Add Comment
Please, Sign In to add comment