Mercurial > vim
view src/xxd/Make_ming.mak @ 7309:c412b0922c27 v7.4.960
commit https://github.com/vim/vim/commit/90f5d0a5c3bbfeefcbc4d6eac59cf225ec714b28
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 3 22:37:21 2015 +0100
patch 7.4.960
Problem: Detecting every version of nmake is clumsy.
Solution: Use a tiny C program to get the version of _MSC_VER. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 03 Dec 2015 22:45:04 +0100 |
parents | 1b26748fc911 |
children | a82b2d79e61b |
line wrap: on
line source
# The most simplistic Makefile, for MinGW gcc on MS-DOS ifndef USEDLL USEDLL = no endif ifeq (yes, $(USEDLL)) DEFINES = LIBS = -lc else DEFINES = LIBS = endif CC = gcc CFLAGS = -O2 -Wall -DWIN32 $(DEFINES) ifneq (sh.exe, $(SHELL)) DEL = rm else DEL = del endif xxd.exe: xxd.c $(CC) $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS) clean: -$(DEL) xxd.exe