~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to extern/bFTGL/unix/demo/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
top_srcdir=../..
 
2
VPATH=$(top_srcdir)/demo
 
3
top_builddir=..
 
4
-include $(top_builddir)/Make.conf
 
5
 
 
6
TARGET = FTGLDemo
 
7
 
 
8
all: $(TARGET)
 
9
 
 
10
SRCS = \
 
11
        FTGLDemo.cpp                    \
 
12
        tb.c                            \
 
13
        trackball.c                     \
 
14
 
 
15
HEADERS = \
 
16
        tb.h                            \
 
17
        trackball.h                     \
 
18
 
 
19
OBJS = $(patsubst %.cpp,%.$(OBJEXT),$(filter %.cpp,$(SRCS)))
 
20
OBJS += $(patsubst %.c,%.$(OBJEXT),$(filter %.c,$(SRCS)))
 
21
 
 
22
ALL_OBJS = $(OBJS)
 
23
 
 
24
CPPFLAGS += $(FT2_CFLAGS)
 
25
CPPFLAGS += -I$(top_srcdir)/src
 
26
 
 
27
LIBS += $(FT2_LIBS) $(GLUT_LIBS)
 
28
 
 
29
ifeq ($(HAVE_GLUT),yes)
 
30
FTGLDemo: $(OBJS)
 
31
        $(LIBTOOL) --mode=link $(CXX) $^ -o $@ $(top_builddir)/src/libftgl.la $(LIBGLUT) $(LIBS)
 
32
 
 
33
install-local: FTGLDemo
 
34
        $(INSTALL) -d -m 0755 $(bindir)
 
35
        $(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(TARGET) $(bindir)
 
36
else
 
37
FTGLDemo:
 
38
        @echo GLUT not available, demo won\'t be compiled
 
39
 
 
40
install-local:
 
41
endif
 
42
 
 
43
clean-local:
 
44
        $(RM) $(ALL_OBJS)
 
45
 
 
46
distclean-local:
 
47
        $(RM) $(TARGET)
 
48
        $(RM) -r .libs
 
49
 
 
50
include $(top_builddir)/Make.rules