add more build controls
[goodguy/history.git] / cinelerra-5.1 / mplexlo / Makefile
1 include ../global_config
2 include $(THIRDPARTY)/config.mak
3
4 OBJS = $(OBJDIR)/mplex.o
5 CC = gcc
6 CFLAGS += -I../libzmpeg3
7 CFLAGS += $(static_includes)
8 LIBS += ../libzmpeg3/$(OBJDIR)/libzmpeg3.a
9 LIBS += -Wl,--start-group $(thirdparty_libraries) -Wl,--end-group 
10 LIBS += -lpthread -lasound -lm -lX11 $(EXTRA_LIBS)
11
12 OUTPUT := $(OBJDIR)/mplexlo
13
14 $(OUTPUT): $(OBJS)
15         @echo $(CXX) -o $(OUTPUT) $(OBJS)
16         @$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS)
17
18 $(OBJS):
19         $(CXX) -c $(CFLAGS) $(subst $(OBJDIR)/,, $*.c) -o $*.o
20
21 clean:
22         find \( -name core \
23                 -o -name '*.o' \
24                 -o -name '*.a' \
25                 -o -name '*.so' \) -exec rm -f {} \;
26         rm -rf $(OBJDIR)
27
28 install:
29         cp $(OUTPUT) /usr/bin
30
31 $(OBJDIR)/mplex.o: mplex.c