40 lines
642 B
Text
40 lines
642 B
Text
# $NetBSD: Makefile.apps,v 1.4 2012/06/16 03:21:22 dholland 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)
|
|
|