cd1a4973cfd416a809af81987e5e0347697e388d
[goodguy/cinelerra.git] / cinelerra-5.1 / db / utils / Makefile
1 export TOPDIR ?= $(CURDIR)/../..
2 include $(TOPDIR)/global_config
3
4 ifneq ($(WANT_COMMERCIAL),no)
5
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
10 LDFLAGS:=
11
12 TARGETS:=clip_accesses \
13         clip_data \
14         clip_del \
15         clip_dups \
16         clip_ls \
17         dbcounts \
18         delallclips \
19         frame_clips \
20         framediff \
21         frameweights \
22         histeq \
23         histplot \
24         pbm2frame \
25         pbm2key \
26         timelinechk \
27         clip_assets \
28         clip_frames \
29         clip_weights \
30         dbtv \
31         frame2pbm \
32         framekey \
33         new_db \
34         root_info \
35         dmp \
36         cpdb \
37         path_ls \
38         xtv
39
40 #       add_path_pos \
41 #       dbcvt \
42
43 all:    $(TARGETS)
44
45 dbtv:   dbtv.C
46         $(CXX) $(CXXFLAGS) $(LDFLAGS) dbtv.C $(LDLIBS) -lX11 -o $@
47
48 XTV_MEDIA_OBJS := $(TOPDIR)/cinelerra/$(OBJDIR)/mediadb.o $(TOPDIR)/cinelerra/$(OBJDIR)/filexml.o
49
50 XTV_LIBS := $(TOPDIR)/libzmpeg3/$(OBJDIR)/libzmpeg3.a
51 XTV_LIBS += $(TOPDIR)/db/$(OBJDIR)/db.a
52 XTV_LIBS += $(libraries)
53
54 XTV_INCLUDES := -I$(TOPDIR) -I$(TOPDIR)/guicast
55 XTV_INCLUDES += $(static_incs)
56
57 xtv:    xtv.C $(XTV_MEDIA_OBJS)
58         @echo c++ -pthread $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) -o xtv
59         @c++ -pthread $(XTV_INCLUDES) $(CXXFLAGS) xtv.C $(XTV_MEDIA_OBJS) $(XTV_LIBS) -o xtv
60
61 install:
62
63 clean:
64         rm -f $(TARGETS) *.o a.out
65
66 else
67 #not WANT_COMMERCIAL
68 all:
69 install:
70 clean:
71 endif