diff options
author | fishsoupisgood <github@madingley.org> | 2020-10-02 10:14:08 +0100 |
---|---|---|
committer | fishsoupisgood <github@madingley.org> | 2020-10-02 10:14:08 +0100 |
commit | c89a70619e7ec76447a7e329e1971e9c1dfa1684 (patch) | |
tree | 5e98e7aea864d4b8ad46a3c5d53eb85eaf114dba /flasher/Makefile | |
download | 9key_keyboard-c89a70619e7ec76447a7e329e1971e9c1dfa1684.tar.gz 9key_keyboard-c89a70619e7ec76447a7e329e1971e9c1dfa1684.tar.bz2 9key_keyboard-c89a70619e7ec76447a7e329e1971e9c1dfa1684.zip |
fish
Diffstat (limited to 'flasher/Makefile')
-rw-r--r-- | flasher/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/flasher/Makefile b/flasher/Makefile new file mode 100644 index 0000000..60c5687 --- /dev/null +++ b/flasher/Makefile @@ -0,0 +1,46 @@ +# Name: Makefile +# Project: Automator +# Author: Christian Starkjohann +# Creation Date: 2006-02-01 +# Tabsize: 4 +# Copyright: (c) 2006 by OBJECTIVE DEVELOPMENT Software GmbH +# License: Proprietary, free under certain conditions. See Documentation. +# This Revision: $Id$ + +# Please read the definitions below and edit them as appropriate for your +# system: + +# Use the following 3 lines on Unix and 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: +#USBFLAGS= +#USBLIBS= -lhid -lusb -lsetupapi +#EXE_SUFFIX= .exe + +CC= gcc +CXX= g++ +CFLAGS= -O2 -Wall $(USBFLAGS) +LIBS= $(USBLIBS) +ARCH_COMPILE= +ARCH_LINK= + +OBJ= main.o usbcalls.o +PROGRAM= bootloadHID$(EXE_SUFFIX) + +all: $(PROGRAM) + +$(PROGRAM): $(OBJ) + $(CC) $(ARCH_LINK) $(CFLAGS) -o $(PROGRAM) $(OBJ) $(LIBS) + + +strip: $(PROGRAM) + strip $(PROGRAM) + +clean: + rm -f $(OBJ) $(PROGRAM) + +.c.o: + $(CC) $(ARCH_COMPILE) $(CFLAGS) -c $*.c -o $*.o |