--- ./Makefile 2006-10-05 08:37:03.000000000 +0000 +++ ./Makefile 2007-04-07 19:06:00.000000000 +0000 @@ -11,6 +11,8 @@ PACKAGE = $(ARCHIVE) TMPDIR = /tmp +LIBS=-lglcddrivers -lglcdgraphics + LIBNAME = libglcdprocdriver.so SONAME = $(LIBNAME).1 @@ -24,6 +26,9 @@ all: $(LIBNAME) +$(OBJS): %.o: %.c + $(CXX) -c -fPIC $(CXXFLAGS) $< -o $@ + $(LIBNAME): $(OBJS) - $(CXX) $(CXXFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@ + $(CXX) $(LDFLAGS) -shared $(OBJS) $(LIBS) -Wl,-soname="$(SONAME)" -o $@