diff options
Diffstat (limited to 'lib/vusb/examples/usbtool/Makefile')
-rw-r--r-- | lib/vusb/examples/usbtool/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lib/vusb/examples/usbtool/Makefile b/lib/vusb/examples/usbtool/Makefile new file mode 100644 index 000000000..1f2a8ab81 --- /dev/null +++ b/lib/vusb/examples/usbtool/Makefile | |||
@@ -0,0 +1,47 @@ | |||
1 | # Name: Makefile | ||
2 | # Project: usbtool | ||
3 | # Author: Christian Starkjohann | ||
4 | # Creation Date: 2008-04-06 | ||
5 | # Tabsize: 4 | ||
6 | # Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH | ||
7 | # License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt) | ||
8 | |||
9 | |||
10 | # Concigure the following definitions according to your system. | ||
11 | # This Makefile has been tested on Mac OS X, Linux and Windows. | ||
12 | |||
13 | # Use the following 3 lines on Unix (uncomment the framework on Mac OS X): | ||
14 | USBFLAGS = `libusb-config --cflags` | ||
15 | USBLIBS = `libusb-config --libs` | ||
16 | EXE_SUFFIX = | ||
17 | |||
18 | # Use the following 3 lines on Windows and comment out the 3 above. You may | ||
19 | # have to change the include paths to where you installed libusb-win32 | ||
20 | #USBFLAGS = -I/usr/local/include | ||
21 | #USBLIBS = -L/usr/local/lib -lusb | ||
22 | #EXE_SUFFIX = .exe | ||
23 | |||
24 | NAME = usbtool | ||
25 | |||
26 | OBJECTS = opendevice.o $(NAME).o | ||
27 | |||
28 | CC = gcc | ||
29 | CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall | ||
30 | LIBS = $(USBLIBS) | ||
31 | |||
32 | PROGRAM = $(NAME)$(EXE_SUFFIX) | ||
33 | |||
34 | |||
35 | all: $(PROGRAM) | ||
36 | |||
37 | .c.o: | ||
38 | $(CC) $(CFLAGS) -c $< | ||
39 | |||
40 | $(PROGRAM): $(OBJECTS) | ||
41 | $(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS) | ||
42 | |||
43 | strip: $(PROGRAM) | ||
44 | strip $(PROGRAM) | ||
45 | |||
46 | clean: | ||
47 | rm -f *.o $(PROGRAM) | ||