Category Archives: POSonCloud

Some basic proof of concept work for a Point of Sale system integrator

Cordova / PhoneGap

Exploration of Cordova for use with Point of Sale. A client has a POS web application written in LAMP, looking at writing the next generation using Cordova. In the near term Cordova probably has utility in replacing the client’s problematic and soon to be deprecated Java browser plug-in.

For now, I’m working through a primmer at:

I have done this for iOS, Android, and various browsers.

Looks like I’m going to really learn JavaScript and nodeJS, when do we get a real language front-end to the JavaScript “byte-code”.

AutoHell (automake)

I have been writing my own Makefiles for years. Lately I’ve been experimenting with using automake. I have used automake to compile various things from source for years. It’s a formidable beast but then again so was make and getting vim to work the way _I_ want, but those have proven well worth the effort, we’ll see…

run autoscan
This generates autoscan.log which you probably don’t care about and configure.scan which you will edit and rename to

edit configure.scan and rename to

AC_INIT(magtek, 0.1,
AC_OUTPUT(Makefile src/Makefile)

run aclocal

run autoconf



foreign means non GNU
SUBDIRS could include things like src, doc, examples, man, scripts

create/edit src/

AM_CXXFLAGS=-g -I/usr/include/libusb-1.0 -lusb-1.0
LDADD = /usr/lib/x86_64-linux-gnu/
AM_ETAGSFLAGS = -R --c++-kinds=+p --fields=+iaS --extra=+q --if0=yes . /usr/include/libusb-1.0/

bin_PROGRAMS = enumerate magtek
enumerate_SOURCES =
magtek_SOURCES =

AM_CXXFLAGS adds will show up as CXXFLAGS in the generated Makefile
LDADD is library thats not mainstream required for this project
AM_ETAGSFLAGS are the flags for the tags target in the generated Makefile
the rest is for your targets and their dependencies

run autoheader
run automake –add-missing
run autoconf
run ./configure
run make

I used this page and naturally the documentation as a basis for working this out.