File: Makefile.in

package info (click to toggle)
xplanet 0.94-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,624 kB
  • ctags: 1,191
  • sloc: cpp: 9,466; ansic: 6,375; sh: 2,065; makefile: 380; perl: 55
file content (169 lines) | stat: -rw-r--r-- 4,632 bytes parent folder | download
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
SHELL = /bin/sh

CP = @CP@
GZIP = @GZIP@
INSTALL = @INSTALL@
RM = @RM@
STRIP = @STRIP@
TAR = @TAR@
@SET_MAKE@

prefix = @prefix@
bindir = @bindir@
exec_prefix = @exec_prefix@
mandir = @mandir@
auxdir = ${prefix}/@auxdir@
version = @version@
distdir = xplanet-$(version)

CC = @CC@
CXX = @CXX@
CPPFLAGS += @OTHER_CPPFLAGS@ -I.
CXXFLAGS += @FREETYPE_CFLAGS@ @X_CFLAGS@

SRCS = xplanet.cc	\
	@GLUTFUNCS@	\
	Location.cc	\
	Marker.cc	\
	moonpos.cc	\
	Options.cc	\
	Planet.cc	\
	Ring.cc		\
	Satellite.cc	\
	specularMap.cc  \
	ssec.cc		\
	util.cc 

COBJS = getopt.o getopt1.o xp_getopt.o 
OBJS = $(SRCS:.cc=.o) $(COBJS) @XPARSEGEOMETRY@
XPLIBS = libdisplay/libdisplay.a libimage/libimage.a 		\
	libprojection/libprojection.a libsgp4sdp4/libsgp4sdp4.a \
	libannotate/libannotate.a 

LIBDIRS = libannotate libdisplay libimage libprojection libsgp4sdp4

all: @TARGETS@

xplanet: $(OBJS) $(XPLIBS)
	$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) @X_LIBS@ \
@OPENGL_LIBS@ @GRAPHICS_LIBS@ @FREETYPE_LIBS@ \
@ADDITIONAL_LIBS@

xplanetbg: xplanetbg.o orbit.o $(COBJS) @XPARSEGEOMETRY@ libimage/libimage.a
	$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS) @XSS_LIBS@ @X_LIBS@ @GRAPHICS_LIBS@ -lm

libannotate/libannotate.a:
	$(MAKE) -C libannotate

libdisplay/libdisplay.a:
	$(MAKE) -C libdisplay

libimage/libimage.a:
	$(MAKE) -C libimage

libprojection/libprojection.a:
	$(MAKE) -C libprojection

libsgp4sdp4/libsgp4sdp4.a:
	$(MAKE) -C libsgp4sdp4

xplanet.o: xplanet.cc auxfiles.h checkfuncs.h Options.h keywords.h \
 Planet.h util.h libannotate/libannotate.h libdisplay/libdisplay.h \
 libdisplay/DisplayBase.h libimage/libimage.h \
 libprojection/libprojection.h libprojection/ProjectionBase.h \
 libprojection/ProjectionRectangular.h Location.h

glutfuncs.o: glutfuncs.cc checkfuncs.h auxfiles.h xplanet.h \
 libprojection/libprojection.h libprojection/ProjectionBase.h \
 libprojection/ProjectionRectangular.h Location.h

Location.o: Location.cc Location.h util.h

Marker.o: Marker.cc Marker.h Options.h checkfuncs.h keywords.h util.h

moonpos.o: moonpos.cc util.h

Options.o: Options.cc checkfuncs.h auxfiles.h Options.h keywords.h \
 util.h xp_getopt.h libannotate/libannotate.h \
 libprojection/libprojection.h libprojection/ProjectionBase.h \
 libprojection/ProjectionRectangular.h Location.h

Planet.o: Planet.cc Options.h checkfuncs.h keywords.h Planet.h util.h

Ring.o: Ring.cc Location.h Options.h checkfuncs.h keywords.h Ring.h \
 satrings.h util.h

Satellite.o: Satellite.cc Options.h checkfuncs.h keywords.h util.h \
 Satellite.h libsgp4sdp4/sgp4sdp4.h

ssec.o: ssec.cc Options.h checkfuncs.h keywords.h util.h \
 libimage/libimage.h

util.o: util.cc auxfiles.h Options.h checkfuncs.h keywords.h util.h \
 xplanet.h libimage/libimage.h libprojection/libprojection.h \
 libprojection/ProjectionBase.h libprojection/ProjectionRectangular.h \
 Location.h

xplanetbg.o: xplanetbg.cc checkfuncs.h orbit.h xp_getopt.h xplanetbg.h \
 libimage/libimage.h

orbit.o: orbit.cc orbit.h

install: all
	$(INSTALL) -d $(bindir)
	$(INSTALL) xplanet $(bindir)
	$(INSTALL) xplanetbg $(bindir)
	$(INSTALL) -m 755 tkxplanet $(bindir)
	$(INSTALL) -m 755 tzcoord.pl $(bindir)
	$(INSTALL) -d $(mandir)
	$(INSTALL) -d $(mandir)/man1
	$(INSTALL) -m 644 tkxplanet.1 $(mandir)/man1
	$(INSTALL) -m 644 tzcoord.pl.1 $(mandir)/man1
	$(INSTALL) -m 644 xplanet.1 $(mandir)/man1
	$(INSTALL) -m 644 xplanetbg.1 $(mandir)/man1
	$(INSTALL) -m 644 tkxplanet.1 $(mandir)/man1
	$(INSTALL) -m 644 tzcoord.pl.1 $(mandir)/man1
	$(INSTALL) -d $(auxdir)
	-$(CP) -r auxdir/* $(auxdir)

install-strip: install
	$(STRIP) $(bindir)/xplanet
	$(STRIP) $(bindir)/xplanetbg

uninstall:
	-$(RM) -f $(bindir)/xplanet
	-$(RM) -f $(bindir)/xplanetbg
	-$(RM) -f $(bindir)/tkxplanet
	-$(RM) -f $(bindir)/tzcoord.pl
	-$(RM) -f $(mandir)/man1/xplanet.1
	-$(RM) -f $(mandir)/man1/xplanetbg.1
	@echo "*** Not removing " $(auxdir) " ***"

dist: 	
	$(INSTALL) -d $(distdir)
	$(CP) COPYING CREDITS ChangeLog FAQ INSTALL Makefile* README *.c \
	*.cc *.h *.h.in tkxplanet* tzcoord.pl* aclocal.m4 configure* *.1 \
	$(distdir)
	$(CP) -r autoconf $(distdir)
	list='$(LIBDIRS)'; for subdir in $$list; do \
	($(CP) -r $$subdir $(distdir)) \
	done
	$(CP) -r auxdir $(distdir)
	$(TAR) cf $(distdir).tar $(distdir)
	$(GZIP) -9 $(distdir).tar
	-$(RM) -fr $(distdir)

.PHONY : all clean distclean
clean:
	-$(RM) -f *.o
	list='$(LIBDIRS)'; for subdir in $$list; do	\
	(cd $$subdir; $(MAKE) clean)			\
	done

distclean:
	-$(RM) -f *.o auxfiles.h checkfuncs.h xplanet	\
	xplanetbg xplanetbg.h					\
	config.* tkxplanet tzcoord.pl Makefile;			\
	list='$(LIBDIRS)'; for subdir in $$list; do		\
	(cd $$subdir; $(MAKE) distclean)			\
	done