2014-01-24 09:05:30 +00:00
|
|
|
include ../py/mkenv.mk
|
|
|
|
|
2014-01-07 14:54:15 +00:00
|
|
|
# define main target
|
|
|
|
PROG = cpy
|
|
|
|
|
|
|
|
# include py core make definitions
|
|
|
|
include ../py/py.mk
|
2013-12-29 18:01:01 +00:00
|
|
|
|
2014-04-16 22:10:33 +01:00
|
|
|
INC = -I.
|
|
|
|
INC += -I$(PY_SRC)
|
2014-04-17 18:03:27 +01:00
|
|
|
INC += -I$(BUILD)
|
2014-04-16 22:10:33 +01:00
|
|
|
|
2014-01-07 14:54:15 +00:00
|
|
|
# compiler settings
|
2014-04-16 22:10:33 +01:00
|
|
|
CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX
|
2013-12-29 18:01:01 +00:00
|
|
|
LDFLAGS = -lm
|
|
|
|
|
2014-01-26 17:52:23 +00:00
|
|
|
# Debugging/Optimization
|
2014-01-13 13:25:10 +00:00
|
|
|
ifdef DEBUG
|
2014-01-26 17:52:23 +00:00
|
|
|
CFLAGS += -O0 -g
|
2014-01-13 13:25:10 +00:00
|
|
|
else
|
|
|
|
CFLAGS += -Os #-DNDEBUG
|
|
|
|
endif
|
|
|
|
|
2014-01-07 14:54:15 +00:00
|
|
|
# source files
|
2013-12-29 18:01:01 +00:00
|
|
|
SRC_C = \
|
|
|
|
main.c \
|
|
|
|
|
2014-01-21 21:40:13 +00:00
|
|
|
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
|
2013-12-29 18:01:01 +00:00
|
|
|
LIB =
|
|
|
|
|
2014-01-24 09:05:30 +00:00
|
|
|
include ../py/mkrules.mk
|
2013-12-29 18:01:01 +00:00
|
|
|
|