summaryrefslogtreecommitdiff
path: root/x11/qwt/files/Makefile.apps
diff options
context:
space:
mode:
Diffstat (limited to 'x11/qwt/files/Makefile.apps')
-rw-r--r--x11/qwt/files/Makefile.apps40
1 files changed, 40 insertions, 0 deletions
diff --git a/x11/qwt/files/Makefile.apps b/x11/qwt/files/Makefile.apps
new file mode 100644
index 00000000000..a6481365559
--- /dev/null
+++ b/x11/qwt/files/Makefile.apps
@@ -0,0 +1,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)
+