Guest User

Untitled

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. MinGWは `cinst mingw` でインストールしている前提。nkfのバージョンは2.1.4。
  2.  
  3. ```
  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"
  5. ```
  6. MinGWには `make` コマンドと `cc` という名前のコマンドは存在しないので、代替のコマンドを指定する。`CC` は `Makefile` 内の変数なので、`make` の引数で指定すれば上書きできる。
  7.  
  8. gccの `-Dmacro` オプションでマクロを上書きできる。`DEFAULT_NEWLINE` がデフォルト出力の改行文字、`DEFAULT_CODE_WINDOWS_31J` はデフォルトの出力エンコーディングが `WIndows-31J` になる。
Add Comment
Please, Sign In to add comment