2 HAVE_LIBXXF86VM := $(shell if [ -f /usr/X11R6/include/X11/extensions/xf86vmode.h ]; then echo y; fi )
13 OBJDIR := $(shell uname --machine)
15 ifeq ($(origin CFLAGS), environment)
23 ############################# C++ and C COMPILERS
25 ############################# FINAL DESTINATION FOR INSTALLATION BINARIES
28 LIBPREFIX = $(PREFIX)/lib
30 ########################## THE COMPILER
34 PLUGINDIR := /usr/lib/cinelerra
36 ifneq ($(HAVE_CFLAGS), y)
37 CFLAGS = -O2 -fomit-frame-pointer -falign-loops=2 -falign-jumps=2 -falign-functions=2
46 ifeq ($(HAVE_LIBXXF86VM), y)
47 CFLAGS += -DHAVE_LIBXXF86VM
52 ifeq ($(HAVE_ESOUND), y)
53 ESOUNDCFLAGS = -DHAVE_ESOUND -I../esound
54 ESOUNDLIBS = ../esound/$(OBJDIR)/libesound.a
59 CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
60 #CFLAGS += -I. # Caused fileavi.C to fail
62 FREETYPE_DIR = ../../freetype-2.1.4
63 CFLAGS += -I$(FREETYPE_DIR)/include -I../../
69 ifeq ($(HAVE_FIREWIRE), y)
70 CFLAGS += -DHAVE_FIREWIRE
73 ifeq ($(HAVE_ALSA), y)
74 CFLAGS += $(ALSA_CFLAGS)
77 ifeq ($(OBJDIR), alpha)
78 CXXREPOSITORY = cxx_repository/*.o
81 $(shell sh -c 'if ! test -d $(OBJDIR)\; then mkdir $(OBJDIR)\; fi' )
83 ########################## LINKER
85 LFLAGS = -L/usr/X11R6/lib
86 PLUGINLFLAGS = -L../../bcbase/$(OBJDIR)/ -L/usr/X11R6/lib
87 LDLINKER = g++ -shared
90 ############### MAKEFILE MACROS
92 LOOP_BEGIN = @ for i in $(DIRS) ; \