source: thomson/elec/CrO2/software/Makefile@ 197a1cc

main
Last change on this file since 197a1cc was 197a1cc, checked in by Adrien Destugues <pulkomandy@…>, 12 years ago
  • cross platform makefile
  • rename main file and executable

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

  • Property mode set to 100644
File size: 570 bytes
RevLine 
[197a1cc]1# (likely) Needs GNU make
2
3ifdef WINDIR
4 # windows
5USBFLAGS = -I/usr/local/mingw/include
6USBLIBS = -L/usr/local/mingw/lib -lusb
7EXE_SUFFIX = .exe
8else
9 # some unix
[0da6f01]10USBFLAGS = `libusb-config --cflags`
11USBLIBS = `libusb-config --libs` #-framework CoreFoundation
12EXE_SUFFIX =
[197a1cc]13endif
[0da6f01]14
15CC = gcc
16CFLAGS = $(USBFLAGS) -O -Wall -std=c99
17LIBS = $(USBLIBS)
18
[197a1cc]19PROJECT = CrO2
20PROGRAM = $(PROJECT)$(EXE_SUFFIX)
[0da6f01]21
22
23all: $(PROGRAM)
24
25.c.o:
26 $(CC) $(CFLAGS) -c $<
27
[197a1cc]28$(PROGRAM): $(PROJECT).o
29 $(CC) -o $(PROGRAM) $^ $(LIBS)
[0da6f01]30
31strip: $(PROGRAM)
32 strip $(PROGRAM)
33
34clean:
35 rm -f *.o $(PROGRAM)
Note: See TracBrowser for help on using the repository browser.