|
@@ -0,0 +1,33 @@
|
|
|
+cdir = $cdir/symon
|
|
|
+
|
|
|
+libs = $libs -L$rdir/lib -lsym -lprobe
|
|
|
+cflags = $cflags -I$rdir/lib -I$pdir -I$cdir
|
|
|
+
|
|
|
+build $pdir/sm_cpu.o: cc $pdir/sm_cpu.c || $cdir/conf.h
|
|
|
+build $pdir/sm_cpuiow.o: cc $pdir/sm_cpuiow.c || $cdir/conf.h
|
|
|
+build $pdir/sm_debug.o: cc $pdir/sm_debug.c || $cdir/conf.h
|
|
|
+build $pdir/sm_df.o: cc $pdir/sm_df.c || $cdir/conf.h
|
|
|
+build $pdir/sm_flukso.o: cc $pdir/sm_flukso.c || $cdir/conf.h
|
|
|
+build $pdir/sm_if.o: cc $pdir/sm_if.c || $cdir/conf.h
|
|
|
+build $pdir/sm_io.o: cc $pdir/sm_io.c || $cdir/conf.h
|
|
|
+build $pdir/sm_load.o: cc $pdir/sm_load.c || $cdir/conf.h
|
|
|
+build $pdir/sm_mbuf.o: cc $pdir/sm_mbuf.c || $cdir/conf.h
|
|
|
+build $pdir/sm_mem.o: cc $pdir/sm_mem.c || $cdir/conf.h
|
|
|
+build $pdir/sm_pf.o: cc $pdir/sm_pf.c || $cdir/conf.h
|
|
|
+build $pdir/sm_pfq.o: cc $pdir/sm_pfq.c || $cdir/conf.h
|
|
|
+build $pdir/sm_proc.o: cc $pdir/sm_proc.c || $cdir/conf.h
|
|
|
+build $pdir/sm_sensor.o: cc $pdir/sm_sensor.c || $cdir/conf.h
|
|
|
+build $pdir/sm_smart.o: cc $pdir/sm_smart.c || $cdir/conf.h
|
|
|
+
|
|
|
+build $cdir/symon.o: cc $cdir/symon.c || $cdir/conf.h
|
|
|
+build $cdir/readconf.o: cc $cdir/readconf.c || $cdir/conf.h
|
|
|
+build $cdir/symonnet.o: cc $cdir/symonnet.c || $cdir/conf.h
|
|
|
+
|
|
|
+build $cdir/conf.h: run_script $cdir/gen_conf.sh
|
|
|
+ env = SYSCONFDIR=$sysconfdir V=$v OS=$platform PDIR=$pdir
|
|
|
+
|
|
|
+build $cdir/symon: link $cdir/symon.o $cdir/readconf.o $cdir/symonnet.o $pdir/sm_cpu.o $pdir/sm_cpuiow.o $pdir/sm_debug.o $pdir/sm_df.o $pdir/sm_flukso.o $pdir/sm_if.o $pdir/sm_io.o $pdir/sm_load.o $pdir/sm_mbuf.o $pdir/sm_mem.o $pdir/sm_pf.o $pdir/sm_pfq.o $pdir/sm_proc.o $pdir/sm_sensor.o $pdir/sm_smart.o $rdir/lib/libsym.a $rdir/lib/libprobe.a
|
|
|
+
|
|
|
+# TODO: do install
|
|
|
+
|
|
|
+# TODO: do conf.h
|