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