Makefile 598 Bytes
Newer Older
1
2
include ../py/mkenv.mk

3
# define main target
4
PROG = micropython
5

6
7
8
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h

9
10
# include py core make definitions
include ../py/py.mk
11

12
# compiler settings
13
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
14
LDFLAGS = -lm
15

16
# Debugging/Optimization
17
ifdef DEBUG
18
CFLAGS += -O0 -g
19
20
21
22
else
CFLAGS += -Os #-DNDEBUG
endif

23
# source files
24
25
SRC_C = \
	main.c \
26
	file.c \
27
	socket.c \
28

29
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
Damien's avatar
Damien committed
30
LIB = -lreadline
31
32
# the following is needed for BSD
#LIB += -ltermcap
33

34
include ../py/mkrules.mk
35