X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fmplexlo%2FMakefile;h=c1a8aae8a4c1022f840241c440b2eb3e1759fb40;hb=ebc84d483fe7a1cd9f60c7a88c5b49dc4effd733;hp=e232802f8616e24ea95f3f8109a74bb08f46e81f;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/mplexlo/Makefile b/cinelerra-5.1/mplexlo/Makefile index e232802f..c1a8aae8 100644 --- a/cinelerra-5.1/mplexlo/Makefile +++ b/cinelerra-5.1/mplexlo/Makefile @@ -1,25 +1,40 @@ -include ../global_config +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 += -I$(LIBZMPEG3) +CFLAGS += $(static_incs) + +LIBS := $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a +LIBS += $(libraries) OUTPUT := $(OBJDIR)/mplexlo -$(OUTPUT): $(OBJS) - $(CXX) -o $(OUTPUT) $(OBJS) ../libzmpeg3/$(OBJDIR)/libzmpeg3.a -lpthread -lm -lX11 +$(OUTPUT) all: $(OBJS) + @echo $(CXX) -o $(OUTPUT) $(OBJS) + @$(CXX) -o $(OUTPUT) $(OBJS) $(LIBS) $(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