summaryrefslogtreecommitdiff
path: root/x11/qwt/files/Makefile.lib
blob: 1e31bc4481ff55badfd52ac8b02128bfb9bd9dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile.lib,v 1.1.1.1 1999/11/17 18:32:29 drochner 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 $(PREFIX)/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