Merge branch 'vim' into feat/code-check
[vim_extended.git] / src / xxd / Make_cyg.mak
blobf04b7bfde02e5b42b019e01d4d4b05b47308e6f2
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 CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
17 ifneq (sh.exe, $(SHELL))
18 DEL = rm
19 else
20 DEL = del
21 endif
23 xxd.exe: xxd.c
24 gcc $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
26 clean:
27 -$(DEL) xxd.exe