Home | History | Annotate | Download | only in src
      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 ifeq ($(QUIET), 1)
     19 Q=@
     20 E=true
     21 endif
     22 
     23 %.o: %.c
     24 	$(Q)$(CC) -c -o $@ $(CFLAGS) $<
     25 	@$(E) "  CC " $<
     26