aboutsummaryrefslogtreecommitdiff
path: root/example-cdc-gnu-linux/Makefile
blob: 02d68b2d879cd8b5c2329f97d16905483fd9f1d7 (plain)
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
# 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