Hash :
90bebd45
Author :
Date :
2003-04-14T09:28:53
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