-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (29 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#CC = gcc
CFLAGS = -Wall -Os
VERSIONNR = 0.10Maemo0
VERSION = \"V$(VERSIONNR)\"
CFLAGS += -DVERSION=$(VERSION)
# for use with LIRC, uncomment the following two lines
# CFLAGS += -DUSELIRC
# LDFLAGS += -llirc_client
#######################################################################
SRC = kbd.c dev_uinput.c
OBJ = kbd.o dev_uinput.o
all: kbdd
install: kbdd kbdd_create_config
mkdir -p $(DESTDIR)/usr/bin
cp -a $^ $(DESTDIR)/usr/bin
cp -ar install/etc install/usr $(DESTDIR)
kbdd: $(OBJ)
$(CC) -s -o kbdd $(OBJ) $(LDFLAGS)
kbd.o: kbd.c keyboards.h
clean:
rm -f $(OBJ) kbdd
tgz: kbdd-$(VERSIONNR)
kbdd-$(VERSIONNR).tgz:
tar czvf $@ Makefile kbd.c keyboards.h README COPYING install
preparedeb: kbdd-$(VERSIONNR).tgz
mkdir kbdd-$(VERSIONNR)
cd kbdd-$(VERSIONNR) && tar xzvf ../kbdd-$(VERSIONNR).tgz
deb:
dpkg-buildpackage -sa -rfakeroot