# makefile for rawkey lib.
# do a 'make install' as root.

# you might want to change these, but probably not.
LIBDIR=/usr/lib
INCLUDEDIR=/usr/include

CFLAGS=-I. -L.   # for 'testprog'

all: librawkey.a testprog

librawkey.a: rawkey.o
	$(AR) rcs librawkey.a rawkey.o

testprog: testprog.o librawkey.a
	$(CC) $(CFLAGS) testprog.o -o testprog -lvga -lrawkey
#	chmod 4711 testprog

install:
	install -m 444 librawkey.a $(LIBDIR)
	install -m 444 rawkey.h $(INCLUDEDIR)
	@echo Rawkey library installed.

clean:
	$(RM) *.o *~ librawkey.a testprog a b c
