-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile
55 lines (36 loc) · 1.29 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
override CFLAGS += -I./inc -lpthread -Wall -O3
all: output_dir umtprd
umtprd: obj/umtprd.o obj/mtp.o obj/mtp_datasets.o obj/mtp_properties.o obj/mtp_helpers.o \
obj/mtp_support_def.o obj/mtp_constant_strings.o obj/fs_handles_db.o \
obj/usb_gadget.o obj/logs_out.o obj/usbstring.o obj/mtp_cfg.o obj/inotify.o
${CC} -o $@ $^ $(LDFLAGS) -lpthread
obj/umtprd.o: src/umtprd.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp.o: src/mtp.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_datasets.o: src/mtp_datasets.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_properties.o: src/mtp_properties.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_helpers.o: src/mtp_helpers.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_support_def.o: src/mtp_support_def.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_constant_strings.o: src/mtp_constant_strings.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/mtp_cfg.o: src/mtp_cfg.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/fs_handles_db.o: src/fs_handles_db.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/usb_gadget.o: src/usb_gadget.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/logs_out.o: src/logs_out.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/usbstring.o: src/usbstring.c
${CC} -o $@ $^ -c $(CFLAGS)
obj/inotify.o: src/inotify.c
${CC} -o $@ $^ -c $(CFLAGS)
output_dir:
@mkdir -p obj
clean:
rm -Rf *.o .*.o .*.o.* *.ko .*.ko *.mod.* .*.mod.* .*.cmd umtprd obj