view src/xxd/Make_ming.mak @ 16435:65d5f7039131 v8.1.1222

patch 8.1.1222: build still fails on MS-Windows commit https://github.com/vim/vim/commit/dcaa54dded7c7ef9b2217a205d23301d313e96dc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 27 22:45:00 2019 +0200 patch 8.1.1222: build still fails on MS-Windows Problem: Build still fails on MS-Windows. Solution: Move another declaration to start of block.
author Bram Moolenaar <Bram@vim.org>
date Sat, 27 Apr 2019 23:00:04 +0200
parents a82b2d79e61b
children 3835b742025e
line wrap: on
line source

# The most simplistic Makefile, for MinGW and Cygwin 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