source: thomson/elec/CrO2/software/Makefile@ 0da6f01

main
Last change on this file since 0da6f01 was 0da6f01, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago

Add host software for CrO2 (WIP)

git-svn-id: svn://localhost/thomson@6 85ae3b6b-dc8f-4344-a89d-598714f2e4e5

  • Property mode set to 100644
File size: 1.1 KB
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):
15USBFLAGS = `libusb-config --cflags`
16USBLIBS = `libusb-config --libs` #-framework CoreFoundation
17EXE_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
26CC = gcc
27CFLAGS = $(USBFLAGS) -O -Wall -std=c99
28LIBS = $(USBLIBS)
29
30PROGRAM = powerSwitch$(EXE_SUFFIX)
31
32
33all: $(PROGRAM)
34
35.c.o:
36 $(CC) $(CFLAGS) -c $<
37
38$(PROGRAM): powerSwitch.o
39 $(CC) -o $(PROGRAM) powerSwitch.o $(LIBS)
40
41strip: $(PROGRAM)
42 strip $(PROGRAM)
43
44clean:
45 rm -f *.o $(PROGRAM)
Note: See TracBrowser for help on using the repository browser.