Optimisations (part 0), pixel v percentage, reworked aspect ratio calcs, ante/post...
[melted] / src / valerie / Makefile
1
2 TARGET = libvalerie.so
3
4 OBJS = valerie.o \
5 valerie_notifier.o \
6 valerie_parser.o \
7 valerie_response.o \
8 valerie_status.o \
9 valerie_tokeniser.o \
10 valerie_util.o \
11 valerie_remote.o \
12 valerie_socket.o
13
14 SRCS := $(OBJS:.o=.c)
15
16 CFLAGS=-O3 -Wall -g -D_FILE_OFFSET_BITS=64 -pthread
17
18 LDFLAGS=-ldv -lpthread
19
20 all: $(TARGET)
21
22 $(TARGET): $(OBJS)
23 $(CC) -shared -o $@ $(OBJS) $(LDFLAGS)
24
25 depend: $(SRCS)
26 $(CC) -MM $(CFLAGS) $^ 1>.depend
27
28 dist-clean: clean
29 rm -f .depend
30
31 clean:
32 rm -f $(OBJS) $(TARGET)
33
34 ifneq ($(wildcard .depend),)
35 include .depend
36 endif