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

3
4
5
6
7
# define main target
PROG = cpy

# include py core make definitions
include ../py/py.mk
8

9
10
11
12
INC =  -I.
INC += -I$(PY_SRC)
INC += -I$(BUILD)/includes

13
# compiler settings
14
CFLAGS = $(INC) -Wall -Werror -ansi -std=gnu99 -DUNIX
15
16
LDFLAGS = -lm

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

24
# source files
25
26
27
SRC_C = \
	main.c \

28
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
29
30
LIB =

31
include ../py/mkrules.mk
32