view src/xxd/Make_ming.mak @ 21915:2559dc02bd64 v8.2.1507

patch 8.2.1507: using malloc() directly Commit: https://github.com/vim/vim/commit/51b6eb47b3c41b01a5559b099e65354c8897093e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 22 15:19:18 2020 +0200 patch 8.2.1507: using malloc() directly Problem: Using malloc() directly. Solution: Use ALLOC_ONE(). Remove superfluous typecast. (Hussam al-Homsi, closes #6768)
author Bram Moolenaar <Bram@vim.org>
date Sat, 22 Aug 2020 15:30:04 +0200
parents a82b2d79e61b
children
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