1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/misc/qhacc/files/patch-aa
R. Imura 3e28ff871c Initial import of qhacc-0.2.6.
Simple QT2-based financial manager.

PR:		16524
Submitted by:	Will Andrews <andrews@technologist.com>
2000-02-13 04:09:42 +00:00

55 lines
1.4 KiB
Plaintext

--- Makefile Sun Jan 2 20:30:54 2000
+++ Makefile.new Thu Feb 3 00:52:21 2000
@@ -3,11 +3,11 @@
SYSCONF_CC = gcc
# Compiling with support libraries
-SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include
+SYSCONF_CXXFLAGS_QT = -I$(QTDIR)/include/qt2
# Linking with support libraries
SYSCONF_LFLAGS_QT = -L$(QTDIR)/lib
-SYSCONF_LIBS_QT = -lqt
+SYSCONF_LIBS_QT = -lqt2
# Linking applications
SYSCONF_LINK = g++
@@ -15,7 +15,7 @@
SYSCONF_LIBS =
# Meta-object compiler
-SYSCONF_MOC = $(QTDIR)/bin/moc
+SYSCONF_MOC = $(QTDIR)/bin/moc2
# Compiling application source
#SYSCONF_CXXFLAGS = -pipe -DNO_DEBUG -O2
@@ -26,12 +26,13 @@
####### Compiler, tools and options
-CXX = $(SYSCONF_CXX)
-CXXFLAGS= $(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS)
-CC = $(SYSCONF_CC)
-CFLAGS = $(SYSCONF_CFLAGS)
-INCPATH =
-LFLAGS = $(SYSCONF_LFLAGS_QT) $(SYSCONF_LFLAGS_X11) $(SYSCONF_LFLAGS)
+QTDIR ?= /usr/X11R6
+CXX ?= c++
+CXXFLAGS?= -O -pipe
+CC ?= cc
+CFLAGS ?= -O -pipe
+INCPATH = $(SYSCONF_CXXFLAGS_QT)
+LFLAGS = $(CXXFLAGS) $(SYSCONF_LFLAGS_QT) $(SYSCONF_LIBS_QT)
LIBS = $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_X11) $(SYSCONF_LIBS)
MOC = $(SYSCONF_MOC)
@@ -80,7 +81,7 @@
all: $(DESTDIR)$(TARGET)
$(DESTDIR)$(TARGET): $(OBJECTS) $(OBJMOC)
- $(SYSCONF_LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS)
+ $(CXX) $(LFLAGS) $(INCPATH) -o $(TARGET) $(OBJECTS) $(OBJMOC)
moc: $(SRCMOC)