Changeset 197a1cc in thomson
- Timestamp:
- Jan 17, 2012, 11:13:54 PM (12 years ago)
- Branches:
- main
- Children:
- 5e633b6
- Parents:
- 88642a4
- Location:
- elec/CrO2/software
- Files:
-
- 1 deleted
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
elec/CrO2/software/Makefile
r88642a4 r197a1cc 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 $ 1 # (likely) Needs GNU make 9 2 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): 3 ifdef WINDIR 4 # windows 5 USBFLAGS = -I/usr/local/mingw/include 6 USBLIBS = -L/usr/local/mingw/lib -lusb 7 EXE_SUFFIX = .exe 8 else 9 # some unix 15 10 USBFLAGS = `libusb-config --cflags` 16 11 USBLIBS = `libusb-config --libs` #-framework CoreFoundation 17 12 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 13 endif 25 14 26 15 CC = gcc … … 28 17 LIBS = $(USBLIBS) 29 18 30 PROGRAM = powerSwitch$(EXE_SUFFIX) 19 PROJECT = CrO2 20 PROGRAM = $(PROJECT)$(EXE_SUFFIX) 31 21 32 22 … … 36 26 $(CC) $(CFLAGS) -c $< 37 27 38 $(PROGRAM): powerSwitch.o39 $(CC) -o $(PROGRAM) powerSwitch.o$(LIBS)28 $(PROGRAM): $(PROJECT).o 29 $(CC) -o $(PROGRAM) $^ $(LIBS) 40 30 41 31 strip: $(PROGRAM)
Note:
See TracChangeset
for help on using the changeset viewer.