07c67df8fd
components. This allows users of Qt to specify QTDIR=/path/to/qt instead of having to patch all configure scripts and makefiles to look for alternate names. This is the recommended approach from Troll Tech (Qt authors). update pkgs which use qt1 to reflect this.
40 lines
645 B
Text
40 lines
645 B
Text
# $NetBSD: Makefile.apps,v 1.3 2000/03/28 00:09:23 dmcmahill 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$(X11BASE) -Wl,-R$(X11BASE) -L$(QTLIB) -Wl,-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)
|
|
|