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