1 export TOPDIR ?= $(CURDIR)/../..
2 include $(TOPDIR)/global_config
4 ifneq ($(WANT_COMMERCIAL),no)
6 $(shell mkdir -p $(OBJDIR))
7 $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
8 CXXFLAGS:=-ggdb -I.. -Wall `cat $(OBJDIR)/c_flags`
9 LDLIBS:=../$(OBJDIR)/db.a
12 TARGETS:=clip_accesses \
46 $(CXX) $(CXXFLAGS) $(LDFLAGS) dbtv.C $(LDLIBS) -lX11 -o $@
48 XTV_MEDIA_OBJS := $(TOPDIR)/cinelerra/$(OBJDIR)/mediadb.o
49 XTV_MEDIA_OBJS += $(TOPDIR)/cinelerra/$(OBJDIR)/filexml.o
50 XTV_MEDIA_OBJS += $(TOPDIR)/guicast/$(OBJDIR)/mutex.o
51 XTV_MEDIA_OBJS += $(TOPDIR)/guicast/$(OBJDIR)/bctrace.o
53 XTV_LIBS := $(TOPDIR)/libzmpeg3/$(OBJDIR)/libzmpeg3.a
54 XTV_LIBS += $(TOPDIR)/db/$(OBJDIR)/db.a
55 XTV_LIBS += $(libraries)
57 XTV_INCLUDES := -I$(TOPDIR) -I$(TOPDIR)/guicast
58 XTV_INCLUDES += $(static_incs)
60 xtv: xtv.C $(XTV_MEDIA_OBJS)
61 @echo c++ -pthread $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) -o xtv
62 @c++ -pthread $(XTV_INCLUDES) $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) $(XTV_LIBS) -o xtv
67 rm -f $(TARGETS) *.o a.out