|
Lines 10-18
Link Here
|
| 10 |
# one executable, xephem. |
10 |
# one executable, xephem. |
| 11 |
|
11 |
|
| 12 |
# These -I and -L flags point to the supporting XEphem libraries |
12 |
# These -I and -L flags point to the supporting XEphem libraries |
| 13 |
LIBINC = -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -I../../libpng -I../../libz |
13 |
LIBINC = -I../../libastro -I../../libip -I../../liblilxml |
| 14 |
LIBLNK = -L../../libastro -L../../libip -L../../liblilxml -L../../libjpegd -L../../libpng -L../../libz |
14 |
LIBLNK = -L../../libastro -L../../libip -L../../liblilxml |
| 15 |
LIBLIB = -lastro -lip -llilxml -ljpegd -lpng -lz |
15 |
LIBLIB = -lastro -lip -llilxml -ljpeg -lpng -lz |
| 16 |
|
16 |
|
| 17 |
# MOTIFI is the directory containing the Xm directory of include files. |
17 |
# MOTIFI is the directory containing the Xm directory of include files. |
| 18 |
# MOTIFL is the directory containing the libXm.a library. |
18 |
# MOTIFL is the directory containing the libXm.a library. |
|
Lines 30-41
Link Here
|
| 30 |
endif |
30 |
endif |
| 31 |
|
31 |
|
| 32 |
# for linux and Apple OS X |
32 |
# for linux and Apple OS X |
| 33 |
CC = gcc |
|
|
| 34 |
CLDFLAGS = -g |
| 35 |
CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/opt/X11/include |
| 36 |
LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/opt/X11/lib |
| 37 |
XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11 |
33 |
XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11 |
| 38 |
LIBS = $(XLIBS) $(LIBLIB) -lm |
34 |
CFLAGS := $(LIBINC) $(CFLAGS) |
|
|
35 |
LIBS = $(LIBLNK) $(XLIBS) $(LIBLIB) -lm |
| 39 |
|
36 |
|
| 40 |
# static linking on Apple using X11 libs from ports |
37 |
# static linking on Apple using X11 libs from ports |
| 41 |
# CC = gcc |
38 |
# CC = gcc |
|
Lines 68-76
Link Here
|
| 68 |
# MOTIFI = -I/usr/include |
65 |
# MOTIFI = -I/usr/include |
| 69 |
# MOTIFL = -L/usr/lib |
66 |
# MOTIFL = -L/usr/lib |
| 70 |
# CC = cc |
67 |
# CC = cc |
| 71 |
# CLDFLAGS = |
68 |
# CLDFLAGS = |
| 72 |
# CFLAGS = $(LIBINC) $(CLDFLAGS) -O -I$(MOTIFI) |
69 |
# CFLAGS = $(LIBINC) $(CLDFLAGS) -O -I$(MOTIFI) |
| 73 |
# LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) |
70 |
# LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) |
| 74 |
# XLIBS = -lXm -lXt -lX11 |
71 |
# XLIBS = -lXm -lXt -lX11 |
| 75 |
# LIBS = $(XLIBS) $(LIBLIB) -lsocket -lnsl -lc -lm /usr/ucblib/libucb.a |
72 |
# LIBS = $(XLIBS) $(LIBLIB) -lsocket -lnsl -lc -lm /usr/ucblib/libucb.a |
| 76 |
# Note: if you get regex undefined, add -lgen to the end of LIBS. |
73 |
# Note: if you get regex undefined, add -lgen to the end of LIBS. |
|
Lines 195-206
Link Here
|
| 195 |
nroff -man $? > $@ |
192 |
nroff -man $? > $@ |
| 196 |
|
193 |
|
| 197 |
libs: |
194 |
libs: |
| 198 |
cd ../../libastro; make |
195 |
$(MAKE) -C ../../libastro |
| 199 |
cd ../../libip; make |
196 |
$(MAKE) -C ../../libip |
| 200 |
cd ../../libjpegd; make |
197 |
$(MAKE) -C ../../liblilxml |
| 201 |
cd ../../liblilxml; make |
|
|
| 202 |
cd ../../libpng; make |
| 203 |
cd ../../libz; make |
| 204 |
|
198 |
|
| 205 |
clean: |
199 |
clean: |
| 206 |
rm -fr *.o ../../lib*/*.[ao] |
200 |
rm -fr *.o ../../lib*/*.[ao] |