Morten's Daily Clue
Wednesday, August 25, 2010
How to make Makefile for a shared library?
1.
CFLAGS = -g $(INC) -fPIC <- -fPIC
2.
TARGET = libio.so.1
all : $(TARGET)
$(TARGET) : $(OBJS)
$(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS)
<- -shared -Wl,-soname,$@
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment