add more build controls
[goodguy/history.git] / cinelerra-5.1 / mplexlo / Makefile
index e232802f8616e24ea95f3f8109a74bb08f46e81f..ae8530f0f0474c4bbae2ea924e972c536232b49e 100644 (file)
@@ -1,13 +1,19 @@
 include ../global_config
+include $(THIRDPARTY)/config.mak
 
 OBJS = $(OBJDIR)/mplex.o
 CC = gcc
 CFLAGS += -I../libzmpeg3
+CFLAGS += $(static_includes)
+LIBS += ../libzmpeg3/$(OBJDIR)/libzmpeg3.a
+LIBS += -Wl,--start-group $(thirdparty_libraries) -Wl,--end-group 
+LIBS += -lpthread -lasound -lm -lX11 $(EXTRA_LIBS)
 
 OUTPUT := $(OBJDIR)/mplexlo
 
 $(OUTPUT): $(OBJS)
-       $(CXX) -o $(OUTPUT) $(OBJS) ../libzmpeg3/$(OBJDIR)/libzmpeg3.a -lpthread -lm -lX11
+       @echo $(CXX) -o $(OUTPUT) $(OBJS)
+       @$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS)
 
 $(OBJS):
        $(CXX) -c $(CFLAGS) $(subst $(OBJDIR)/,, $*.c) -o $*.o