view src/xxd/Make_ming.mak @ 27195:005ebb9c8b8f v8.2.4126

patch 8.2.4126: crash on exit when built with dynamic Tcl Commit: https://github.com/vim/vim/commit/afa76e1cf2e7e1f9e1097e345a4272e9ddbf14ad Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 17 21:34:38 2022 +0000 patch 8.2.4126: crash on exit when built with dynamic Tcl Problem: Crash on exit when built with dynamic Tcl and EXITFREE is defined. (Dominique Pell?) Solution: Only call Tcl_Finalize() when initialized. (closes #9546)
author Bram Moolenaar <Bram@vim.org>
date Mon, 17 Jan 2022 22:45:04 +0100
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