]> git.cryptolib.org Git - labortage2013badge.git/blob - hostware/commandline/Makefile
modifying cmd-tool for new commands
[labortage2013badge.git] / hostware / commandline / Makefile
1 # Name: Makefile
2 # Project: hid-custom-rq example
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 # This Revision: $Id: Makefile 692 2008-11-07 15:07:40Z cs $
9
10
11 # Concigure the following definitions according to your system.
12 # This Makefile has been tested on Mac OS X, Linux and Windows.
13
14 # Use the following 3 lines on Unix (uncomment the framework on Mac OS X):
15 USBFLAGS = `libusb-config --cflags`
16 USBLIBS = `libusb-config --libs`
17 EXE_SUFFIX =
18
19 # Use the following 3 lines on Windows and comment out the 3 above. You may
20 # have to change the include paths to where you installed libusb-win32
21 #USBFLAGS = -I/usr/local/include
22 #USBLIBS = -L/usr/local/lib -lusb
23 #EXE_SUFFIX = .exe
24
25 NAME = badge-tool
26
27 OBJECTS = opendevice.o hexdump.o main.o
28
29 CC              = gcc
30 CFLAGS  = $(CPPFLAGS) $(USBFLAGS) -O -g -Wall
31 LIBS    = $(USBLIBS)
32
33 PROGRAM = $(NAME)$(EXE_SUFFIX)
34
35
36 all: $(PROGRAM)
37
38 .c.o:
39         $(CC) $(CFLAGS) -c $<
40
41 $(PROGRAM): $(OBJECTS)
42         $(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)
43
44 strip: $(PROGRAM)
45         strip $(PROGRAM)
46
47 clean:
48         rm -f *.o $(PROGRAM)