dockapps/wmmon/Makefile

22 lines
328 B
Makefile
Raw Normal View History

LIBDIR = -L/usr/X11R6/lib -L/usr/local/lib
LIBS = -lXpm -lXext -lX11 -ldockapp
OBJS = wmmon.o
2011-12-16 09:59:10 +00:00
CFLAGS = -O2
CC = cc
wmmon I/O monitor bug fixes: wmmon/CHANGES: Updated for 1.2b1. wmmon/Makefile: Added debug build with -g3; default build with -O3. Note: This makefile isn't perfect. You must "make clean" when switching between "make" and "make debug" otherwise objects won't compile. I'm sure it's a simple dependency issue, but I am not an expert with Makefiles. I intend to fix this, but it's a low priority. wmmon/wmmon/wmmon.c: Updated changelog. Added #define HISTORY_ENTRIES to replace hardcoded values. DrawStats_io(): Removed static variable global_io_scale. Replaced with a local variable. This should improve graphing - scale was growing, but never shrinking, meaning as time passed, graphed values were downscaled and not displayed. Fixed rounding errors caused by use of integer types which were causing very small values not to appear on graph. Added code to round very low values up, so they will appear on meter and graph. We are making a reasonable compromise between readability and accuracy. Side effect is that small peaks (greater than 0 but less than our rounded-up tiny values) will actually appear as dips instead of peaks. I feel this is acceptable, since it still conveys an impression of "jitter" to the user. Fixing this would have involved further modifying the data before we graph it, which would defeat the purpose of improving accuracy. Tweaked load bar scaling algorithm for reabality and sensitivity. update_stat_io(): Added a "stale" timeout for static long maxdiskio (determines scaling of load bar). New behaviour is that every couple of minutes we discard our saved peak value and resample. This prevents an anomalously huge I/O spike from making more typical values fail to trigger the load bar for the rest of the app's lifetime. Side effect will be that every couple of minutes, we will get an anomalous spike in the load bar as it recalibrates. This anomaly only affects the bar, not the graph. getWidth(): Fixed integer rounding issue similar to that in DrawStats_io(). Added similar rounding code to round up very small values so we don't have the illusion of an idle system following a huge spike.
2012-03-10 20:37:32 +00:00
2011-12-16 09:59:10 +00:00
.c.o:
$(CC) $(CFLAGS) -c -Wall $< -o $*.o
2011-12-16 09:59:10 +00:00
wmmon: $(OBJS)
$(CC) $(LDFLAGS) -o wmmon $^ $(LIBDIR) $(LIBS)
wmmon I/O monitor bug fixes: wmmon/CHANGES: Updated for 1.2b1. wmmon/Makefile: Added debug build with -g3; default build with -O3. Note: This makefile isn't perfect. You must "make clean" when switching between "make" and "make debug" otherwise objects won't compile. I'm sure it's a simple dependency issue, but I am not an expert with Makefiles. I intend to fix this, but it's a low priority. wmmon/wmmon/wmmon.c: Updated changelog. Added #define HISTORY_ENTRIES to replace hardcoded values. DrawStats_io(): Removed static variable global_io_scale. Replaced with a local variable. This should improve graphing - scale was growing, but never shrinking, meaning as time passed, graphed values were downscaled and not displayed. Fixed rounding errors caused by use of integer types which were causing very small values not to appear on graph. Added code to round very low values up, so they will appear on meter and graph. We are making a reasonable compromise between readability and accuracy. Side effect is that small peaks (greater than 0 but less than our rounded-up tiny values) will actually appear as dips instead of peaks. I feel this is acceptable, since it still conveys an impression of "jitter" to the user. Fixing this would have involved further modifying the data before we graph it, which would defeat the purpose of improving accuracy. Tweaked load bar scaling algorithm for reabality and sensitivity. update_stat_io(): Added a "stale" timeout for static long maxdiskio (determines scaling of load bar). New behaviour is that every couple of minutes we discard our saved peak value and resample. This prevents an anomalously huge I/O spike from making more typical values fail to trigger the load bar for the rest of the app's lifetime. Side effect will be that every couple of minutes, we will get an anomalous spike in the load bar as it recalibrates. This anomaly only affects the bar, not the graph. getWidth(): Fixed integer rounding issue similar to that in DrawStats_io(). Added similar rounding code to round up very small values so we don't have the illusion of an idle system following a huge spike.
2012-03-10 20:37:32 +00:00
2014-10-05 15:29:59 +00:00
debug: CFLAGS = -g3
wmmon I/O monitor bug fixes: wmmon/CHANGES: Updated for 1.2b1. wmmon/Makefile: Added debug build with -g3; default build with -O3. Note: This makefile isn't perfect. You must "make clean" when switching between "make" and "make debug" otherwise objects won't compile. I'm sure it's a simple dependency issue, but I am not an expert with Makefiles. I intend to fix this, but it's a low priority. wmmon/wmmon/wmmon.c: Updated changelog. Added #define HISTORY_ENTRIES to replace hardcoded values. DrawStats_io(): Removed static variable global_io_scale. Replaced with a local variable. This should improve graphing - scale was growing, but never shrinking, meaning as time passed, graphed values were downscaled and not displayed. Fixed rounding errors caused by use of integer types which were causing very small values not to appear on graph. Added code to round very low values up, so they will appear on meter and graph. We are making a reasonable compromise between readability and accuracy. Side effect is that small peaks (greater than 0 but less than our rounded-up tiny values) will actually appear as dips instead of peaks. I feel this is acceptable, since it still conveys an impression of "jitter" to the user. Fixing this would have involved further modifying the data before we graph it, which would defeat the purpose of improving accuracy. Tweaked load bar scaling algorithm for reabality and sensitivity. update_stat_io(): Added a "stale" timeout for static long maxdiskio (determines scaling of load bar). New behaviour is that every couple of minutes we discard our saved peak value and resample. This prevents an anomalously huge I/O spike from making more typical values fail to trigger the load bar for the rest of the app's lifetime. Side effect will be that every couple of minutes, we will get an anomalous spike in the load bar as it recalibrates. This anomaly only affects the bar, not the graph. getWidth(): Fixed integer rounding issue similar to that in DrawStats_io(). Added similar rounding code to round up very small values so we don't have the illusion of an idle system following a huge spike.
2012-03-10 20:37:32 +00:00
debug: wmmon
2011-12-16 09:59:10 +00:00
clean::
for i in $(OBJS) ; do \
rm -f $$i;\
2011-12-16 09:59:10 +00:00
done
rm -f wmmon