Merged from the latest developing branch.
[MacVim.git] / src / xxd / Make_cyg.mak
blobba74b1808540175b4acc94f5d1f7859feae66ebe
1 # The most simplistic Makefile, for Cygnus gcc on MS-DOS
3 ifndef USEDLL
4 USEDLL = no
5 endif
7 ifeq (yes, $(USEDLL))
8 DEFINES =
9 LIBS = -lc
10 else
11 DEFINES = -mno-cygwin
12 LIBS =
13 endif
15 CC = gcc
16 CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
18 ifneq (sh.exe, $(SHELL))
19 DEL = rm
20 else
21 DEL = del
22 endif
24 xxd.exe: xxd.c
25 $(CC) $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
27 clean:
28 -$(DEL) xxd.exe