build.jst.tmpl (587B)
1 #default PREFIX /usr/local 2 #default BINDIR /bin 3 #default CC gcc 4 5 #ifdef DEBUG 6 #define OPT_CFLAGS -Og -g 7 #else 8 #define OPT_CFLAGS -O2 9 #endif 10 11 cflags = -std=c99 -D_XOPEN_SOURCE=700 #{OPT_CFLAGS} #{EXTRA_CFLAGS} 12 -Wunused-function -Wunused-variable -Wconversion -Wsign-compare 13 ldlibs = -lcurses 14 15 rule cc 16 #{CC} -o $out $in $cflags $ldlibs 17 18 target tquery 19 cc tquery.c 20 21 command clean 22 rm -rf build 23 24 command cleanall 25 just clean 26 27 command install 28 install -m755 tquery -t "#{DESTDIR}#{PREFIX}#{BINDIR}" 29 30 command uninstall 31 rm -f "#{DESTDIR}#{PREFIX}#{BINDIR}/tquery" 32 33 command all 34 just tquery