Added test program

This commit is contained in:
Pierre Pronchery 2006-09-13 12:58:01 +00:00
parent 702921f58b
commit d4590f9dfd
2 changed files with 25 additions and 2 deletions

View File

@ -1,8 +1,15 @@
targets=libGToolkit targets=libGToolkit,test
cflags_force=-W -I ../include cflags_force=-W -I ../include
cflags=-Wall -fPIC -g -O2 -ansi cflags=-Wall -fPIC -g -O2 -ansi
[libGToolkit] [libGToolkit]
type=library type=library
sources=common.c,gwindow.c,gtoolkit.c sources=common.c,gwindow.c,gtoolkit.c
[test]
type=binary
sources=test.c
ldflags=-L . -l GToolkit -l X11 -l GL
[test.c]
depends=../include/GToolkit.h

16
src/test.c Normal file
View File

@ -0,0 +1,16 @@
#include <GToolkit.h>
/* main */
int main(void)
{
GWindow * window;
if(g_init() != 0)
return 2;
window = gwindow_new();
gwindow_show(window);
g_main();
g_quit();
return 0;
}