]> git.sesse.net Git - mlt/blob - src/melt/Makefile
A little debugging.
[mlt] / src / melt / Makefile
1 include ../../config.mak
2
3 OBJS = melt.o \
4            io.o
5
6 CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
7
8 LDFLAGS += -L../framework -lmlt -lpthread
9
10 SRCS := $(OBJS:.o=.c)
11
12 ifeq ($(targetos), MinGW)
13 ifeq (, $(findstring MELT_NOSDL, $(CFLAGS)))
14 CFLAGS += $(shell sdl-config --cflags)
15 LDFLAGS += $(shell sdl-config --libs)
16 endif
17 bindir = $(prefix)
18 endif
19
20 all: $(meltname)
21
22 $(meltname): $(OBJS)
23                 $(CC) -o $@ $(OBJS) $(LDFLAGS)
24
25 depend: $(SRCS)
26                 $(CC) -MM $(CFLAGS) $^ 1>.depend
27
28 distclean:      clean
29                 rm -f .depend
30
31 clean:  
32                 rm -f $(OBJS) $(meltname)
33
34 install:        all
35         install -d "$(DESTDIR)$(bindir)"
36         install -c -m 755 $(meltname) "$(DESTDIR)$(bindir)"
37 ifeq ($(extra_versioning), true)
38 ifeq ($(melt_noversion), false)
39         ln -s $(meltname) "$(DESTDIR)$(bindir)/melt"
40 endif
41 endif
42
43 uninstall:
44         rm -f "$(DESTDIR)$(bindir)/$(meltname)"
45 ifeq ($(extra_versioning), true)
46 ifeq ($(melt_noversion), false)
47         rm -f "$(DESTDIR)$(bindir)/melt"
48 endif
49 endif
50
51 ifneq ($(wildcard .depend),)
52 include .depend
53 endif