Changeset 197a1cc in thomson


Ignore:
Timestamp:
Jan 17, 2012, 11:13:54 PM (12 years ago)
Author:
Adrien Destugues <pulkomandy@…>
Branches:
main
Children:
5e633b6
Parents:
88642a4
Message:
  • cross platform makefile
  • rename main file and executable

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

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
    92
    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):
     3ifdef WINDIR
     4        # windows
     5USBFLAGS = -I/usr/local/mingw/include
     6USBLIBS = -L/usr/local/mingw/lib -lusb
     7EXE_SUFFIX = .exe
     8else
     9        # some unix
    1510USBFLAGS = `libusb-config --cflags`
    1611USBLIBS = `libusb-config --libs` #-framework CoreFoundation
    1712EXE_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 
     13endif
    2514
    2615CC              = gcc
     
    2817LIBS    = $(USBLIBS)
    2918
    30 PROGRAM = powerSwitch$(EXE_SUFFIX)
     19PROJECT = CrO2
     20PROGRAM = $(PROJECT)$(EXE_SUFFIX)
    3121
    3222
     
    3626        $(CC) $(CFLAGS) -c $<
    3727
    38 $(PROGRAM): powerSwitch.o
    39         $(CC) -o $(PROGRAM) powerSwitch.o $(LIBS)
     28$(PROGRAM): $(PROJECT).o
     29        $(CC) -o $(PROGRAM) $^ $(LIBS)
    4030
    4131strip: $(PROGRAM)
Note: See TracChangeset for help on using the changeset viewer.