1 ifndef CC
2 CC=gcc
3 endif
4
5 ifndef CFLAGS
6 CFLAGS = -MMD -O2 -Wall -g
7 endif
8
9 CFLAGS += -I.. -I../utils
10
11
12 Q=@
13 E=echo
14 ifeq ($(V), 1)
15 Q=
16 E=true
17 endif
18
19 %.o: %.c
20 $(Q)$(CC) -c -o $@ $(CFLAGS) $<
21 @$(E) " CC " $<
22