view src/xxd/Make_ming.mak @ 27792:2d7691a945d1 v8.2.4422

patch 8.2.4422: autochdir test fails on MS-Windows Commit: https://github.com/vim/vim/commit/adbb383e0f2bb59286ea8133f02c448fd334958f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 19 14:49:51 2022 +0000 patch 8.2.4422: autochdir test fails on MS-Windows Problem: Autochdir test fails on MS-Windows. Solution: Expecta nother error on MS-Windows.
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Feb 2022 16:00:02 +0100
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