From: <ph...@us...> - 2007-02-14 21:13:10
|
Revision: 816 http://svn.sourceforge.net/hackndev/?rev=816&view=rev Author: phiren Date: 2007-02-14 13:13:08 -0800 (Wed, 14 Feb 2007) Log Message: ----------- Added Makefile Modified Paths: -------------- tsk/trunk/tsk.c Added Paths: ----------- tsk/trunk/Makefile Added: tsk/trunk/Makefile =================================================================== --- tsk/trunk/Makefile (rev 0) +++ tsk/trunk/Makefile 2007-02-14 21:13:08 UTC (rev 816) @@ -0,0 +1,21 @@ +# Makefile for Touchscreen Keyboard +# +# Set your Cross Compiler here +CROSS_COMPILE= arm-linux- +CC= gcc +#And any cflags +CFLAGS= -c -Wall -O2 +#If you want a dynamitly linked file then comment out this next line +STATIC= --static + +all: tsk + +tsk: tsk.o + $(CROSS_COMPILE)$(CC) $(STATIC) tsk.o -o tsk + $(CROSS_COMPILE)strip tsk + +tsk.o: tsk.c + $(CROSS_COMPILE)$(CC) $(CFLAGS) tsk.c + +clean: + rm -rf *o tsk Modified: tsk/trunk/tsk.c =================================================================== --- tsk/trunk/tsk.c 2007-02-14 09:20:12 UTC (rev 815) +++ tsk/trunk/tsk.c 2007-02-14 21:13:08 UTC (rev 816) @@ -79,16 +79,15 @@ { struct input_event ev; struct input_event event; - int x; - int y; - int z; + int x = 0; + int y = 0; + int z = 0; int i; - int startx; - int starty; + int startx = 0; + int starty = 0; //Seting up uinput struct uinput_user_dev uidev; - int ctr; int uinput = open("/dev/input/uinput",O_WRONLY | O_NDELAY); if (uinput == -1) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |