freemyipod r972 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r971‎ | r972 | r973 >
Date:02:15, 7 October 2015
Author:user890104
Status:new
Tags:
Comment:
ipoddfu_c: Fix include path and Makefile
Modified paths:
  • /tools/ipoddfu_c/Makefile (modified) (history)
  • /tools/ipoddfu_c/dfu.c (modified) (history)
  • /tools/ipoddfu_c/ipoddfu.c (modified) (history)
  • /tools/ipoddfu_c/misc.c (modified) (history)
  • /tools/ipoddfu_c/usb.c (modified) (history)

Diff [purge]

Index: tools/ipoddfu_c/usb.c
@@ -23,7 +23,7 @@
2424
2525 #include <stdio.h>
2626
27 -#include <libusb-1.0/libusb.h>
 27+#include <libusb.h>
2828
2929 #include "misc.h"
3030 #include "usb.h"
Index: tools/ipoddfu_c/ipoddfu.c
@@ -25,7 +25,7 @@
2626 #include <stdio.h>
2727 #include <string.h>
2828
29 -#include <libusb-1.0/libusb.h>
 29+#include <libusb.h>
3030
3131 #include "usb.h"
3232 #include "dfu.h"
Index: tools/ipoddfu_c/misc.c
@@ -23,7 +23,7 @@
2424
2525 #include <stdio.h>
2626
27 -#include <libusb-1.0/libusb.h>
 27+#include <libusb.h>
2828
2929 #include "misc.h"
3030
Index: tools/ipoddfu_c/Makefile
@@ -1,12 +1,12 @@
2 -CFLAGS := -O2 -Wall -Wextra -Werror -g -lusb-1.0
 2+TARGET = ipoddfu
 3+PKGCONFIG ?= pkg-config
 4+CFLAGS = -O2 -Wall -Wextra -Werror -g $(shell $(PKGCONFIG) --cflags libusb-1.0)
 5+LDFLAGS = $(shell $(PKGCONFIG) --libs-only-L libusb-1.0)
 6+LDLIBS = $(shell $(PKGCONFIG) --libs-only-l libusb-1.0)
37
4 -all: build ipoddfu
 8+all: $(TARGET)
59
6 -ipoddfu:
7 - gcc $(CFLAGS) -o build/ipoddfu usb.c dfu.c crc32.c misc.c ipoddfu.c
 10+$(TARGET): usb.o dfu.o crc32.o misc.o
811
9 -build:
10 - @mkdir $@
11 -
1212 clean:
13 - @rm -rf build
 13+ rm -rf $(TARGET) *.o
Index: tools/ipoddfu_c/dfu.c
@@ -24,7 +24,7 @@
2525 #include <stdio.h>
2626 #include <string.h>
2727
28 -#include <libusb-1.0/libusb.h>
 28+#include <libusb.h>
2929
3030 #include "usb.h"
3131