blob: ce038c73967955c3089530735df33eb7eab96cd4 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
--- 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)
|