blob: a7c401e0091aeb405ae746b9eec3213c5614299a (
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
|
CSRCS=kmd.c status.c lcd.c input.c dispatch.c output.c map.c layout.c video_switch.c
WHERE=$(shell hostname | sed -e 's/^.*medaka.james.local/BROMIUM/g' -e 's/^.*panaceas.*/HOME/g' )
CFLAGS=-g -Wall -D${WHERE} -Wno-unused
all: kmd
%.o: %.c project.h
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ ${@:%.o=%.c}
OBJS=${CSRCS:%.c=%.o}
output.o:output_map.h output.c
kmd: ${OBJS} libdpf/libdpf.a
$(CC) -o $@ ${OBJS} libdpf/libdpf.a -lusb
libdpf/libdpf.a:
make -C libdpf
clean:
make -C libdpf clean
rm -f *.o kmd *~
protos:
echo > prototypes.h
cproto -e -v ${CSRCS} >> prototypes.tmp
mv -f prototypes.tmp prototypes.h
install: kmd
sleep 1
rsync -varP kmd /usr/local/bin/kmd
killall -9 kmd
telinit q
output.o: output_map.h
|