blob: 6cce4fcd267213386fa9a22d70d2065efd4562ad (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# config
-include Make.config
include mk/Variables.mk
# add our flags + libs
CFLAGS += -DVERSION='"$(VERSION)"'
# build
TARGETS := input-events input-kbd input-send input-recv
TARGETS += lsinput emulate-key lircd.conf
HEADERS := EV.h REL.h ABS.h MSC.h LED.h SND.h REP.h KEY.h BTN.h BUS.h SW.h
# default target
all: build
########################################################################
# rules
build: $(TARGETS)
$(HEADERS): name.sh
sh name.sh $*
lircd.conf: lirc.sh
sh lirc.sh $@
lsinput: lsinput.o input.o
input-events: input-events.o input.o
input-kbd: input-kbd.o input.o
input-send: input-send.o input.o tcp.o
input-recv: input-recv.o input.o tcp.o
emulate-key: emulate-key.o input.o
input.o: input.c $(HEADERS)
install: build
$(INSTALL_DIR) $(bindir) $(mandir)/man8
$(INSTALL_BINARY) lsinput input-events input-kbd input-send input-recv $(bindir)
$(INSTALL_DATA) lsinput.8 $(mandir)/man8/lsinput.8
$(INSTALL_DATA) input-kbd.8 $(mandir)/man8/input-kbd.8
$(INSTALL_DATA) input-events.8 $(mandir)/man8/input-events.8
clean:
-rm -f *.o $(depfiles)
realclean distclean: clean
-rm -f Make.config
-rm -f $(TARGETS) $(HEADERS) *~ xpm/*~ *.bak
#############################################
include mk/Compile.mk
include mk/Maintainer.mk
-include $(depfiles)
|