summaryrefslogtreecommitdiffstats
path: root/rbutil/tools/Makefile
blob: c598d928c679c1663a7c4a23c4e0f72157b827e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

ifndef V
SILENT = @
endif

CFLAGS=-Wall -W -D_LARGEFILE64_SOURCE

ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
CROSS=
CFLAGS+=-mno-cygwin
else
ifeq ($(findstring MINGW,$(shell uname)),MINGW)
CROSS=
else
CROSS=i586-mingw32msvc-
endif
endif

NATIVECC = gcc
CC = $(CROSS)gcc
WINDRES = $(CROSS)windres


all: bin2c

bin2c: bin2c.c
	@echo CC $<
	$(SILENT)$(NATIVECC) $(CFLAGS) -o bin2c bin2c.c

clean:
	$(RM) bin2c bin2c.exe