summaryrefslogtreecommitdiff
path: root/misc/icemc/files/patch-Makefile
blob: f06deb4b50416130c6e7cb2298819861e0c825cc (plain) (blame)
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
--- Makefile.orig	Mon Jun  9 18:24:33 2003
+++ Makefile	Mon Jun  9 18:29:03 2003
@@ -13,25 +13,25 @@
 # QTDIR =       /usr/lib/qt
 
 # DESTDIR (location (base without ..."/bin") for installing)
-DESTDIR = /usr/local
+DESTDIR = ${PREFIX}
 
 ####### Compiler, tools and options
 
 # INCPATH specify where the includefiles are
-INCPATH	=	-I$(QTDIR)/include
+INCPATH	=	${QTCPPFLAGS}
 # LFLAGS specify where the (qt) libraries are
 LFLAGS	=	-L$(QTDIR)/lib
 
-CC	=	gcc
-CXX	=	g++
-CFLAGS	=	-pipe -DNO_DEBUG
-CXXFLAGS=	-pipe -DNO_DEBUG -Wall -ansi
-LINK	=	g++
-LIBS    =       $(SUBLIBS) -lqt
+#CC	=	gcc
+#CXX	=	g++
+CFLAGS	+=	-pipe -DNO_DEBUG
+CXXFLAGS+=	-pipe -DNO_DEBUG -Wall -ansi
+LINK	=	${CXX}
+LIBS    =       ${QTCFGLIBS} ${LIBQT}
 # you might try this if icemc won't link or segfaults when starting up:
 #LIBS	=	$(SUBLIBS) -lqt-mt
-MOC	=	$(QTDIR)/bin/moc
-UIC	=	$(QTDIR)/bin/uic
+#MOC	=	$(QTDIR)/bin/moc
+UIC	=	$(X11BASE)/bin/uic
 
 TAR	=	tar -cf
 GZIP	=	gzip -9f