blob: 5147e89c15ed8223a0792e2f91eb95de0ff91863 [file] [log] [blame]
Bram Moolenaar946c1ee2011-10-03 22:12:32 +02001# The most simplistic Makefile, for MinGW gcc on MS-DOS
2
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