]> git.sesse.net Git - mlt/blob - src/melt/Makefile
Let 'Q' stop melt as well.
[mlt] / src / melt / Makefile
1 include ../../config.mak
2 include config.mak
3
4 OBJS = melt.o \
5            io.o
6
7 CFLAGS += -I.. $(RDYNAMIC) -DVERSION=\"$(version)\"
8
9 LDFLAGS += -L../framework -lmlt -lpthread
10
11 SRCS := $(OBJS:.o=.c)
12
13 ifeq ($(targetos), MinGW)
14 CFLAGS += `sdl-config --cflags`
15 LDFLAGS += `sdl-config --libs`
16 OBJS += ../win32/win32.o
17 SRCS += ../win32/win32.c
18 bindir = $(prefix)
19 endif
20
21 all: $(TARGET)
22
23 $(TARGET): $(OBJS)
24                 $(CC) -o $@ $(OBJS) $(LDFLAGS)
25
26 depend: $(SRCS)
27                 $(CC) -MM $(CFLAGS) $^ 1>.depend
28
29 distclean:      clean
30                 rm -f .depend
31
32 clean:  
33                 rm -f $(OBJS) $(TARGET)
34
35 install:        all
36         install -d "$(DESTDIR)$(bindir)"
37         install -c -m 755 $(TARGET) "$(DESTDIR)$(bindir)"
38
39 uninstall:
40         rm -f "$(DESTDIR)$(bindir)/$(TARGET)"
41
42 ifneq ($(wildcard .depend),)
43 include .depend
44 endif