summaryrefslogtreecommitdiff
path: root/editors/qemacs/files/patch-Makefile
blob: dc8d946d5a28168ea9ab96b3c99fb5591101c287 (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
--- Makefile.orig	Thu May  2 02:27:40 2002
+++ Makefile	Fri Nov 24 15:53:28 2006
@@ -42,17 +42,17 @@
 #
 CONFIG_PNG_OUTPUT=y
 
-HOST_CC=gcc
-CC=$(HOST_CC)
+HOST_CC?=gcc
+CC?=$(HOST_CC)
 PROFILE=
-CFLAGS=-Wall -O2 -g $(PROFILE)
+CFLAGS?=-Wall -O2 -g $(PROFILE)
 #CFLAGS+=-fomit-frame-pointer
 #CPU dependent flags
-CFLAGS+=-m386 -malign-functions=0
-LDFLAGS= $(PROFILE)
+#CFLAGS+=-m386 -malign-functions=0
+LDFLAGS?= $(PROFILE)
 STRIP=strip -s -R .comment -R .note
 DEFINES=
-prefix=/usr/local
+prefix?=/usr/local
 
 ########################################################
 # do not modify after this
@@ -136,7 +136,7 @@
 DEFINES+= -DCONFIG_XFT
 LIBS+=-lXft
 endif
-LIBS+= -L/usr/X11R6/lib -lXext -lX11
+LIBS+= -L$(X11BASE)/lib -lXext -lX11
 endif
 
 ifdef CONFIG_HTML