7d872eab35
new libtool. While I'm here: pass only one -rpath option to libtool link so that the install directory gets set correctly.
38 lines
662 B
Makefile
38 lines
662 B
Makefile
# $NetBSD: Makefile.lib,v 1.3 2001/03/05 12:47:13 skrll Exp $
|
|
#
|
|
# Makefile rules for the Qwt Library
|
|
# ==================================
|
|
#
|
|
|
|
include $(QWTDIR)/Makefile.common
|
|
|
|
|
|
# GENERAL SETTINGS
|
|
#
|
|
LCXX = $(LIBTOOL) --mode=compile $(CXX)
|
|
INCLUDES = -I../include -I$(QTINC)
|
|
LLD = $(LIBTOOL) --mode=link $(CXX) -rpath ${X11BASE}/lib -version-info 0:2
|
|
|
|
#
|
|
# IMPLICIT RULES
|
|
#
|
|
%.lo: %.cpp
|
|
$(LCXX) $(CXXFLAGS) $(INCLUDES) -c $<
|
|
|
|
moc_%.cpp: %.h
|
|
$(MOC) -o $@ $<
|
|
|
|
#
|
|
# BUILD RULES
|
|
#
|
|
|
|
all: $(LIBSHARED)
|
|
|
|
$(LIBSHARED): $(OBJECTS:.o=.lo)
|
|
$(LLD) $(LDFLAGS) -o libqwt.la $(OBJECTS:.o=.lo)
|
|
|
|
clean:
|
|
-rm -f *.o *.so *.so.* *.a *~
|
|
|
|
depend:
|
|
makedepend $(QTINC) $(QWTINC) *.cpp
|