mirror of
https://github.com/brain-hackers/version-txt-dumper.git
synced 2024-12-22 12:10:12 +09:00
32 lines
758 B
Makefile
32 lines
758 B
Makefile
|
VERSION_MAJOR=1
|
||
|
VERSION_MINOR=0
|
||
|
VERSION_PATCH=0
|
||
|
|
||
|
PREFIX?=/opt/cegcc
|
||
|
|
||
|
CC=$(PREFIX)/bin/arm-mingw32ce-gcc
|
||
|
CXX=$(PREFIX)/bin/arm-mingw32ce-g++
|
||
|
LD=$(PREFIX)/bin/arm-mingw32ce-g++
|
||
|
STRIP=$(PREFIX)/bin/arm-mingw32ce-strip
|
||
|
DLLTOOL=$(PREFIX)/bin/arm-mingw32ce-dlltool
|
||
|
AS=$(PREFIX)/bin/arm-mingw32ce-as
|
||
|
NM=$(PREFIX)/bin/arm-mingw32ce-nm
|
||
|
WINDRES=$(PREFIX)/bin/arm-mingw32ce-windres
|
||
|
|
||
|
OUTPUT=AppMain.exe
|
||
|
|
||
|
CXXFLAGS= -DEV_PLATFORM_WIN32 -DUNICODE -D_UNICODE -DEV_UNSAFE_SWPRINTF -mwin32 \
|
||
|
-O0 -mcpu=arm926ej-s -D_WIN32_WCE=0x600 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 \
|
||
|
-D_FILE_OFFSET_BITS=64 -static
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
all: $(OUTPUT)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OUTPUT)
|
||
|
|
||
|
AppMain.exe: main.cpp
|
||
|
$(CXX) main.cpp -o AppMain.exe $(CXXFLAGS)
|
||
|
$(STRIP) AppMain.exe
|