view src/xxd/Make_ming.mak @ 20456:25392efa9039 v8.2.0782

patch 8.2.0782: cannot build with Lua on MS-Windows Commit: https://github.com/vim/vim/commit/df1643a6a7886b9363c2a98438e61cbe1c803d41 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 17 18:53:27 2020 +0200 patch 8.2.0782: cannot build with Lua on MS-Windows Problem: Cannot build with Lua on MS-Windows. Solution: Add DLL symbol for luaL_Loadstring. (Ken Takata)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 May 2020 19:00:03 +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