X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2FMakefile;h=a179559ff9de5cdd335b0a81775833fe08b290a8;hb=803cf48f8f7ee246eb5473e55fc2125e8b398250;hp=755e42987d03f608031873ac38c96d9f69f3d1ec;hpb=4a90ef3ae46465c0634f81916b79e279e4bd9961;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile index 755e4298..a179559f 100644 --- a/cinelerra-5.1/cinelerra/Makefile +++ b/cinelerra-5.1/cinelerra/Makefile @@ -84,6 +84,7 @@ OBJS = \ $(OBJDIR)/devicempeginput.o \ $(OBJDIR)/devicev4l2base.o \ $(OBJDIR)/devicev4l2input.o \ + $(OBJDIR)/dragcheckbox.o \ $(OBJDIR)/drivesync.o \ $(OBJDIR)/dvbtune.o \ $(OBJDIR)/dvdcreate.o \ @@ -128,6 +129,7 @@ OBJS = \ $(OBJDIR)/floatauto.o \ $(OBJDIR)/floatautos.o \ $(OBJDIR)/folderlistmenu.o \ + $(OBJDIR)/forkbase.o \ $(OBJDIR)/formatcheck.o \ $(OBJDIR)/formatpopup.o \ $(OBJDIR)/formatpresets.o \ @@ -222,6 +224,10 @@ OBJS = \ $(OBJDIR)/pluginclient.o \ $(OBJDIR)/plugindialog.o \ $(OBJDIR)/pluginfclient.o \ + $(OBJDIR)/pluginlv2.o \ + $(OBJDIR)/pluginlv2config.o \ + $(OBJDIR)/pluginlv2client.o \ + $(OBJDIR)/pluginlv2gui.o \ $(OBJDIR)/plugin.o \ $(OBJDIR)/pluginpopup.o \ $(OBJDIR)/pluginserver.o \ @@ -234,6 +240,7 @@ OBJS = \ $(OBJDIR)/presets.o \ $(OBJDIR)/probeprefs.o \ $(OBJDIR)/proxy.o \ + $(OBJDIR)/proxypopup.o \ $(OBJDIR)/question.o \ $(OBJDIR)/quit.o \ $(OBJDIR)/recconfirmdelete.o \ @@ -353,7 +360,6 @@ LIBRARIES := \ $(LIBZMPEG3)/$(OBJDIR)/libzmpeg3.a \ $(MPEG2ENC)/$(OBJDIR)/hveg2enc.a \ $(TDB)/$(OBJDIR)/db.a \ - $(THEME_DATA) \ LIBS := $(LIBRARIES) LIBS += $(libraries) @@ -370,6 +376,16 @@ CUTLIBS = \ BDWRITE = $(OBJDIR)/bdwrite BDWOBJS = $(OBJDIR)/bdwrite.o +ifneq ($(WANT_LV2UI),no) +LV2UI = $(OBJDIR)/lv2ui +LV2OBJS = \ + $(OBJDIR)/lv2ui.o \ + $(OBJDIR)/pluginlv2.o \ + $(OBJDIR)/pluginlv2ui.o \ + $(OBJDIR)/pluginlv2config.o \ + $(OBJDIR)/forkbase.o +endif + CFLAGS := \ -I$(GUICAST) \ -I$(LIBZMPEG3) \ @@ -401,21 +417,22 @@ CFLAGS += -DUSE_ALPHA else LDFLAGS1 = -export-dynamic -LDFLAGS2 = +# avoid the intel lock elision bug, if possible +LDFLAGS2 = $(lastword $(wildcard /usr/lib/noelision /lib/noelision /usr/lib64/noelision /lib/noelision)) LINKER = g++ -o $(OUTPUT) endif $(shell mkdir -p $(OBJDIR)) $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags) -$(shell echo $(LDFLAGS1) $(OBJS) $(DCRAW) $(LIBS) $(LDFLAGS2) > $(OBJDIR)/objs) +$(shell echo $(LDFLAGS1) $(OBJS) $(THEME_DATA) $(DCRAW) $(LIBS) $(LDFLAGS2) > $(OBJDIR)/objs) -all: $(OUTPUT) $(CUTADS) $(BDWRITE) +all: $(OUTPUT) $(CUTADS) $(BDWRITE) $(LV2UI) # Static linking is not possible because the plugins depend on symbols # in the main executable. # Also VFS only overrides the C library when dynamic linking is used. -$(OUTPUT): $(OBJS) $(DCRAW) $(FILEEXR) $(FILEFLAC) $(LIBRARIES) +$(OUTPUT): $(OBJS) $(THEME_DATA) $(DCRAW) $(LIBRARIES) $(LINKER) `cat $(OBJDIR)/objs` $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(OUTPUT) $(OUTPUT_G)) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(OUTPUT)) @@ -427,12 +444,20 @@ $(CUTADS): $(CUTOBJS) $(CUTLIBS) $(LIBRARIES) $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(CUTADS) $(CUTADS).debuginfo) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(CUTADS)) +install-cutads: + cp -av $(OBJDIR)/cutads $(BINDIR)/. +install: install-cutads + $(BDWRITE): $(BDWOBJS) $(LIBRARIES) @echo g++ -o $@ $(BDWOBJS) @g++ $(CFLAGS) -pthread -o $@ $(BDWOBJS) $(LIBS) $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(BDWRITE) $(BDWRITE).debuginfo) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(BDWRITE)) +install-bdwrite: + cp -av $(OBJDIR)/bdwrite $(BINDIR)/. +install: install-bdwrite + ydiff: ydiff.C $(LIBRARIES) @echo g++ -o $@ ydiff.C @g++ $(CFLAGS) ydiff.C -o $@ $(LIBS) @@ -440,9 +465,6 @@ ydiff: ydiff.C $(LIBRARIES) clean: rm -rf $(OBJDIR) -install: - cp -a $(OBJDIR)/cutads $(BINDIR)/. - cp -a $(OBJDIR)/bdwrite $(BINDIR)/. tags: ctags -R -h default --langmap=c:+.inc . ../guicast/ ../libzmpeg3 ../plugins ../thirdparty/ffmpeg-* @@ -451,13 +473,41 @@ tags: $(OBJDIR)/%.o: %.C $(CXX) `cat $(OBJDIR)/c_flags` -DMSGQUAL=$* -c $< -o $@ + $(OBJDIR)/fileexr.o: fileexr.C $(CXX) `cat $(OBJDIR)/c_flags` -Wno-deprecated -DMSGQUAL=$* -c $< -o $@ $(OBJDIR)/sha1.o: sha1.C sha1.h $(CXX) `cat $(OBJDIR)/c_flags` -O3 -c $< -o $@ +#lv2 +ifneq ($(WANT_LV2UI),no) +GTK2_INCS := `pkg-config --cflags gtk+-2.0` +GTK2_LIBS := `pkg-config --libs gtk+-2.0` + +$(OBJDIR)/pluginlv2ui.o: pluginlv2ui.C +$(OBJDIR)/lv2ui.o: lv2ui.C +$(OBJDIR)/pluginlv2ui.o $(OBJDIR)/lv2ui.o: + $(CXX) `cat $(OBJDIR)/c_flags` $(GTK2_INCS) -DMSGQUAL=$* -c $< -o $@ + +$(OBJDIR)/lv2ui: $(LV2OBJS) + @echo $(CXX) \`cat $(OBJDIR)/c_flags\` $^ -o $@ + @$(CXX) `cat $(OBJDIR)/c_flags` $^ -o $@ $(LIBS) $(GTK2_LIBS) + $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(LV2UI) $(LV2UI).debuginfo) + $(if $(findstring -ggdb,$(CFLAGS)),,strip $(LV2UI)) + +.PHONY: lv2ui +lv2ui: $(LV2UI) + +install-lv2ui: + cp -av $(LV2UI) $(BINDIR)/. +install: install-lv2ui +endif + +$(OBJDIR)/pluginlv2gui.o: pluginlv2gui.C + $(CXX) `cat $(OBJDIR)/c_flags` $(GTK2_INCS) -DMSGQUAL=$* -c $< -o $@ +#dcraw $(DCRAW): dcraw.C $(CXX) `cat $(OBJDIR)/c_flags` $(if $(findstring -ggdb,$(CFLAGS)),,-O4) -DNODEPS -DLOCALTIME \ -Wno-misleading-indentation -Wno-sign-compare -Wno-narrowing dcraw.C -c -o $*.o