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