File: Makefile.in

package info (click to toggle)
lightlab 0.3-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 620 kB
  • ctags: 246
  • sloc: sh: 2,554; ansic: 1,843; makefile: 163
file content (156 lines) | stat: -rw-r--r-- 4,330 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
# driver/Makefile.in --- lightlab, Copyright (c) 2002 Jamie Zawinski.
# the `configure' script generates `Makefile' from this file.

@SET_MAKE@
.SUFFIXES:
.SUFFIXES: .c .o

srcdir		= @srcdir@
VPATH		= @srcdir@

install_prefix	=
prefix		= @prefix@
exec_prefix	= @exec_prefix@
bindir		= @bindir@
mandir		= @mandir@
man1dir		= $(mandir)/man1
mansuffix	= 1

CC		= @CC@
CFLAGS		= @CFLAGS@
LDFLAGS		= @LDFLAGS@
DEFS		= @DEFS@
GTK_DEFS	= $(DEFS) -DDEFAULT_ICONDIR='"$(GNOME_ICONDIR)"'

LIBS		= @LIBS@

SHELL		= /bin/sh
INSTALL		= @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT  = @INSTALL_SCRIPT@
INSTALL_DATA	= @INSTALL_DATA@

X_CFLAGS	= @X_CFLAGS@
X_LIBS		= @X_LIBS@
X_PRE_LIBS	= @X_PRE_LIBS@
X_EXTRA_LIBS	= @X_EXTRA_LIBS@

# Note:
#
# X_LIBS would more properly be called X_LDFLAGS (it contains the -L args.)
# X_PRE_LIBS contains extra libraries you have to link against on some systems,
#         and that must come before -lX11.  (e.g., -lSM and -lICE.)
# X_EXTRA_LIBS contains extra libraries needed by X that aren't a part of X.
#         (e.g., -lsocket, -lnsl, etc.)
#
# I think (but am not totally sure) that LIBS is also really "LDFLAGS".


INCLUDES	= -I. -I$(srcdir) @INCLUDES@
GTK_LIBS	= @GTK_LIBS@
GL_LIBS		= @GL_LIBS@

LL_HDRS		= lightlab.h callbacks.h interface.h support.h scene.h \
		  teapot.h sphere.h trackball.h config.h version.h
LL_SRCS		= lightlab.c callbacks.c interface.c support.c scene.c \
		  teapot.c sphere.c trackball.c
LL_OBJS		= lightlab.o callbacks.o interface.o support.o scene.o \
		  teapot.o sphere.o trackball.o
LL_LIBS		= $(GL_LIBS) $(GTK_LIBS) $(LIBS)
LL_MEN		= lightlab.man
EXES		= lightlab

TARFILES	= README configure configure.in Makefile.in config.h.in \
		  install-sh config.guess config.sub \
		  lightlab.glade mk-lightlab.c leopard.xpm \
		  $(LL_SRCS) $(LL_HDRS) $(LL_MEN)

TAR		= tar
COMPRESS	= gzip
COMPRESS_EXT	= gz


default: all
all: $(EXES)

install:   install-program install-man
uninstall: uninstall-program uninstall-man

install-strip:
	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' \
		install

install-program: $(EXES)
	@if [ ! -d $(install_prefix)$(bindir) ]; then			\
	  $(INSTALL_DIRS) $(install_prefix)$(bindir) ;			\
	 fi
	$(INSTALL_PROGRAM) $(EXES) $(install_prefix)$(bindir)/

uninstall-program:
	@for program in $(EXES); do					\
	  echo rm -f $(install_prefix)$(bindir)/$$program ;		\
	  rm -f $(install_prefix)$(bindir)/$$program ;			\
	done

install-man: $(LL_MEN)
	@men="$(LL_MEN)" ;						\
	if [ ! -d $(install_prefix)$(man1dir) ]; then			\
	  $(INSTALL_DIRS) $(install_prefix)$(man1dir) ;			\
	 fi ;								\
	for man in $$men; do						\
	  instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;	\
	  echo $(INSTALL_DATA) $(srcdir)/$$man				\
	   $(install_prefix)$(man1dir)/$$instname ;			\
	  $(INSTALL_DATA) $(srcdir)/$$man				\
	    $(install_prefix)$(man1dir)/$$instname ;			\
	done

uninstall-man:
	@men="$(LL_MEN)" ;						\
	for man in $$men; do						\
	  instname=`echo $$man | sed 's/\.man$$/\.$(mansuffix)/'` ;	\
	  echo rm -f $(install_prefix)$(man1dir)/$$instname ;		\
	  rm -f $(install_prefix)$(man1dir)/$$instname ;		\
	done

clean:
	-rm -f *.o a.out core $(EXES)

distclean: clean
	-rm -f Makefile TAGS config.cache config.log config.status config.h
	-rm -f *~ "#"*

TAGS: tags
tags:
	find $(srcdir) -name '*.[chly]' -print | xargs etags -a


# How we build object files in this directory.
.c.o:
	$(CC) -c $(INCLUDES) $(DEFS)  $(CFLAGS) $(X_CFLAGS) $<


# The executables linked in this directory.
#
lightlab: $(LL_OBJS)
	$(CC) $(LDFLAGS) -o $@ $(LL_OBJS) $(LL_LIBS)

tar:
	@NAME=`sed -n							    \
  's/[^0-9]*\([0-9]\.[0-9][0-9]*\).*/lightlab-\1/p' version.h` ;	    \
  rm -rf $$NAME ; ln -s . $$NAME ;					    \
  echo creating tar file $${NAME}.tar.$(COMPRESS_EXT)... ;		    \
  $(TAR) -vchf -							    \
    `echo $(TARFILES) | sed "s|^|$$NAME/|g; s| | $$NAME/|g" `		    \
   | $(COMPRESS) > $${NAME}.tar.$(COMPRESS_EXT) ;			    \
  rm $$NAME ;								    \
  ls -ldF $${NAME}.tar.$(COMPRESS_EXT)

# dependencies

callbacks.o: callbacks.h interface.h support.h lightlab.h
interface.o: callbacks.h interface.h support.h
lightlab.o:  callbacks.h support.h interface.h lightlab.h version.h scene.h
lightlab.o:  trackball.h leopard.xpm
scene.o:     lightlab.h scene.h teapot.h sphere.h
support.o:   support.h teapot.h