diff options
Diffstat (limited to 'example-cdc-gnu-linux/Makefile')
-rw-r--r-- | example-cdc-gnu-linux/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/example-cdc-gnu-linux/Makefile b/example-cdc-gnu-linux/Makefile new file mode 100644 index 0000000..02d68b2 --- /dev/null +++ b/example-cdc-gnu-linux/Makefile @@ -0,0 +1,37 @@ +# Makefile for example application of Chopstx + +PROJECT = sample + +### This is for GNU/Linux + +CHOPSTX = .. +LDSCRIPT= +CSRC = sample.c usb-cdc.c + +CHIP=gnu-linux +# USE_SYS = yes +USE_SYS = +USE_USB = yes +EMULATION=yes + +################################### +CROSS = +CC = $(CROSS)gcc +LD = $(CROSS)gcc +OBJCOPY = $(CROSS)objcopy + +MCU = none +CWARN = -Wall -Wextra -Wstrict-prototypes +DEFS = -DGNU_LINUX_EMULATION +OPT = -g # -O3 -Os +LIBS = -lpthread + +#################### +include ../rules.mk + +board.h: + @echo Please make a symbolic link \'board.h\' to a file in ../board; + @exit 1 + +distclean: clean + rm -f board.h |