comparison src/xxd/Make_cyg.mak @ 0:76efa0be13f1

Initial revision
author atsuki
date Sat, 10 Nov 2007 15:07:22 +0900
parents
children c16898406ff2
comparison
equal deleted inserted replaced
-1:000000000000 0:76efa0be13f1
1 # The most simplistic Makefile, for Cygnus gcc on MS-DOS
2
3 ifndef USEDLL
4 USEDLL = no
5 endif
6
7 ifeq (yes, $(USEDLL))
8 DEFINES =
9 LIBS = -lc
10 else
11 DEFINES = -mno-cygwin
12 LIBS =
13 endif
14
15 CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
16
17 ifneq (sh.exe, $(SHELL))
18 DEL = rm
19 else
20 DEL = del
21 endif
22
23 xxd.exe: xxd.c
24 gcc $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
25
26 clean:
27 -$(DEL) xxd.exe