Debian Codegraph @

GNUmakefile

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 # config
2 -include Make.config
3 include mk/Variables.mk
4
5 # add our flags + libs
6 CFLAGS += -DVERSION='"$(VERSION)"'
7
8 # build
9 TARGETS := input-events input-kbd input-send input-recv
10 TARGETS += lsinput emulate-key lircd.conf
11 HEADERS := EV.h REL.h ABS.h MSC.h LED.h SND.h REP.h KEY.h BTN.h BUS.h SW.h
12
13 # default target
14 all: build
15
16
17 ########################################################################
18 # rules
19
20 build: $(TARGETS)
21
22 $(HEADERS): name.sh
23 sh name.sh $* > $@
24
25 lircd.conf: lirc.sh
26 sh lirc.sh > $@
27
28 lsinput: lsinput.o input.o
29 input-events: input-events.o input.o
30 input-kbd: input-kbd.o input.o
31 input-send: input-send.o input.o tcp.o
32 input-recv: input-recv.o input.o tcp.o
33 emulate-key: emulate-key.o input.o
34
35 input.o: input.c $(HEADERS)
36
37 install: build
38 $(INSTALL_DIR) $(bindir) $(mandir)/man8
39 $(INSTALL_BINARY) lsinput input-events input-kbd input-send input-recv $(bindir)
40 $(INSTALL_DATA) lsinput.man $(mandir)/man8/lsinput.8
41 $(INSTALL_DATA) input-kbd.man $(mandir)/man8/input-kbd.8
42 $(INSTALL_DATA) input-events.man $(mandir)/man8/input-events.8
43
44
45 clean:
46 -rm -f *.o $(depfiles)
47
48 realclean distclean: clean
49 -rm -f Make.config
50 -rm -f $(TARGETS) $(HEADERS) *~ xpm/*~ *.bak
51
52 #############################################
53
54 include mk/Compile.mk
55 include mk/Maintainer.mk
56 -include $(depfiles)
57