CC = gcc CFLAGS = -g -Wall -O2 all: av7110_loadkeys evtest av7110_loadkeys: av7110_loadkeys.o evtest: evtest.o av7110_loadkeys.o: av7110_loadkeys.c input_keynames.h evtest.o: evtest.c input_keynames.h input_keynames.h: /usr/include/linux/input.h input_fake.h @echo 'generate $@...' @echo '#ifndef __INPUT_KEYNAMES_H__' > $@ @echo '#define __INPUT_KEYNAMES_H__' >> $@ @echo '' >> $@ @echo '#include ' >> $@ @echo '' >> $@ @echo '#if !defined(KEY_OK)' >> $@ @echo '#include "input_fake.h"' >> $@ @echo '#endif' >> $@ @echo '' >> $@ @echo '' >> $@ @echo 'struct input_key_name {' >> $@ @echo ' const char *name;' >> $@ @echo ' int key;' >> $@ @echo '};' >> $@ @echo '' >> $@ @echo '' >> $@ @echo 'static struct input_key_name key_name [] = {' >> $@ @for x in `cat /usr/include/linux/input.h input_fake.h | \ grep KEY_ | grep "#define" | grep -v KEY_MAX | \ cut -f 1 | cut -f 2 -d ' ' | sort | uniq` ; do \ echo " { \"`echo $$x | cut -b 5-`\", $$x }," >> $@ \ ; \ done @echo '};' >> $@ @echo '' >> $@ @echo '#endif /* __INPUT_KEYNAMES_H */' >> $@ @echo '' >> $@ clean: $(RM) core* *.o input_keynames.h av7110_loadkeys evtest bian/libconfig.git/?h=squeeze-backports'>summaryrefslogtreecommitdiffstats
path: root/examples/c++ (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2012-02-11Move *.docs, *.install and *.examples to -dev.Jonathan McCrohan7-2/+2
2012-02-11Move to single -dev package.Jonathan McCrohan2-14/+12
2012-02-08Update package changelog.Jonathan McCrohan1-1/+1
2012-02-08Partial manual revert of move to libconfig*8.Jonathan McCrohan4-12/+12
2012-02-08Add my name to debian copyright.Jonathan McCrohan1-2/+3
2012-02-08Atomic commit. Rollback to libconfig8 packaging names.Jonathan McCrohan10-8/+8
2012-02-07Rename libconfig9 to libconfig8 to aid release teamJonathan McCrohan1-14/+14
2012-02-07Fix "closes typo"Jonathan McCrohan1-1/+1
2012-02-07Revert "Add symbols"Jonathan McCrohan3-739/+1
2012-02-07Revert "Fix b0rked symbol file."Jonathan McCrohan1-1/+1
2012-02-07Revert "Second attempt"Jonathan McCrohan2-0/+194
2012-01-29Second attemptJonathan McCrohan2-194/+0
2012-01-29Fix b0rked symbol file.Jonathan McCrohan1-1/+1
2012-01-29Add symbolsJonathan McCrohan3-1/+739
2012-01-26add examples properlyJonathan McCrohan1-0/+2
2012-01-26Update changelogJonathan McCrohan1-3/+6
2012-01-26fix typoJonathan McCrohan1-1/+1
2012-01-26fix accidental description changesJonathan McCrohan1-2/+2
2012-01-26more fucking around to please lintianJonathan McCrohan1-5/+2
2012-01-25Linitan fixesJonathan McCrohan2-3/+2
2012-01-25Split out debug packagesJonathan McCrohan2-1/+6
2011-12-31Fix debian/rulesJonathan McCrohan1-1/+1
2011-12-31Remove shlibsJonathan McCrohan1-2/+0
2011-12-31Remove NMU from changelogJonathan McCrohan1-1/+0
2011-12-31Lintian FixesJonathan McCrohan1-2/+4
2011-12-31Remove Makefile patchJonathan McCrohan1-1/+0
2011-12-31Update MakefilesJonathan McCrohan10-248/+8222
2011-12-31Updated makefilesJonathan McCrohan1-0/+1