OBJS = test_json_parser_incremental.o test_json_parser_perf.o
+EXTRA_CLEAN = test_json_parser_incremental$(X) test_json_parser_perf$(X)
+
ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(top_srcdir)/contrib/contrib-global.mk
endif
-.PHONY: clean
-
all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
%.o: $(top_srcdir)/$(subdir)/%.c
time ./test_json_parser_perf 10000 $(top_srcdir)/$(subdir)/tiny.json
@echo Incremental parser:
time ./test_json_parser_perf -i 10000 $(top_srcdir)/$(subdir)/tiny.json
-
-clean:
- rm -rf test_json_parser_perf test_json_parser_incremental tmp_check $(OBJS)