version-txt-dumper/Makefile

32 lines
758 B
Makefile
Raw Permalink Normal View History

2022-04-14 01:44:13 +09:00
VERSION_MAJOR=1
2022-04-20 00:18:55 +09:00
VERSION_MINOR=1
2022-04-14 01:44:13 +09:00
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