






echo " > plugin_config"
EOF







echo " > plugin_config2"
cat > plugin_config2 << EOF
# DO NOT EDIT.  EDIT ./configure INSTEAD AND RERUN IT.

CFLAGS += -I../ -I../../pluginpack -I../../guicast -I/usr/local/include

export CFLAGS

PLUGINAUDIOOBJS = -L../../guicast/$(OBJDIR)/ \
	-lguicast \
	../../quicktime/$(OBJDIR)/libquicktime.a \
	../../pluginpack/$(OBJDIR)/pluginclient.o \
	../../pluginpack/$(OBJDIR)/pluginaclient.o \
	../../pluginpack/$(OBJDIR)/sharedpluginobjs.a \
	$(XLIBS) -lpng

PLUGINVIDEOOBJS = ../../pluginpack/$(OBJDIR)/pluginclient.o \
	../../quicktime/$(OBJDIR)/libquicktime.a \
	../../pluginpack/$(OBJDIR)/pluginvclient.o \
	../../pluginpack/$(OBJDIR)/sharedpluginobjs.a	\
	$(XLIBS)

PLUGINIOOBJS = ../../pluginpack/$(OBJDIR)/pluginclient.o \
	../../quicktime/$(OBJDIR)/libquicktime.a \
	../../pluginpack/$(OBJDIR)/pluginioclient.o \
	../../pluginpack/$(OBJDIR)/sharedpluginobjs.a \
	$(XLIBS)

install:
	cp $(OUTPUT) $(PREFIX)/bin


$(OBJS):
	$(CC) -c \`../c_flags\` $(subst $(OBJDIR)/,, $*.C) -o $*.o

clean:
	find \( -name core \
		-o -name '*.o' \
		-o -name '*.a' \) -exec rm -f {} \;
	rm -f $(OUTPUT)

wc:
	cat *.C *.h | wc
EOF








echo " > plugin_config3"
cat > plugin_config3 << EOF
# DO NOT EDIT.  EDIT ./configure INSTEAD AND RERUN IT.
CFLAGS += -I../ -I../../cinelerra -I../../guicast

$(shell echo $(CFLAGS) > ../c_flags)


$(OUTPUT): $(OBJS)
	$(LDLINKER) -o $(OUTPUT) $(OBJS)


install:
	cp $(OUTPUT) /usr/lib/cinelerra

clean:
	find \( -name core \
		-o -name '*.o' \
		-o -name '*.a' \) -exec rm -f {} \;
	rm -f $(OUTPUT)

wc:
	cat *.C *.h | wc

$(OBJS):
	$(CC) -c \`cat ../c_flags\` $(subst $(OBJDIR)/,, $*.C) -o $*.o
EOF







cd libmpeg3
./configure $1 $2 $3 $4 $5
cd ..


cd quicktime
./configure $1 $2 $3 $4 $5
cd ..


cd avifile
./configure  $1 $2 $3 $4 $5
cd ..
