blob: d8f11fec7fc37196f4b2662e8cd9b9f73e4112ca
1 | DEPS = rc_common.h keydefine.h |
2 | OBJ = main.o device.o parse.o |
3 | |
4 | %.o: %.c $(DEPS) |
5 | $(CC) -c -o $@ $< $(CFLAGS) |
6 | |
7 | remotecfg: $(OBJ) |
8 | $(CC) -o $@ $^ $(CFLAGS) |
9 | |
10 | .PHONY: clean |
11 | |
12 | clean: |
13 | rm -f *.o *~ remotecfg |
14 | |
15 | .PHONY: install |
16 | |
17 | install: |
18 | cp -f remotecfg $(TARGET_DIR)/usr/bin/ |
19 | cp -f remote.tab $(TARGET_DIR)/etc |
20 | cp -f remote-mouse.tab $(TARGET_DIR)/etc |
21 | |
22 | .PHONY: uninstall |
23 | |
24 | uninstall: |
25 | rm -f $(TARGET_DIR)/usr/bin/remotecfg |
26 |