the new format
git-svn-id: http://172.17.0.253/svn/soft_pkgs/sys_nicmonitor@146 09c3743a-b0dd-45d3-b506-aa74c7a2a6ef
This commit is contained in:
28
code/trunk/sys_nicmonitor/Makefile
Normal file
28
code/trunk/sys_nicmonitor/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
#! /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) -lman -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
|
||||
Reference in New Issue
Block a user