Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / agent / mibgroup / examples / Makefile.dlmod
1 #
2 # Makefile for dynamically loadable module `example'
3 #
4 #DLMODDIR       = $(libdir)/snmp/dlmod
5 #UCDTOPDIR      = $(top_srcdir)
6 DLMODDIR        = /usr/local/lib/snmp/dlmod
7 UCDTOPDIR       = /usr/home/strauss/src/ucd-snmp-ibr
8 TARG            = example.so
9 OBJS            = example.o
10 CC              = gcc
11 CFLAGS          = -I$(UCDTOPDIR) -I$(UCDTOPDIR)/snmplib -I$(UCDTOPDIR)/agent -I$(UCDTOPDIR)/agent/mibgroup -shared -fPIC
12 #LD             = ld
13 #LDFLAGS                = -G -o
14 LD              = gcc -shared -o
15 LDFLAGS         = 
16 INSTALL         = install
17 LIBS            = 
18
19 all: $(TARG)
20
21 .c.o:
22         $(CC) $(CFLAGS) -o $@ -c $<
23
24 $(TARG): $(OBJS)
25         $(LD) $(LDFLAGS) $@ $(OBJS) $(LIBS)
26
27 clean:
28         rm -f $(OBJS) $(TARG)
29
30 install: all installdirs
31         $(INSTALL) $(TARG) $(DLMODDIR)
32
33 installdirs:
34         @$(SHELL) $(UCDTOPDIR)/mkinstalldirs $(DLMODDIR)