1# The most simplistic Makefile, for Cygnus gcc on MS-DOS
2
3ifndef USEDLL
4USEDLL = no
5endif
6
7ifeq (yes, $(USEDLL))
8DEFINES =
9LIBS    = -lc
10else
11DEFINES = -mno-cygwin
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
29