File: Makefile

package info (click to toggle)
blender 2.42a-7
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 60,700 kB
  • ctags: 83,393
  • sloc: ansic: 576,763; cpp: 187,760; python: 48,472; sh: 15,785; makefile: 4,298; perl: 2,082; asm: 1,471; java: 8
file content (50 lines) | stat: -rw-r--r-- 923 bytes parent folder | download | duplicates (8)
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
top_srcdir=../..
VPATH=$(top_srcdir)/demo
top_builddir=..
-include $(top_builddir)/Make.conf

TARGET = FTGLDemo

all: $(TARGET)

SRCS = \
	FTGLDemo.cpp			\
	tb.c				\
	trackball.c			\

HEADERS = \
	tb.h				\
	trackball.h			\

OBJS = $(patsubst %.cpp,%.$(OBJEXT),$(filter %.cpp,$(SRCS)))
OBJS += $(patsubst %.c,%.$(OBJEXT),$(filter %.c,$(SRCS)))

ALL_OBJS = $(OBJS)

CPPFLAGS += $(FT2_CFLAGS)
CPPFLAGS += -I$(top_srcdir)/src

LIBS += $(FT2_LIBS) $(GLUT_LIBS)

ifeq ($(HAVE_GLUT),yes)
FTGLDemo: $(OBJS)
	$(LIBTOOL) --mode=link $(CXX) $^ -o $@ $(top_builddir)/src/libftgl.la $(LIBGLUT) $(LIBS)

install-local: FTGLDemo
	$(INSTALL) -d -m 0755 $(bindir)
	$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(TARGET) $(bindir)
else
FTGLDemo:
	@echo GLUT not available, demo won\'t be compiled

install-local:
endif

clean-local:
	$(RM) $(ALL_OBJS)

distclean-local:
	$(RM) $(TARGET)
	$(RM) -r .libs

include $(top_builddir)/Make.rules