mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
minimal test for comparing cegcc versions
This commit is contained in:
parent
bac17d8c1e
commit
9cb1f8ab59
2 changed files with 24 additions and 0 deletions
15
xwords4/wince/test/Makefile
Normal file
15
xwords4/wince/test/Makefile
Normal 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
|
9
xwords4/wince/test/messagebox.c
Normal file
9
xwords4/wince/test/messagebox.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in a new issue