github.com/matrixorigin/matrixone@v0.7.0/cgo/Makefile (about)

     1  DEBUG_OPT :=
     2  OPT_LV := -O3
     3  CFLAGS=-std=c99 -I./external/decNumber -g ${OPT_LV} -Wall -Werror
     4  OBJS=mo.o arith.o compare.o logic.o decimal.o
     5  
     6  all: libmo.a
     7  
     8  libmo.a: $(OBJS)
     9  	$(MAKE) ${DEBUG_OPT} -C external/decNumber
    10  	ar -rcs libmo.a *.o
    11  
    12  .PHONY: debug
    13  debug: override OPT_LV := -O0
    14  debug: override DEBUG_OPT := debug
    15  debug: all
    16  
    17  .PHONY: clean
    18  clean:
    19  	rm -f *.o *.a