Merge from vendor branch TNF:
[pkgsrc.git] / x11 / qwt / files / Makefile.lib
1 # $NetBSD: Makefile.lib,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
2 #
3 #       Makefile rules for the Qwt Library
4 #       ==================================
5 #       
6
7 include $(QWTDIR)/Makefile.common
8
9
10 # GENERAL SETTINGS
11 #
12 LCXX    =       $(LIBTOOL) --mode=compile $(CXX)
13 INCLUDES =      -I../include -I$(QTINC)
14 LLD     =       $(LIBTOOL) --mode=link $(CXX) -rpath $(QTLIB) -rpath $(PREFIX)/lib -rpath ${X11BASE}/lib \
15                 -version-info 0:2
16
17 #
18 # IMPLICIT RULES
19 #
20 %.lo: %.cpp
21         $(LCXX) $(CXXFLAGS) $(INCLUDES) -c $<
22
23 moc_%.cpp: %.h
24         $(MOC) -o $@ $<
25
26 #
27 # BUILD RULES
28 #
29
30 all: $(LIBSHARED)
31
32 $(LIBSHARED): $(OBJECTS:.o=.lo)
33         $(LLD) $(LDFLAGS) -o libqwt.la $(OBJECTS:.o=.lo)
34
35 clean:
36         -rm -f *.o *.so *.so.* *.a *~
37
38 depend:
39         makedepend $(QTINC) $(QWTINC) *.cpp