source: npl/monitoring/syn3_snmp_subagent/subagent/Makefile

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[c5c522c]1
2CC=gcc
3STA_TABLE_PREFIX=syn3StatisticsTable
4FAC_TABLE_PREFIX=syn3FacilitiesTable
5
6NETSNMPCONFIG=net-snmp-config
7
8
9# uncomment this if you have GNU make
10#NETSNMPCFLAGS := $(shell $(NETSNMPCONFIG) --base-cflags)
11#NETSNMPLIBS := $(shell $(NETSNMPCONFIG) --agent-libs)
12NETSNMPCFLAGS=`$(NETSNMPCONFIG) --base-cflags`
13NETSNMPLIBS=`$(NETSNMPCONFIG) --agent-libs`
14
15LIBS=$(NETSNMPLIBS)
16
17
18STRICT_FLAGS = -Wall -Wstrict-prototypes
19CFLAGS=-I. $(NETSNMPCFLAGS) $(STRICT_FLAGS)
20
21USER_SRCS = \
22        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_get.c \
23        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_set.c \
24        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_access.c \
25        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_get.c \
26        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_set.c \
27        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_access.c
28
29SRCS = $(USER_SRCS) \
30        syn3Version.c \
31        subagent.c \
32        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX).c \
33        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_interface.c \
34        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX).c \
35        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_interface.c
36
37USER_OBJS =  \
38        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_get.o \
39        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_set.o \
40        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_data_access.o \
41        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_get.o \
42        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_set.o \
43        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_data_access.o
44
45OBJS =  $(USER_OBJS) \
46        syn3Version.o \
47        subagent.o \
48        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX).o \
49        ${FAC_TABLE_PREFIX}/$(FAC_TABLE_PREFIX)_interface.o \
50        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX).o \
51        ${STA_TABLE_PREFIX}/$(STA_TABLE_PREFIX)_interface.o
52
53TARGETS=${FAC_TABLE_PREFIX} $(STA_TABLE_PREFIX)
54
55.SUFFIXES:
56.SUFFIXES: .c .o .deps
57
58
59all: $(TARGETS)
60
61user: $(USER_OBJS)
62
63$(TARGETS): $(LIB_DEPS)
64
65$(TARGETS): $(OBJS) Makefile
66        $(CC) -o syn3_snmp_subagent $(OBJS) $(LIBS)
67
68clean:
69        rm -f $(OBJS)
70
Note: See TracBrowser for help on using the repository browser.