circuitpython/unix/Makefile

36 lines
598 B
Makefile
Raw Normal View History

include ../py/mkenv.mk
# define main target
2014-01-19 19:02:39 -05:00
PROG = micropython
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h
# include py core make definitions
include ../py/py.mk
# compiler settings
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX
LDFLAGS = -lm
# Debugging/Optimization
ifdef DEBUG
CFLAGS += -O0 -g
else
CFLAGS += -Os #-DNDEBUG
endif
# source files
SRC_C = \
main.c \
file.c \
2014-01-18 16:47:44 -05:00
socket.c \
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
2013-10-18 14:58:12 -04:00
LIB = -lreadline
# the following is needed for BSD
#LIB += -ltermcap
include ../py/mkrules.mk