view src/xxd/Make_cyg.mak @ 5745:2f225a17c26b v7.4.217

updated for version 7.4.217 Problem: When src/auto/configure was updated, "make clean" would run configure pointlessly. Solution: Do not run configure for "make clean" and "make distclean" when the make program supports $MAKECMDGOALS. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Tue, 25 Mar 2014 15:34:48 +0100
parents 0978e99043d2
children
line wrap: on
line source

# The most simplistic Makefile, for Cygnus 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