mini-led-cube/client/Makefile

56 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

# Name: Makefile
# Project: hid-custom-rq example
# Author: Christian Starkjohann
# Creation Date: 2008-04-06
# Tabsize: 4
# Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
# License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
# This Revision: $Id: Makefile 692 2008-11-07 15:07:40Z cs $
# Concigure the following definitions according to your system.
# This Makefile has been tested on Mac OS X, Linux and Windows.
# Use the following 3 lines on Unix (uncomment the framework on Mac OS X):
USBFLAGS = `libusb-config --cflags`
USBLIBS = `libusb-config --libs`
EXE_SUFFIX =
# Use the following 3 lines on Windows and comment out the 3 above. You may
# have to change the include paths to where you installed libusb-win32
#USBFLAGS = -I/usr/local/include
#USBLIBS = -L/usr/local/lib -lusb
#EXE_SUFFIX = .exe
2011-12-23 20:52:11 +01:00
DEMO_NAME = demo
NAME = clcc
2011-12-25 11:58:42 +01:00
OBJECTS = ledcube.o opendevice.o $(NAME).o
OBJECTS_DEMO = ledcube.o opendevice.o $(DEMO_NAME).o
2011-12-23 20:52:11 +01:00
CC = gcc
2011-12-25 11:58:42 +01:00
CFLAGS = $(CPPFLAGS) $(USBFLAGS) -O3 -Wall
2011-12-23 20:52:11 +01:00
LIBS = $(USBLIBS) -lm -largtable2
PROGRAM = $(NAME)$(EXE_SUFFIX)
2011-12-25 11:58:42 +01:00
DEMO = $(DEMO_NAME)$(EXE_SUFFIX)
2011-12-23 20:52:11 +01:00
all: $(PROGRAM) $(DEMO)
.c.o:
$(CC) $(CFLAGS) -c $<
2011-12-25 11:58:42 +01:00
$(DEMO): $(OBJECTS_DEMO)
$(CC) -o $(DEMO) $(OBJECTS_DEMO) $(LIBS)
2011-12-23 20:52:11 +01:00
$(PROGRAM): $(OBJECTS)
$(CC) -o $(PROGRAM) $(OBJECTS) $(LIBS)
strip: $(PROGRAM)
strip $(PROGRAM)
2011-12-25 11:58:42 +01:00
strip $(DEMO)
clean:
2011-12-25 11:58:42 +01:00
rm -f *.o $(PROGRAM) $(DEMO)