make install part 1
[melted] / src / albino / Makefile
1 include ../../config.mak
2
3 TARGET = albino
4
5 OBJS = albino.o
6
7 CFLAGS = -O3 -I .. -Wall -g -D_FILE_OFFSET_BITS=64 -pthread -rdynamic
8
9 LDFLAGS = -L ../valerie -L ../miracle -L ../framework -lmiracle -lmlt -lvalerie
10
11 ifeq ($(MLT_GPROF),true)
12 CFLAGS+=-p
13 LDFLAGS+=-p
14 endif
15
16 SRCS := $(OBJS:.o=.c)
17
18 all: $(TARGET)
19
20 $(TARGET): $(OBJS)
21 $(CC) -o $@ $(OBJS) $(LDFLAGS)
22
23 depend: $(SRCS)
24 $(CC) -MM $(CFLAGS) $^ 1>.depend
25
26 dist-clean: clean
27 rm -f .depend
28
29 clean:
30 rm -f $(OBJS) $(TARGET)
31
32 install: all
33 install -d "$(bindir)"
34 install -c -s -m 755 $(TARGET) "$(bindir)"
35
36 ifneq ($(wildcard .depend),)
37 include .depend
38 endif