X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fmplexlo%2FMakefile;h=6fb9ca7222adfeb2e0b75db973b432b45532b001;hb=74afbc29ac4ce9d94d53e10342979f2c59f1f193;hp=e232802f8616e24ea95f3f8109a74bb08f46e81f;hpb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/mplexlo/Makefile b/cinelerra-5.1/mplexlo/Makefile index e232802f..6fb9ca72 100644 --- a/cinelerra-5.1/mplexlo/Makefile +++ b/cinelerra-5.1/mplexlo/Makefile @@ -1,25 +1,29 @@ -include ../global_config +export TOPDIR ?= $(CURDIR)/.. +include $(TOPDIR)/global_config +$(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