summaryrefslogtreecommitdiff
path: root/commandline/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'commandline/Makefile')
-rw-r--r--commandline/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/commandline/Makefile b/commandline/Makefile
new file mode 100644
index 0000000..4587b5e
--- /dev/null
+++ b/commandline/Makefile
@@ -0,0 +1,45 @@
+# Name: Makefile
+# Project: PowerSwitch
+# Author: Christian Starkjohann
+# Creation Date: 2005-01-16
+# Tabsize: 4
+# Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH
+# License: GNU GPL v2 (see License.txt) or proprietary (CommercialLicense.txt)
+# This Revision: $Id$
+
+
+# Concigure the following definitions according to your system. The powerSwitch
+# tool has been successfully compiled 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` #-framework CoreFoundation
+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
+
+
+CC = gcc
+CFLAGS = $(USBFLAGS) -O -Wall
+LIBS = $(USBLIBS)
+
+PROGRAM = powerSwitch$(EXE_SUFFIX)
+
+
+all: $(PROGRAM)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+$(PROGRAM): powerSwitch.o
+ $(CC) -o $(PROGRAM) powerSwitch.o $(LIBS)
+
+strip: $(PROGRAM)
+ strip $(PROGRAM)
+
+clean:
+ rm -f *.o $(PROGRAM)