2011-12-07 19:34:45 +00:00
|
|
|
|
|
|
|
ifndef V
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
2012-01-02 16:59:26 +00:00
|
|
|
CFLAGS += -Wall -W -D_LARGEFILE64_SOURCE
|
2010-06-17 16:59:51 +00:00
|
|
|
|
|
|
|
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
|
2011-12-07 19:34:45 +00:00
|
|
|
@echo CC $<
|
|
|
|
$(SILENT)$(NATIVECC) $(CFLAGS) -o bin2c bin2c.c
|
2010-06-17 16:59:51 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) bin2c bin2c.exe
|