X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2FMakefile;h=65df2f4a391699b9b6bfb1110fb8948c6487ccfe;hb=afc97a7cc7560ff3220da1f6f02e9bc372755e86;hp=1bd04ab6e8480d58c27d782eb155d80460996ebb;hpb=c905fabd0678fcc8ab9e32e4443ad8709adafefd;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile index 1bd04ab6..65df2f4a 100644 --- a/cinelerra-5.1/cinelerra/Makefile +++ b/cinelerra-5.1/cinelerra/Makefile @@ -56,7 +56,6 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/assets.o \ $(OBJDIR)/atrack.o \ $(OBJDIR)/attachmentpoint.o \ - $(OBJDIR)/audio1394.o \ $(OBJDIR)/audioalsa.o \ $(OBJDIR)/audiodevice.o \ $(OBJDIR)/audiodvb.o \ @@ -64,13 +63,12 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/audioidevice.o \ $(OBJDIR)/audioodevice.o \ $(OBJDIR)/audiooss.o \ + $(OBJDIR)/audiopulse.o \ $(OBJDIR)/audiov4l2mpeg.o \ $(OBJDIR)/autoconf.o \ $(OBJDIR)/automation.o \ $(OBJDIR)/auto.o \ $(OBJDIR)/autos.o \ - $(OBJDIR)/avc1394control.o \ - $(OBJDIR)/avc1394transport.o \ $(OBJDIR)/awindowgui.o \ $(OBJDIR)/awindow.o \ $(OBJDIR)/batch.o \ @@ -78,6 +76,7 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/bdcreate.o \ $(OBJDIR)/binfolder.o \ $(OBJDIR)/bitspopup.o \ + $(OBJDIR)/boxblur.o \ $(OBJDIR)/brender.o \ $(OBJDIR)/browsebutton.o \ $(OBJDIR)/byteorderpopup.o \ @@ -96,8 +95,10 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/clippopup.o \ $(OBJDIR)/colorpicker.o \ $(OBJDIR)/commonrender.o \ + $(OBJDIR)/compressortools.o \ $(OBJDIR)/confirmquit.o \ $(OBJDIR)/confirmsave.o \ + $(OBJDIR)/convert.o \ $(OBJDIR)/cpanel.o \ $(OBJDIR)/cplayback.o \ $(OBJDIR)/ctimebar.o \ @@ -108,8 +109,6 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/cwindowtool.o \ $(OBJDIR)/dcoffset.o \ $(OBJDIR)/deleteallindexes.o \ - $(OBJDIR)/device1394input.o \ - $(OBJDIR)/device1394output.o \ $(OBJDIR)/devicedvbinput.o \ $(OBJDIR)/devicev4l2base.o \ $(OBJDIR)/devicev4l2input.o \ @@ -125,6 +124,7 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/edl.o \ $(OBJDIR)/edlsession.o \ $(OBJDIR)/effectlist.o \ + $(OBJDIR)/eqcanvas.o \ $(OBJDIR)/exportedl.o \ $(OBJDIR)/fadeengine.o \ $(OBJDIR)/ffmpeg.o \ @@ -133,6 +133,7 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/filebaseulaw.o \ $(OBJDIR)/filecr2.o \ $(OBJDIR)/filedv.o \ + $(OBJDIR)/filedpx.o \ $(OBJDIR)/fileexr.o \ $(OBJDIR)/fileffmpeg.o \ $(OBJDIR)/fileflac.o \ @@ -141,13 +142,16 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/filejpeg.o \ $(OBJDIR)/filelist.o \ $(OBJDIR)/file.o \ + $(OBJDIR)/fileogg.o \ $(OBJDIR)/filepng.o \ $(OBJDIR)/fileppm.o \ + $(OBJDIR)/fileref.o \ $(OBJDIR)/filescene.o \ $(OBJDIR)/filesndfile.o \ $(OBJDIR)/filetga.o \ $(OBJDIR)/filethread.o \ $(OBJDIR)/filetiff.o \ + $(OBJDIR)/filevorbis.o \ $(OBJDIR)/filexml.o \ $(OBJDIR)/floatauto.o \ $(OBJDIR)/floatautos.o \ @@ -162,8 +166,6 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/garbage.o \ $(OBJDIR)/gwindowgui.o \ $(OBJDIR)/gwindow.o \ - $(OBJDIR)/iec61883input.o \ - $(OBJDIR)/iec61883output.o \ $(OBJDIR)/indexable.o \ $(OBJDIR)/indexfile.o \ $(OBJDIR)/indexstate.o \ @@ -331,7 +333,6 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/undostack.o \ $(OBJDIR)/vattachmentpoint.o \ $(OBJDIR)/vautomation.o \ - $(OBJDIR)/vdevice1394.o \ $(OBJDIR)/vdevicebase.o \ $(OBJDIR)/vdevicedvb.o \ $(OBJDIR)/vdeviceprefs.o \ @@ -362,12 +363,26 @@ OBJS := $(OVERLAYS) \ $(OBJDIR)/vwindowgui.o \ $(OBJDIR)/vwindow.o \ $(OBJDIR)/wavecache.o \ + $(OBJDIR)/wintv.o \ $(OBJDIR)/wwindow.o \ + $(OBJDIR)/x10tv.o \ $(OBJDIR)/zoombar.o \ $(OBJDIR)/zoompanel.o \ $(OBJDIR)/zwindow.o \ $(OBJDIR)/zwindowgui.o \ +ifneq ($(WANT_FIREWIRE),no) +OBJS += \ + $(OBJDIR)/audio1394.o \ + $(OBJDIR)/avc1394control.o \ + $(OBJDIR)/avc1394transport.o \ + $(OBJDIR)/vdevice1394.o \ + $(OBJDIR)/device1394input.o \ + $(OBJDIR)/device1394output.o \ + $(OBJDIR)/iec61883input.o \ + $(OBJDIR)/iec61883output.o \ + +endif ifneq ($(WANT_LIBZMPEG),no) OBJS += \ $(OBJDIR)/audiompeg.o \ @@ -418,70 +433,16 @@ endif LIBS := $(LIBRARIES) -ifneq ($(WANT_CIN_3RDPARTY),no) -LIBS += $(libraries) -else - -LIBS += -lpthread -lm -lbz2 -llzma -lz -lpng -luuid -LIBS += -lX11 -lXau -lXdmcp -lXext -lXfixes -lXv -lXinerama -LIBS += -lfontconfig -lfreetype -LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavresample -lavutil +ifeq ($(WANT_CIN_3RDPARTY),no) +LIBS += -lavcodec -lavdevice -lavfilter -lavformat -lavutil LIBS += -lswresample -lswscale -LIBS += -lvpx -lwebp -lwebpmux - -LIBS += $(if $(filter fftw,$(static_pkgs)), -lfftw3) -LIBS += $(if $(filter flac,$(static_pkgs)), -lFLAC) -LIBS += $(if $(filter giflib,$(static_pkgs)), -lgif) -LIBS += $(if $(filter lame,$(static_pkgs)), -lmp3lame) -LIBS += $(if $(filter libjpeg,$(static_pkgs)), -ljpeg) -LIBS += $(if $(filter openjpeg,$(static_pkgs)), -lopenjp2) -LIBS += $(if $(filter libogg,$(static_pkgs)), -logg) -LIBS += $(if $(filter libsndfile,$(static_pkgs)), -lsndfile) -LIBS += $(if $(filter libtheora,$(static_pkgs)), -ltheoradec -ltheoraenc) -LIBS += $(if $(filter libuuid,$(static_pkgs)), -luuid) -LIBS += $(if $(filter libvorbis,$(static_pkgs)), -lvorbis -lvorbisenc -lvorbisfile) -LIBS += $(if $(filter tiff,$(static_pkgs)), -ltiff) -LIBS += $(if $(filter twolame,$(static_pkgs)), -ltwolame) -LIBS += $(if $(filter x264,$(static_pkgs)), -lx264) -LIBS += $(if $(filter x265,$(static_pkgs)), -lx265) -LIBS += $(if $(filter libvpx,$(static_pkgs)), -lvpx) - -ifneq ($(WANT_GL),no) -LIBS += -lGL -lGLU -lGLX -endif -ifneq ($(WANT_XFT),no) -LIBS += -lXft -endif -ifneq ($(WANT_ALSA),no) -LIBS += -lasound -endif -ifneq ($(WANT_OPENEXR),no) -LIBS += -lIex -lIexMath -lIlmImf -lIlmImfUtil -endif -ifneq ($(WANT_DV),no) -LIBS += -ldv -endif -ifneq ($(WANT_FIREWIRE),no) -LIBS += -lavc1394 -lraw1394 -liec61883 -lrom1394 -endif -ifneq ($(WANT_DVB),no) -LIBS += -ldv -endif -ifneq ($(WANT_DL),no) -LIBS += -ldl -endif -ifneq ($(WANT_LIBZMPEG),no) -LIBS += -lmjpegutils -endif -ifneq ($(WANT_OPUS),no) -LIBS += -lopus -endif -ifneq ($(WANT_NUMA),no) -LIBS += -lnuma -endif -ifneq ($(WANT_LV2),no) -LIBS += -llilv-0 -lsratom-0 -lserd-0 -lsord-0 -lsuil-0 -endif +LIBS += -lintl -liconv +LIBS += -lexecinfo + +LIBS += $(shared_libs) +LIBS += $(system_libs) +else +LIBS += $(libraries) endif ifneq ($(WANT_COMMERCIAL),no) @@ -509,6 +470,7 @@ LV2OBJS = \ endif CFLAGS := \ + -I/usr/local/include \ -I$(GUICAST) \ -I$(LIBZMPEG3) \ $(static_incs) \ @@ -561,8 +523,8 @@ $(OUTPUT): $(OBJS) $(THEME_DATA) $(DCRAW) $(LIBRARIES) ifneq ($(WANT_COMMERCIAL),no) $(CUTADS): $(CUTOBJS) $(CUTLIBS) $(LIBRARIES) - @echo g++ -o $@ $(CUTOBJS) - @g++ $(CFLAGS) -pthread -o $@ $(CUTOBJS) $(CUTLIBS) $(LIBS) + @echo $(CXX) -o $@ $(CUTOBJS) + @$(CXX) $(CFLAGS) -pthread -o $@ $(CUTOBJS) $(CUTLIBS) $(LIBS) $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(CUTADS) $(CUTADS).debuginfo) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(CUTADS)) @@ -573,8 +535,8 @@ install: install-cutads endif $(BDWRITE): $(BDWOBJS) $(LIBRARIES) - @echo g++ -o $@ $(BDWOBJS) - @g++ $(CFLAGS) -pthread -o $@ $(BDWOBJS) $(LIBS) + @echo $(CXX) -o $@ $(BDWOBJS) + @$(CXX) $(CFLAGS) -pthread -o $@ $(BDWOBJS) $(LIBS) $(if $(findstring -g,$(CFLAGS)),objcopy --only-keep-debug $(BDWRITE) $(BDWRITE).debuginfo) $(if $(findstring -ggdb,$(CFLAGS)),,strip $(BDWRITE)) @@ -583,22 +545,23 @@ install-bdwrite: install: install-bdwrite ydiff: ydiff.C $(LIBRARIES) - @echo g++ -o $@ ydiff.C - @g++ $(CFLAGS) ydiff.C -o $@ $(LIBS) + @echo $(CXX) -o $@ ydiff.C + @$(CXX) $(CFLAGS) ydiff.C -o $@ $(LIBS) shdmp: shdmp.C - @g++ $(CFLAGS) shdmp.C -o $@ + @$(CXX) $(CFLAGS) shdmp.C -o $@ shudmp: shudmp.C - @g++ $(CFLAGS) shudmp.C -o $@ -lusb-1.0 + @$(CXX) $(CFLAGS) shudmp.C -o $@ -lusb-1.0 clean: - rm -rf $(OBJDIR) tags + rm -rf $(OBJDIR) rm -f shuttle_keys.h tags: ctags -R -h default --langmap=c:+.inc . ../guicast/ ../libzmpeg3 ../plugins ../thirdparty/ffmpeg-* -$(OBJDIR)/fileexr.o: BFLAGS:= -Wno-deprecated +$(OBJDIR)/fileexr.o: BFLAGS:= -Wno-deprecated -std=c++11 +$(OBJDIR)/filedpx.o: BFLAGS:= -Wno-deprecated -std=c++11 $(OBJDIR)/sha1.o: BFLAGS:= -O3 $(OVERLAYS): BFLAGS:= -Ofast -g0 @@ -607,7 +570,7 @@ $(OBJDIR)/%.o: %.C #lv2 ifneq ($(WANT_LV2),no) -GTK2_INCS := `pkg-config --cflags gtk+-2.0` +GTK2_INCS := `pkg-config --cflags gtk+-2.0` -Wno-deprecated-declarations GTK2_LIBS := `pkg-config --libs gtk+-2.0` $(OBJDIR)/pluginlv2ui.o: pluginlv2ui.C @@ -631,9 +594,16 @@ install: install-lv2ui endif ifneq ($(WANT_SHUTTLE),no) +X11_INCS := /usr/include/ +X11_INCS1 := $(shell pkg-config --cflags-only-I x11 | sed "s/-I//") + +ifneq ($(X11_INCS1),) +X11_INCS := $(X11_INCS1) +endif + $(OBJDIR)/shuttle.o: shuttle.C shuttle_keys.h -shuttle_keys.h: /usr/include/X11/keysymdef.h - sed -n < /usr/include/X11/keysymdef.h > shuttle_keys.h -f shuttle.sed +shuttle_keys.h: $(X11_INCS)/X11/keysymdef.h + sed -n $(X11_INCS)/X11/keysymdef.h > shuttle_keys.h -f shuttle.sed endif $(OBJDIR)/pluginlv2gui.o: pluginlv2gui.C