X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fmplexlo%2FMakefile;h=c1a8aae8a4c1022f840241c440b2eb3e1759fb40;hb=d54e2016ca0bea24cd4371058d0f75aeebdb044f;hp=ae8530f0f0474c4bbae2ea924e972c536232b49e;hpb=235c9cc4df8306babbbfda46189108fe262d44ef;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/mplexlo/Makefile b/cinelerra-5.1/mplexlo/Makefile index ae8530f0..c1a8aae8 100644 --- a/cinelerra-5.1/mplexlo/Makefile +++ b/cinelerra-5.1/mplexlo/Makefile @@ -1,17 +1,21 @@ -include ../global_config -include $(THIRDPARTY)/config.mak +export TOPDIR ?= $(CURDIR)/.. +include $(TOPDIR)/global_config +ifneq ($(WANT_LIBZMPEG),no) + +$(shell mkdir -p $(OBJDIR)) 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) + +CFLAGS += -I$(LIBZMPEG3) +CFLAGS += $(static_incs) + +LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a +LIBS += $(libraries) OUTPUT := $(OBJDIR)/mplexlo -$(OUTPUT): $(OBJS) +$(OUTPUT) all: $(OBJS) @echo $(CXX) -o $(OUTPUT) $(OBJS) @$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS) @@ -19,13 +23,18 @@ $(OBJS): $(CXX) -c $(CFLAGS) $(subst $(OBJDIR)/,, $*.c) -o $*.o clean: - find \( -name core \ - -o -name '*.o' \ - -o -name '*.a' \ - -o -name '*.so' \) -exec rm -f {} \; rm -rf $(OBJDIR) install: - cp $(OUTPUT) /usr/bin + cp $(OUTPUT) $(BINDIR)/. $(OBJDIR)/mplex.o: mplex.c + +else +#not WANT_LIBZMPEG +all: +rebuild: +utils: +clean: +install: +endif