summaryrefslogtreecommitdiff
path: root/misc/astrolog/files/patch-aa
blob: 929ff56752e78d7d2477c28181f6e72b6062c89a (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
--- makefile.orig	2002-04-27 22:48:52.000000000 +0400
+++ makefile	2012-11-21 12:12:08.000000000 +0400
@@ -17,6 +17,7 @@
 # edited, is compile each source file, and link them together with the math
 # library, and if applicable, the main X library.
 #
+.PATH: src
 NAME = astrolog
 OBJ = astrolog.o data.o data2.o general.o io.o\
  calc.o matrix.o charts0.o charts1.o charts2.o charts3.o\
@@ -28,9 +29,15 @@
 # LIBS = -lm -lX11
 # with Debian Linux and X windows worked 
 # LIBS = -lm -L/usr/X11R6/lib -lX11
-LIBS= -lm
+.if defined(X11)
+LIBS = -L${LOCALBASE}/lib -lX11 -lm
+CFLAGS += -Isrc -DX11 -I${LOCALBASE}/include -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
+.else
+LIBS = -lm
+CFLAGS += -Isrc -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
+.endif
 #
-CFLAGS = -O -DHPUX_SOURCE
+#CFLAGS = -O -DHPUX_SOURCE
 #
 # CFLAGS from 5.41 original sources
 # CFLAGS = -g -Aa -DHPUX_SOURCE