tquery

Interactive command query tool
git clone https://git.sinitax.com/sinitax/tquery
Log | Files | Refs | LICENSE | sfeed.txt

Makefile (527B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3
      4CFLAGS = -std=c99 -D_XOPEN_SOURCE=700 -Wunused-function -Wunused-variable \
      5		 -Wconversion -Wsign-compare -Wuninitialized
      6LDFLAGS = -lcurses
      7
      8ifeq ($(DEBUG),1)
      9	CFLAGS += -fsanitize=address -Og -g
     10else
     11	CFLAGS += -O3
     12endif
     13
     14CFLAGS += $(CFLAGS_EXTRA)
     15
     16all: tquery
     17
     18clean:
     19	rm -f tquery
     20
     21cleanall: clean
     22
     23tquery: tquery.c
     24
     25install:
     26	install -m755 tquery -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     27
     28uninstall:
     29	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/tquery"
     30
     31.PHONY: all clean cleanall install uninstall