X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fmplexlo%2FMakefile;h=6fb9ca7222adfeb2e0b75db973b432b45532b001;hb=586cb6f963c4ccc80e79606cf0bbdf9c35171ddc;hp=ae8530f0f0474c4bbae2ea924e972c536232b49e;hpb=235c9cc4df8306babbbfda46189108fe262d44ef;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/mplexlo/Makefile b/cinelerra-5.1/mplexlo/Makefile index ae8530f0..6fb9ca72 100644 --- a/cinelerra-5.1/mplexlo/Makefile +++ b/cinelerra-5.1/mplexlo/Makefile @@ -1,17 +1,19 @@ -include ../global_config -include $(THIRDPARTY)/config.mak +export TOPDIR ?= $(CURDIR)/.. +include $(TOPDIR)/global_config +$(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 +21,9 @@ $(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