git-svn-id: http://172.17.0.253/svn/soft_pkgs/sys_nicmonitor@181 09c3743a-b0dd-45d3-b506-aa74c7a2a6ef
29 lines
695 B
Makefile
29 lines
695 B
Makefile
#! /usr/bin/make -f
|
|
|
|
DEFAULTS = Makefile.config
|
|
|
|
include $(DEFAULTS)
|
|
|
|
all:sys_nicmonitor libnic_shm.so
|
|
|
|
CFLAGS += -Wall -Wformat=2 -Wno-format-extra-args -Wformat-security -Wformat-nonliteral #-g
|
|
|
|
sys_nicmonitor:mnic.o read_netcard.o send_alarm.o
|
|
$(CC) -ldotconf -lpthread -o $@ $^
|
|
libnic_shm.so:nicinfo_shm.c
|
|
$(CC) -fpic -shared -o $@ $^
|
|
clean:
|
|
$(RM) *.o
|
|
$(RM) libnic_shm.so sys_nicmonitor
|
|
install:
|
|
$(MKDIR) -p $(LIBDIR)
|
|
$(MKDIR) -p $(BINDIR)
|
|
$(MKDIR) -p $(INCDIR)
|
|
$(CP) libnic_shm.so $(LIBDIR)
|
|
$(CP) sys_nicmonitor $(BINDIR)
|
|
$(CP) nicinfo_shm.h $(INCDIR)
|
|
uninstall:
|
|
$(RM) -f $(LIBDIR)/libnic_shm.so
|
|
$(RM) -f $(BINDIR)/sys_nicmonitor
|
|
$(RM) -f $(INCDIR)/nicinfo_shm.h
|