-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (32 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Name: Makefile
# Project: PowerSwitch
# Author: Christian Starkjohann
# Creation Date: 2005-01-16
# Tabsize: 4
# Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
# License: Proprietary, free under certain conditions. See Documentation.
# This Revision: $Id: Makefile,v 1.1.1.1 2006/02/15 17:55:06 cvs Exp $
# Concigure the following definitions according to your system. The powerSwitch
# tool has been successfully compiled on Mac OS X, Linux and Windows.
CC = gcc
LIBUSB_CONFIG = libusb-config
# Make sure that libusb-config is in the search path or specify a full path.
# On Windows, there is no libusb-config and you must configure the options
# below manually. See examples.
CFLAGS = `$(LIBUSB_CONFIG) --cflags` -O -Wall -g
#CFLAGS = -I/usr/local/libusb/include
# On Windows replace `$(LIBUSB_CONFIG) --cflags` with appropriate "-I..."
# option to ensure that usb.h is found
LIBS = `$(LIBUSB_CONFIG) --libs`
#LIBS = `$(LIBUSB_CONFIG) --libs` -framework CoreFoundation
# You may need "-framework CoreFoundation" on Mac OS X and Darwin.
#LIBS = -L/usr/local/libusb/lib/gcc -lusb
# On Windows use somthing similar to the line above.
all: uDMX
.c.o:
$(CC) $(CFLAGS) -c $<
uDMX: uDMX.o
$(CC) -o uDMX uDMX.o $(LIBS)
clean:
rm -f *.o
rm -f uDMX uDMX.exe