main
Line | |
---|
1 | # Name: Makefile
|
---|
2 | # Project: PowerSwitch
|
---|
3 | # Author: Christian Starkjohann
|
---|
4 | # Creation Date: 2005-01-16
|
---|
5 | # Tabsize: 4
|
---|
6 | # Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
|
---|
7 | # License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt)
|
---|
8 | # This Revision: $Id: Makefile 276 2007-03-20 10:53:04Z cs $
|
---|
9 |
|
---|
10 |
|
---|
11 | # Concigure the following definitions according to your system. The powerSwitch
|
---|
12 | # tool has been successfully compiled 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` #-framework CoreFoundation
|
---|
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 |
|
---|
26 | CC = gcc
|
---|
27 | CFLAGS = $(USBFLAGS) -O -Wall -std=c99
|
---|
28 | LIBS = $(USBLIBS)
|
---|
29 |
|
---|
30 | PROGRAM = powerSwitch$(EXE_SUFFIX)
|
---|
31 |
|
---|
32 |
|
---|
33 | all: $(PROGRAM)
|
---|
34 |
|
---|
35 | .c.o:
|
---|
36 | $(CC) $(CFLAGS) -c $<
|
---|
37 |
|
---|
38 | $(PROGRAM): powerSwitch.o
|
---|
39 | $(CC) -o $(PROGRAM) powerSwitch.o $(LIBS)
|
---|
40 |
|
---|
41 | strip: $(PROGRAM)
|
---|
42 | strip $(PROGRAM)
|
---|
43 |
|
---|
44 | clean:
|
---|
45 | rm -f *.o $(PROGRAM)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.