A
amit
Hi,
I have got GNU c++ compiler installed on solaris.I want to create a
shared object library on solaris for an External stored procedure.Got
makefil.sol to be used on solaris as under :
CC=CC
FLAGS=+w -mt -g0 -KPIC -D_REENTRANT -DRW_MULTI_THREAD -DRW_NO_STL
-DUNIX -DCC
DEFINES=-DSunOS
INCLUDEDIRS=-I$(PMHOME)/ExtProc/include
INFLIBS=-L$(PMHOME) -lpmtx
SYSLIBS=-lc -lm -ldl
..SUFFIXES : .cpp
..cpp.o : ;$(CC) -c $(FLAGS) $(DEFINES) $(INCLUDEDIRS) $*.cpp -o $*.o
TARGET=libRowGenBase.so.1
OBJS=$(SRCS:%.cpp=%.o)
SRCS= \
atxrowgenbase.cpp \
version.cpp \
genrows.cpp
all : $(TARGET)
$(TARGET) : $(OBJS)
CC -o $(TARGET) -G -mt $(OBJS) $(SYSLIBS) $(INFLIBS)
I am wondering how should i compile this stuff using makefile so i
could get shared object on solaris.Thankx in advance.
I have got GNU c++ compiler installed on solaris.I want to create a
shared object library on solaris for an External stored procedure.Got
makefil.sol to be used on solaris as under :
CC=CC
FLAGS=+w -mt -g0 -KPIC -D_REENTRANT -DRW_MULTI_THREAD -DRW_NO_STL
-DUNIX -DCC
DEFINES=-DSunOS
INCLUDEDIRS=-I$(PMHOME)/ExtProc/include
INFLIBS=-L$(PMHOME) -lpmtx
SYSLIBS=-lc -lm -ldl
..SUFFIXES : .cpp
..cpp.o : ;$(CC) -c $(FLAGS) $(DEFINES) $(INCLUDEDIRS) $*.cpp -o $*.o
TARGET=libRowGenBase.so.1
OBJS=$(SRCS:%.cpp=%.o)
SRCS= \
atxrowgenbase.cpp \
version.cpp \
genrows.cpp
all : $(TARGET)
$(TARGET) : $(OBJS)
CC -o $(TARGET) -G -mt $(OBJS) $(SYSLIBS) $(INFLIBS)
I am wondering how should i compile this stuff using makefile so i
could get shared object on solaris.Thankx in advance.