minimal test for comparing cegcc versions

This commit is contained in:
ehouse 2009-02-25 03:45:14 +00:00
parent bac17d8c1e
commit 9cb1f8ab59
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,15 @@
CEOPT_ROOT ?= /opt
CE_ARCH = arm-mingw32ce
CC = $(CE_ARCH)-gcc
LFLAGS += -Wl,--major-subsystem-version,4,--minor-subsystem-version,20
CFLAGS += -D_WIN32_WCE=0x0400 -D__W32API_USE_DLLIMPORT__
CELIBS = -L${CEOPT_ROOT}/${CE_ARCH}/lib/ -lws2
messagebox.exe: messagebox.c
$(CC) $(CFLAGS) $(LFLAGS) $^ $(CELIBS) -o $@
clean:
rm -f messagebox.exe

View file

@ -0,0 +1,9 @@
#include <windows.h>
int
WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
int nCmdShow )
{
MessageBox(0, L"HELLO!", L"H3LLO!", 0);
return 0;
}