summaryrefslogtreecommitdiff
path: root/x11/qwt/files/Makefile.apps
blob: a648136555915e14fe298828050bb0ad7640ecc6 (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
40
# $NetBSD: Makefile.apps,v 1.1.1.1 1999/11/17 18:32:29 drochner Exp $
#
#	Makefile rules for Qwt examples
#	===============================
#	

PREFIX?= /usr/X11R6
include $(QWTDIR)/Makefile.common

#
# GENERAL SETTINGS
#
CC	=	gcc
CFLAGS	=	-O2
INCLUDES =	-I$(QWTINC) -I$(QTINC)
LD	=	$(CC)
LDFLAGS	=	
LIBS	=	-L$(QTLIB) -W,l -R$(QTLIB) -lqt -lXext -lX11 -lqwt -lm

#
# IMPLICIT RULES
#
%.o: %.cpp
	$(CC) -c $(CFLAGS) $(INCLUDES) -o $@ $<

moc_%.cpp: %.h
	$(MOC) -o $@ $<


#
# BUILD RULES
#
all: $(APPNAME)

$(APPNAME): $(OBJECTS)
	$(LD) $(LDFLAGS) -o $(APPNAME) $(OBJECTS) $(LIBS)

clean:
	-rm -f $(OBJECTS) $(APPNAME)