Yep, these are the 2 scripts I was told to use to compile:
Code:
gcc -c -o wurfl.o wurfl.c -I/usr/include/libxml2
gcc -shared -Wl,-soname,libwurfl.so.1 -o libwurfl.so.1.0.1 wurfl.o -lxml2
So after each change to my *.c or *.h file I run both those commands, although I suppose I only need to run them when the *.c file is changed. All my *.c file containes is:
Code:
#include <string.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "wurfl.h"
int wurfl_ismobile() {
return 1;
}