Annotation of embedaddon/bmon/src/GNUmakefile, revision 1.1.1.1

1.1       misho       1: # Makefile                bmon Makefile
                      2: #
                      3: # Copyright (c) 2001-2005 Thomas Graf <tgraf@suug.ch>
                      4: #
                      5: # Permission is hereby granted, free of charge, to any person obtaining a
                      6: # copy of this software and associated documentation files (the "Software"),
                      7: # to deal in the Software without restriction, including without limitation
                      8: # the rights to use, copy, modify, merge, publish, distribute, sublicense,
                      9: # and/or sell copies of the Software, and to permit persons to whom the
                     10: # Software is furnished to do so, subject to the following conditions:
                     11: #
                     12: # The above copyright notice and this permission notice shall be included
                     13: # in all copies or substantial portions of the Software.
                     14: #
                     15: # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
                     16: # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                     17: # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
                     18: # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                     19: # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
                     20: # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
                     21: # DEALINGS IN THE SOFTWARE.
                     22: #
                     23: ifeq ($(shell [ ! -r ../Makefile.opts ] && echo 1),)
                     24:     include ../Makefile.opts
                     25: endif
                     26: 
                     27: # Core
                     28: CIN  := bmon.c utils.c input.c output.c conf.c node.c item.c graph.c
                     29: CIN  += signal.c bindings.c itemtab.c
                     30: 
                     31: # Primary input modules
                     32: CIN  += in_null.c in_dummy.c in_proc.c in_kstat.c in_netlink.c in_sysfs.c
                     33: CIN  += in_sysctl.c in_distribution.c in_netstat.c
                     34: 
                     35: # Primary output modules
                     36: CIN  += out_null.c out_ascii.c out_format.c
                     37: 
                     38: # Secondary output module
                     39: CIN  += out_html.c out_distribution.c out_xml_event.c out_xml_state.c
                     40: 
                     41: ifeq ($(CURSES),Yes)
                     42: CIN  += out_curses.c
                     43: endif
                     44: 
                     45: ifeq ($(RRD),Yes)
                     46: CIN  += out_rrd.c
                     47: endif
                     48: 
                     49: ifeq ($(ASOUND),Yes)
                     50: CIN  += out_audio.c
                     51: endif
                     52: 
                     53: ifeq ($(DBI),Yes)
                     54: CIN  += out_db.c
                     55: endif
                     56: 
                     57: DEPS := $(CIN:%.c=.deps/%.d)
                     58: OBJ  := $(CIN:%.c=%.o)
                     59: OUT  := bmon
                     60: 
                     61: export
                     62: 
                     63: .PHONY: all clean install $(OUT)
                     64: 
                     65: all: bmon
                     66: 
                     67: $(OUT): ../Makefile.opts $(OBJ)
                     68:        @echo "  LD $(OUT)"; \
                     69:        $(CC) $(CFLAGS) $(CPPFLAGS) -o $(OUT) $(OBJ) $(LDFLAGS) $(BMON_LIB)
                     70: 
                     71: clean:
                     72:        @echo "  CLEAN src"; \
                     73:        $(RM) -f $(OBJ) $(OUT)
                     74: 
                     75: distclean:
                     76:        @echo "  DISTCLEAN src"; \
                     77:        $(RM) -f .deps/*
                     78: 
                     79: $(DEPS): ../Makefile.opts
                     80: 
                     81: include ../Makefile.rules
                     82: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>