blob: 2d32261314e43ec391abb0fe29ef404e8e604044 [file] [log] [blame]
Bram Moolenaarabfa9ef2016-01-15 22:34:45 +01001# The most simplistic Makefile, for MinGW and Cygwin gcc on MS-DOS
Bram Moolenaar946c1ee2011-10-03 22:12:32 +02002
3ifndef USEDLL
4USEDLL = no
5endif
6
7ifeq (yes, $(USEDLL))
8DEFINES =
9LIBS = -lc
10else
11DEFINES =
12LIBS =
13endif
14
15CC = gcc
16CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
17
18ifneq (sh.exe, $(SHELL))
19DEL = rm
20else
21DEL = del
22endif
23
24xxd.exe: xxd.c
25 $(CC) $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
26
27clean:
28 -$(DEL) xxd.exe