-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
4,674 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
teensy_loader_cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#OS ?= LINUX | ||
#OS ?= WINDOWS | ||
OS ?= MACOSX | ||
#OS ?= BSD | ||
|
||
ifeq ($(OS), LINUX) # also works on FreeBSD | ||
CC ?= gcc | ||
CFLAGS ?= -O2 -Wall | ||
teensy_loader_cli: teensy_loader_cli.c | ||
$(CC) $(CFLAGS) -s -DUSE_LIBUSB -o teensy_loader_cli teensy_loader_cli.c -lusb | ||
|
||
|
||
else ifeq ($(OS), WINDOWS) | ||
CC = i586-mingw32msvc-gcc | ||
CFLAGS ?= -O2 -Wall | ||
teensy_loader_cli.exe: teensy_loader_cli.c | ||
$(CC) $(CFLAGS) -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi | ||
|
||
|
||
else ifeq ($(OS), MACOSX) | ||
CC ?= gcc | ||
SDK ?= $(shell xcrun --show-sdk-path) | ||
#SDK ?= /Developer/SDKs/MacOSX10.5.sdk # the old way... | ||
CFLAGS ?= -O2 -Wall | ||
teensy_loader_cli: teensy_loader_cli.c | ||
$(CC) $(CFLAGS) -DUSE_APPLE_IOKIT -isysroot $(SDK) -o teensy_loader_cli teensy_loader_cli.c -Wl,-syslibroot,$(SDK) -framework IOKit -framework CoreFoundation | ||
|
||
|
||
else ifeq ($(OS), BSD) # works on NetBSD and OpenBSD | ||
CC ?= gcc | ||
CFLAGS ?= -O2 -Wall | ||
teensy_loader_cli: teensy_loader_cli.c | ||
$(CC) $(CFLAGS) -s -DUSE_UHID -o teensy_loader_cli teensy_loader_cli.c | ||
|
||
|
||
endif | ||
|
||
|
||
clean: | ||
rm -f teensy_loader_cli teensy_loader_cli.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
OS ?= FreeBSD | ||
#OS ?= NetBSD | ||
#OS ?= OpenBSD | ||
|
||
CFLAGS ?= -O2 -Wall | ||
CC ?= gcc | ||
|
||
.if $(OS) == "FreeBSD" | ||
CFLAGS += -DUSE_LIBUSB | ||
LIBS = -lusb | ||
.elif $(OS) == "NetBSD" || $(OS) == "OpenBSD" | ||
CFLAGS += -DUSE_UHID | ||
LIBS = | ||
.endif | ||
|
||
|
||
teensy_loader_cli: teensy_loader_cli.c | ||
$(CC) $(CFLAGS) -s -o teensy_loader_cli teensy_loader_cli.c $(LIBS) | ||
|
||
clean: | ||
rm -f teensy_loader_cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#Teensy Loader - Command Line Version# | ||
|
||
The Teensy Loader is available in a command line version for advanced users who want to automate programming, typically using a Makefile. For most uses, the graphical version in Automatic Mode is much easier. | ||
|
||
http://www.pjrc.com/teensy/loader_cli.html | ||
|
||
 | ||
|
Oops, something went wrong.