| 1 |
mysubdir=agent/mibgroup |
| 2 |
|
| 3 |
# currently assumes gcc: (XXX: fix via configure tests) |
| 4 |
DLFLAGS=-fPIC -shared |
| 5 |
|
| 6 |
# use GNU vpath, if available, to only set a path for source and headers |
| 7 |
# VPATH will pick up objects too, which is bad if you are sharing a |
| 8 |
# source dir... |
| 9 |
@GNU_vpath@ %.h $(srcdir) |
| 10 |
@GNU_vpath@ %.c $(srcdir) |
| 11 |
# fallback to regular VPATH for non-gnu... |
| 12 |
@NON_GNU_VPATH@ $(srcdir) |
| 13 |
|
| 14 |
|
| 15 |
CPPFLAGS= $(TOP_INCLUDES) -I. $(AGENT_INCLUDES) $(MIBGROUP_INCLUDES) \ |
| 16 |
$(SNMPLIB_INCLUDES) @CPPFLAGS@ $(LIB_CFLAGS) |
| 17 |
|
| 18 |
OTHERCLEANTARGETS=@dllcleans@ |
| 19 |
|
| 20 |
FEATUREFILE=../../include/net-snmp/agent/features-mibgroups.h |
| 21 |
|
| 22 |
# Need a special .c -> .o definition here to make sure we place the |
| 23 |
# object files in the sub directory. |
| 24 |
|
| 25 |
.c.o: |
| 26 |
$(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $< |
| 27 |
|
| 28 |
@mib_module_list_o@ |
| 29 |
@mib_module_list_lo@ |
| 30 |
@mib_module_list_c@ |
| 31 |
@mib_module_list_ft@ |
| 32 |
|
| 33 |
OBJS = $(mib_module_list_o) |
| 34 |
LOBJS = $(mib_module_list_lo) |
| 35 |
SRCS = $(mib_module_list_c) |
| 36 |
FTOBJS = $(mib_module_list_ft) |
| 37 |
|
| 38 |
all: standardall $(LOBJS) |
| 39 |
|
| 40 |
@module_rules@ |