summaryrefslogtreecommitdiff
path: root/application/custom-mib
diff options
context:
space:
mode:
authorThierry Carre2008-10-27 11:21:49 +0100
committerThierry Carre2008-10-27 11:21:49 +0100
commitd2de3606115f9487d2a7d89fe8a43193d6bb3969 (patch)
treef740dfcc1615c80e5c1cc1e518866a18964c1443 /application/custom-mib
parent10112e2bf349ccde6fdf0479259c661d007b7849 (diff)
[merge] Synchronize this repository with the new bundle for 'application' directory
Diffstat (limited to 'application/custom-mib')
-rwxr-xr-xapplication/custom-mib/Makefile37
-rw-r--r--application/custom-mib/Makefile_polux58
-rw-r--r--application/custom-mib/Makefile_x8661
3 files changed, 37 insertions, 119 deletions
diff --git a/application/custom-mib/Makefile b/application/custom-mib/Makefile
new file mode 100755
index 0000000000..f8ae4c6c03
--- /dev/null
+++ b/application/custom-mib/Makefile
@@ -0,0 +1,37 @@
+#-------------------------#
+# CUSTOM MIB #
+# CUSTOM MIB #
+# Makefile for SNMP agent #
+# ***** LINUX Polux ***** #
+# ====< arm-uclinux >==== #
+# ( sm-mib ) #
+#-------------------------#
+# by Franck Paris #
+# "Spidcom Technologies" #
+# Date : 25 June 2007 #
+#-------------------------#
+
+OBJS=custom_init_mib.o custom_mib.o custom_test_mib.o
+
+GCCTARGET=arm-uclinux
+CXX=arm-uclinux-g++
+AR=arm-uclinux-ar
+
+TOPDIR=../..
+APP_DIR=$(TOPDIR)/application
+
+INCLUDE = -I$(APP_DIR)/agent/agent++/include/agent_pp -I$(APP_DIR)/agent/inc -I$(APP_DIR)/agent/snmp++/include/snmp_pp -I$(TOPDIR)/include -I$(APP_DIR)/agent/snmp++/include -I$(APP_DIR)/agent/agent++/include -I$(APP_DIR)/agent/agent++/agentgen/agent/include -I.
+CFLAGS = $(DEFINES) $(INCLUDE) -c -msoft-float -march=armv5 -mtune=arm926ejs -mapcs-32 -O2 -fno-rtti -fno-access-control -fno-exceptions
+LDFLAGS = -msoft-float -march=armv5 -Wl,-elf2flt='-s 32k'
+
+DEFINES = -DFEATURE_AGENT -D_NO_THREADS -DSP_CRISTINA -D__LINUX__
+#-DSIMULATION_TEST
+
+custom-mib.a : $(OBJS)
+ $(AR) -r $@ $(OBJS)
+
+%.o:%.cpp
+ $(CXX) $(CFLAGS) -o $@ $<
+
+clean:
+ rm -f *.o *.a *~
diff --git a/application/custom-mib/Makefile_polux b/application/custom-mib/Makefile_polux
deleted file mode 100644
index 6c349b7abf..0000000000
--- a/application/custom-mib/Makefile_polux
+++ /dev/null
@@ -1,58 +0,0 @@
-#-------------------------#
-# CUSTOM MIB #
-# CUSTOM MIB #
-# Makefile for SNMP agent #
-# ***** LINUX Polux ***** #
-# ====< arm-uclinux >==== #
-# ( sm-mib ) #
-#-------------------------#
-# by Franck Paris #
-# "Spidcom Technologies" #
-# Date : 25 June 2007 #
-#-------------------------#
-
-OBJS += $(OBJDIR)/custom_init_mib.o
-OBJS += $(OBJDIR)/custom_mib.o
-OBJS += $(OBJDIR)/custom_test_mib.o
-
-#************************************************************
-
-GCCROOT = $(COMPILERROOT)
-GCCBIN = $(GCCROOT)/bin
-
-GCCTARGET = arm-uclinux
-GCCTOOLS = /usr/local/toolchains/arm-uclinux/bin
-COMPILERROOT = /usr/local/toolchains/arm-uclinux/
-
-CC = arm-uclinux-g++
-AR = arm-uclinux-ar
-
-INCLUDE = -I./inc -I../sm-agent/agent++/include/agent_pp -I../sm-agent/inc -I../sm-agent/snmp++/include/snmp_pp -I../../include -I.
-INCLUDE += -I../sm-agent/snmp++/include -I../sm-agent/agent++/include -I../sm-agent/agent++/agentgen/agent/include
-CFLAGS = $(DEFINES) $(INCLUDE) -c -msoft-float -march=armv5 -mtune=arm926ejs -mapcs-32 -O2 -fno-rtti -fno-access-control -fno-exceptions
-LDFLAGS = -msoft-float -march=armv5 -Wl,-elf2flt='-s 32000'
-
-DEFINES = -DFEATURE_AGENT -D_NO_THREADS -DSP_CRISTINA -D__LINUX__
-#-DSIMULATION_TEST
-
-OBJPARENT = ./obj
-OBJDIR = $(OBJPARENT)/$(GCCTARGET)
-SRCDIR = ./src
-
-#************************************************************
-
-$(OBJDIR)/sm-custom-mib.a : $(OBJDIR) $(OBJS)
- $(AR) -r $@ $(OBJS)
-
-$(OBJPARENT) :
- mkdir $(OBJPARENT)
-
-$(OBJDIR) : $(OBJPARENT)
- mkdir $(OBJDIR)
-
-$(OBJDIR)/%.o : $(SRCDIR)/%.cpp
- $(CC) $(CFLAGS) -o $@ $<
-
-clean :
- rm -rf $(OBJDIR)
- rm -rf $(OBJPARENT)
diff --git a/application/custom-mib/Makefile_x86 b/application/custom-mib/Makefile_x86
deleted file mode 100644
index bb0f6adfae..0000000000
--- a/application/custom-mib/Makefile_x86
+++ /dev/null
@@ -1,61 +0,0 @@
-#-------------------------#
-# CUSTOM MIB #
-# CUSTOM MIB #
-# Makefile for SNMP agent #
-# ******* LINUX ******* #
-# =====< x86-linux >===== #
-# ( sm-mib ) #
-#-------------------------#
-# by Dušan Stefanović #
-# based on Makefile_polux #
-# by Franck Paris #
-# "Spidcom Technologies" #
-# Date : 11 Dec 2007 #
-#-------------------------#
-
-OBJS += $(OBJDIR)/custom_init_mib.o
-OBJS += $(OBJDIR)/custom_mib.o
-OBJS += $(OBJDIR)/custom_test_mib.o
-
-#************************************************************
-
-GCCROOT = $(COMPILERROOT)
-GCCBIN = $(GCCROOT)/bin
-
-GCCTARGET = x86-linux
-#GCCTOOLS = /usr/local/toolchains/arm-uclinux/bin
-#COMPILERROOT = /usr/local/toolchains/arm-uclinux/
-
-CC = g++
-AR = ar
-CFLAGS=$(DEFINES) $(INCLUDE) -c -O2 -fno-rtti -fno-access-control -fno-exceptions
-INCLUDE = -I./inc -I../sm-agent/inc/agent_pp -I../sm-agent/inc -I../sm-agent/inc/snmp_pp -I../../include -I.
-
-DEFINES = -DFEATURE_AGENT -D_NO_THREADS -DSP_CRISTINA -D__LINUX__ -DSIMULATION_TEST
-
-DEP_H =
-#mib.h mib-interface.h rfc1213.h mib_lib.h
-
-
-OBJPARENT = ./obj
-OBJDIR = $(OBJPARENT)/$(GCCTARGET)
-SRCDIR = ./src
-
-
-#************************************************************
-
-
-$(OBJDIR)/sm-custom-mib.a : $(OBJDIR) $(OBJS)
- $(AR) -r $@ $(OBJS)
-
-$(OBJPARENT) :
- -mkdir $(OBJPARENT)
-
-$(OBJDIR) : $(OBJPARENT)
- -mkdir $(OBJDIR)
-
-$(OBJDIR)/%.o : $(SRCDIR)/%.cpp $(DEP_H)
- $(CC) $(CFLAGS) -o $@ $<
-
-clean :
- -rm -rf $(OBJDIR)