File: Makefile.in

package info (click to toggle)
lightlab 0.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 492 kB
  • ctags: 207
  • sloc: sh: 2,494; ansic: 1,301; makefile: 138
file content (128 lines) | stat: -rw-r--r-- 3,216 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
# 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 config.h version.h
LL_SRCS		= lightlab.c callbacks.c interface.c support.c scene.c \
		  teapot.c sphere.c
LL_OBJS		= lightlab.o callbacks.o interface.o support.o scene.o \
		  teapot.o sphere.o
LL_LIBS		= $(GL_LIBS) $(GTK_LIBS) $(LIBS)
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)

TAR		= tar
COMPRESS	= gzip
COMPRESS_EXT	= gz


default: all
all: $(EXES)

install:   install-program
uninstall: uninstall-program

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


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)