Added test program
This commit is contained in:
parent
702921f58b
commit
d4590f9dfd
|
@ -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
16
src/test.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user