r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / Makefile.am
blob8fd392dcffbb3db9ce00df4d2820a70ffe559086
1 BUILDDATE=$(shell date)
3 if BUILDINFO_RECOMPILE
4 BUILDINFO_NONRC_S=
6 main.o: versioninfo
7 aboutprefs.o: versioninfo
9 versioninfo:
10 else
11 BUILDINFO_NONRC_S=[unsure]
13 main.o: versioninfo.h
14 aboutprefs.o: versioninfo.h
16 versioninfo.h:
17 endif
18         echo '#define BUILDDATE "$(BUILDDATE)"' > versioninfo.h
20 if BUILDINFO_GIT
21 GITVERSION=$(shell if [ -d $(top_srcdir)/.git ]; then cd $(top_srcdir); git rev-parse HEAD; else echo "unknown"; fi)
22         echo '#define REPOMAINTXT " GIT::$(GITVERSION) $(BUILDINFO_NONRC_S) (C) 2006 Heroine Virtual Ltd.\n@FFMPEG_EXTERNALTEXT@\nCompiled on $(BUILDDATE)"' >> versioninfo.h
23         echo '#define REPOABOUTPREFTXT "Git SHA-1: $(GITVERSION)"' >> versioninfo.h
24 else
26 if BUILDINFO_SVN
27 SVNVERSION=$(shell if [ -d $(top_srcdir)/.svn ]; then svnversion $(top_srcdir); else echo "unknown"; fi)
28         echo '#define REPOMAINTXT      " SVN $(SVNVERSION) $(BUILDINFO_NONRC_S) (C) 2006 Heroine Virtual Ltd.\n@FFMPEG_EXTERNALTEXT@\nCompiled on $(BUILDDATE)"' >> versioninfo.h
29         echo '#define REPOABOUTPREFTXT "SVN Version: $(SVNVERSION) $(BUILDINFO_NONRC_S)"' >> versioninfo.h
31 else
32 if BUILDINFO_CUST
34         echo '#define REPOMAINTXT      " $(BUILDINFO_CUSTOM_TAG) (C) 2006 Heroine Virtual Ltd.\n@FFMPEG_EXTERNALTEXT@\nCompiled on $(BUILDDATE)"' >> versioninfo.h
35         echo '#define REPOABOUTPREFTXT "$(BUILDINFO_CUSTOM_TAG)"' >> versioninfo.h
38 else # (no repository)
41         echo '#define REPOMAINTXT      "(C) 2006 Heroine Virtual Ltd.\nCompiled on $(BUILDDATE)"' >> versioninfo.h
42         echo '#define REPOABOUTPREFTXT ""' >> versioninfo.h
43 endif
44 endif
45 endif
46         echo '#define FFMPEG_EXTERNALTEXT "@FFMPEG_EXTERNALTEXT@"' >> versioninfo.h
48 SUBDIRS = data
50 bin_PROGRAMS = cinelerra
52 if HAVE_FIREWIRE
53 firewire_SOURCES = \
54         audio1394.C \
55         avc1394control.C \
56         avc1394transport.C \
57         device1394input.C \
58         device1394output.C \
59         iec61883input.C \
60         iec61883output.C \
61         vdevice1394.C
62 endif
64 cinelerra_SOURCES = aattachmentpoint.C \
65                     aautomation.C \
66                     aboutprefs.C \
67                     adeviceprefs.C \
68                     aedit.C \
69                     aedits.C \
70                     amodule.C \
71                     apatchgui.C \
72                     apluginarray.C \
73                     aplugin.C \
74                     apluginset.C \
75                     arender.C \
76                     asset.C \
77                     assetedit.C \
78                     assetpopup.C \
79                     assetremove.C \
80                     assets.C \
81                     atrack.C \
82                     attachmentpoint.C \
83                     audioalsa.C \
84                     audiocine.C \
85                     audiodevice.C \
86                     audiodvb.C \
87                     audioesound.C \
88                     audioidevice.C \
89                     audioodevice.C \
90                     audiooss.C \
91                     auto.C \
92                     autoconf.C \
93                     automation.C \
94                     autos.C \
95                     awindow.C \
96                     awindowgui.C \
97                     awindowmenu.C \
98                     batch.C \
99                     batchrender.C \
100                     bitspopup.C \
101                     brender.C \
102                     browsebutton.C \
103                     byteorderpopup.C \
104                     cache.C \
105                     cachebase.C \
106                     canvas.C \
107                     canvastools.C \
108                     channel.C \
109                     channeldb.C \
110                     channeledit.C \
111                     channelpicker.C \
112                     chantables.C \
113                     clipedit.C \
114                     commonrender.C \
115                     confirmquit.C \
116                     confirmsave.C \
117                     cpanel.C \
118                     cplayback.C \
119                     ctimebar.C \
120                     ctracking.C \
121                     cursor.C \
122                     cwindow.C \
123                     cwindowgui.C \
124                     cwindowtool.C \
125                     dcoffset.C \
126                     dcraw.c \
127                     deleteallindexes.C \
128                     devicedvbinput.C \
129                     drivesync.C \
130                     dvbtune.C \
131                     edit.C \
132                     edithandles.C \
133                     editpanel.C \
134                     editpopup.C \
135                     edits.C \
136                     edl.C \
137                     edlsession.C \
138                     exportedl.C \
139                     fadeengine.C \
140                     ffmpeg.C \
141                     fileac3.C \
142                     fileavi.C \
143                     filebaseaudio.C \
144                     filebase.C \
145                     filebaseima4.C \
146                     filebaseulaw.C \
147                     file.C \
148                     filecr2.C \
149                     filedv.C \
150                     fileogg.C \
151                     fileexr.C \
152                     fileformat.C \
153                     filejpeg.C \
154                     filelist.C \
155                     filemov.C \
156                     filempeg.C \
157                     filepng.C \
158                     filesndfile.C \
159                     filetga.C \
160                     filethread.C \
161                     filetiff.C \
162                     filevorbis.C \
163                     filexml.C \
164                     fileyuv.C \
165                     floatauto.C \
166                     floatautos.C \
167                     formatcheck.C \
168                     formatpopup.C \
169                     formatpresets.C \
170                     formattools.C \
171                     framecache.C \
172                     garbage.C \
173                     gwindow.C \
174                     gwindowgui.C \
175                     indexfile.C \
176                     indexthread.C \
177                     intauto.C \
178                     intautos.C \
179                     interfaceprefs.C \
180                     keyframe.C \
181                     keyframehandles.C \
182                     keyframepopup.C \
183                     keyframes.C \
184                     labeledit.C \
185                     labelnavigate.C \
186                     labels.C \
187                     levelwindow.C \
188                     levelwindowgui.C \
189                     loadbalance.C \
190                     loadfile.C \
191                     loadmode.C \
192                     localsession.C \
193                     main.C \
194                     mainclock.C \
195                     maincursor.C \
196                     mainerror.C \
197                     mainindexes.C \
198                     mainmenu.C \
199                     mainprogress.C \
200                     mainsession.C \
201                     mainundo.C \
202                     manualgoto.C \
203                     maskauto.C \
204                     maskautos.C \
205                     maskengine.C \
206                     mbuttons.C \
207                     menuaeffects.C \
208                     menueffects.C \
209                     menuveffects.C \
210                     meterpanel.C \
211                     module.C \
212                     mtimebar.C \
213                     mwindow.C \
214                     mwindowedit.C \
215                     mwindowgui.C \
216                     mwindowmove.C \
217                     new.C \
218                     newfolder.C \
219                     overlayframe.C \
220                     packagedispatcher.C \
221                     packagerenderer.C \
222                     packagingengine.C \
223                     panauto.C \
224                     panautos.C \
225                     patchbay.C \
226                     patchgui.C \
227                     performanceprefs.C \
228                     picture.C \
229                     pipe.C \
230                     playabletracks.C \
231                     playback3d.C \
232                     playbackconfig.C \
233                     playbackengine.C \
234                     playbackprefs.C \
235                     playtransport.C \
236                     pluginaclient.C \
237                     pluginaclientlad.C \
238                     pluginarray.C \
239                     pluginautos.C \
240                     plugin.C \
241                     pluginclient.C \
242                     plugindialog.C \
243                     pluginpopup.C \
244                     pluginserver.C \
245                     pluginset.C \
246                     plugintclient.C \
247                     plugintoggles.C \
248                     pluginvclient.C \
249                     preferences.C \
250                     preferencesthread.C \
251                     question.C \
252                     quit.C \
253                     recconfirmdelete.C \
254                     recordableatracks.C \
255                     recordablevtracks.C \
256                     recordaudio.C \
257                     record.C \
258                     recordconfig.C \
259                     recordgui.C \
260                     recordlabel.C \
261                     recordmonitor.C \
262                     recordprefs.C \
263                     recordthread.C \
264                     recordtransport.C \
265                     recordvideo.C \
266                     recordwindow.C \
267                     removethread.C \
268                     render.C \
269                     renderengine.C \
270                     renderfarm.C \
271                     renderfarmclient.C \
272                     renderprofiles.C \
273                     resample.C \
274                     resizetrackthread.C \
275                     resourcepixmap.C \
276                     resourcethread.C \
277                     samplescroll.C \
278                     savefile.C \
279                     setformat.C \
280                     sharedlocation.C \
281                     shmemory.C \
282                     sighandler.C \
283                     splashgui.C \
284                     statusbar.C \
285                     theme.C \
286                     threadexec.C \
287                     threadfork.C \
288                     threadindexer.C \
289                     threadloader.C \
290                     timebar.C \
291                     timeentry.C \
292                     tipwindow.C \
293                     track.C \
294                     trackcanvas.C \
295                     tracking.C \
296                     tracks.C \
297                     trackscroll.C \
298                     tracksedit.C \
299                     transition.C \
300                     transitionhandles.C \
301                     transitionpopup.C \
302                     transportque.C \
303                     tunerserver.C \
304                     undostackitem.C \
305                     vattachmentpoint.C \
306                     vautomation.C \
307                     vdevicebase.C \
308                     vdevicebuz.C \
309                     vdevicedvb.C \
310                     vdeviceprefs.C \
311                     vdevicev4l.C \
312                     vdevicev4l2.C \
313                     vdevicev4l2jpeg.C \
314                     vdevicex11.C \
315                     vedit.C \
316                     vedits.C \
317                     videodevice.C \
318                     viewmenu.C \
319                     virtualaconsole.C \
320                     virtualanode.C \
321                     virtualconsole.C \
322                     virtualnode.C \
323                     virtualvconsole.C \
324                     virtualvnode.C \
325                     vmodule.C \
326                     vpatchgui.C \
327                     vplayback.C \
328                     vpluginarray.C \
329                     vplugin.C \
330                     vpluginset.C \
331                     vrender.C \
332                     vtimebar.C \
333                     vtrack.C \
334                     vtracking.C \
335                     vwindow.C \
336                     vwindowgui.C \
337                     wavecache.C \
338                     yuvstream.C \
339                     zoombar.C \
340                     zoompanel.C \
341         $(firewire_SOURCES)
343 # guicast must come first, to pick up correct workarounds.h
344 INCLUDES = \
345         -I$(top_srcdir)/guicast \
346         -I$(top_srcdir)/quicktime \
347         -I$(top_srcdir)/libmpeg3
349 AM_CXXFLAGS = \
350         $(LARGEFILE_CFLAGS) \
351         $(FIREWIRE_CFLAGS) \
352         $(SOUND_CFLAGS) \
353         $(XIPH_CFLAGS) \
354         $(MJPEG_CFLAGS) \
355         $(OPENEXR_CFLAGS) \
356         $(LIBDV_CFLAGS) \
357         $(FFMPEG_CFLAGS) \
358         -DPLUGIN_DIR=\"$(plugindir)\"
360 AM_LDFLAGS = -export-dynamic
362 noinst_HEADERS = aattachmentpoint.h \
363                  aautomation.h \
364                  aboutprefs.h \
365                  adeviceprefs.h \
366                  aedit.h \
367                  aedits.h \
368                  amodule.h \
369                  apatchgui.h \
370                  apluginarray.h \
371                  aplugin.h \
372                  apluginset.h \
373                  arender.h \
374                  asset.h \
375                  assetedit.h \
376                  assetpopup.h \
377                  assetremove.h \
378                  assets.h \
379                  atrack.h \
380                  attachmentpoint.h \
381                  audio1394.h \
382                  audioalsa.h \
383                  audiocine.h \
384                  audioconfig.h \
385                  audiodevice.h \
386                  audiodvb.h \
387                  audioesound.h \
388                  audiooss.h \
389                  autoconf.h \
390                  auto.h \
391                  automation.h \
392                  autos.h \
393                  avc1394control.h \
394                  avc1394transport.h \
395                  awindowgui.h \
396                  awindow.h \
397                  awindowmenu.h \
398                  batch.h \
399                  batchrender.h \
400                  binary.h \
401                  bitspopup.h \
402                  brender.h \
403                  browsebutton.h \
404                  buz.h \
405                  byteorder.h \
406                  byteorderpopup.h \
407                  cache.h \
408                  cachebase.h \
409                  cameraauto.h \
410                  canvas.h \
411                  canvastools.h \
412                  channeledit.h \
413                  channel.h \
414                  channeldb.h \
415                  channelpicker.h \
416                  chantables.h \
417                  clipedit.h \
418                  commonrender.h \
419                  compresspopup.h \
420                  confirmquit.h \
421                  confirmsave.h \
422                  cpanel.h \
423                  cplayback.h \
424                  cropvideo.h \
425                  ctimebar.h \
426                  ctracking.h \
427                  cursor.h \
428                  cwindowgui.h \
429                  cwindow.h \
430                  cwindowtool.h \
431                  datatype.h \
432                  dcoffset.h \
433                  deleteallindexes.h \
434                  device1394input.h \
435                  device1394output.h \
436                  devicedvbinput.h \
437                  drivesync.h \
438                  dv1394.h \
439                  dvbtune.h \
440                  edit.h \
441                  edithandles.h \
442                  editpanel.h \
443                  editpopup.h \
444                  edits.h \
445                  edl.h \
446                  edlsession.h \
447                  exportedl.h \
448                  fadeengine.h \
449                  feather.h \
450                  featheredits.h \
451                  ffmpeg.h \
452                  fileac3.h \
453                  fileavi.h \
454                  filebase.h \
455                  fileformat.h \
456                  file.h \
457                  filecr2.h \
458             filedv.h \
459             fileogg.h \
460                  fileexr.h \
461                  filejpeg.h \
462                  filelist.h \
463                  filemov.h \
464                  filempeg.h \
465                  filepng.h \
466                  filesndfile.h \
467                  filetga.h \
468                  filethread.h \
469                  filetiff.h \
470                  filevorbis.h \
471                  filexml.h \
472                  fileyuv.h \
473                  floatauto.h \
474                  floatautos.h \
475                  formatcheck.h \
476                  formatpopup.h \
477                  formatpresets.h \
478                  formattools.h \
479                  formatwindow.h \
480                  framecache.h \
481                  garbage.h \
482                  gwindow.h \
483                  gwindowgui.h \
484                  headers.h \
485                  iec61883input.h \
486                  iec61883output.h \
487                  ieee1394-ioctl.h \
488                  indexfile.h \
489                  indexthread.h \
490                  intauto.h \
491                  intautos.h \
492                  interfaceprefs.h \
493                  jpegwrapper.h \
494                  keyframe.h \
495                  keyframehandles.h \
496                  keyframepopup.h \
497                  keyframes.h \
498                  labeledit.h \
499                  labelnavigate.h \
500                  labels.h \
501                  ladspa.h \
502                  levelwindowgui.h \
503                  levelwindow.h \
504                  loadbalance.h \
505                  loadfile.h \
506                  loadmode.h \
507                  localsession.h \
508                  mainclock.h \
509                  maincursor.h \
510                  mainerror.h \
511                  mainindexes.h \
512                  mainmenu.h \
513                  mainprogress.h \
514                  mainsession.h \
515                  mainundo.h \
516                  manualgoto.h \
517                  maskauto.h \
518                  maskautos.h \
519                  maskengine.h \
520                  maxbuffers.h \
521                  maxchannels.h \
522                  mbuttons.h \
523                  menuaeffects.h \
524                  menueffects.h \
525                  menuveffects.h \
526                  messages.h \
527                  meterpanel.h \
528                  module.h \
529                  mtimebar.h \
530                  mwindowgui.h \
531                  mwindow.h \
532                  newfolder.h \
533                  new.h \
534                  newpresets.h \
535                  overlayframe.h \
536                  packagedispatcher.h \
537                  packagerenderer.h \
538                  packagingengine.h \
539                  panauto.h \
540                  panautos.h \
541                  patchbay.h \
542                  patchgui.h \
543                  patch.h \
544                  performanceprefs.h \
545                  picture.h \
546                  pipe.h \
547                  playabletracks.h \
548                  playback3d.h \
549                  playbackconfig.h \
550                  playbackengine.h \
551                  playbackprefs.h \
552                  playtransport.h \
553                  pluginaclient.h \
554                  pluginaclientlad.h \
555                  pluginarray.h \
556                  pluginautos.h \
557                  pluginclient.h \
558                  plugincommands.h \
559                  plugindialog.h \
560                  plugin.h \
561                  pluginpopup.h \
562                  pluginprefs.h \
563                  pluginserver.h \
564                  pluginset.h \
565                  plugintclient.h \
566                  plugintoggles.h \
567                  pluginvclient.h \
568                  preferences.h \
569                  preferencesthread.h \
570                  question.h \
571                  quit.h \
572                  recconfirmdelete.h \
573                  recordableatracks.h \
574                  recordablevtracks.h \
575                  recordaudio.h \
576                  recordconfig.h \
577                  recordengine.h \
578                  recordgui.h \
579                  record.h \
580                  recordlabel.h \
581                  recordmonitor.h \
582                  recordprefs.h \
583                  recordthread.h \
584                  recordtransport.h \
585                  recordvideo.h \
586                  recordwindow.h \
587                  removethread.h \
588                  renderengine.h \
589                  renderfarmclient.h \
590                  renderfarmfsserver.h \
591                  renderfarm.h \
592                  render.h \
593                  resample.h \
594                  renderprofiles.h \
595                  resizetrackthread.h \
596                  resourcepixmap.h \
597                  resourcethread.h \
598                  samplescroll.h \
599                  savefile.h \
600                  scale.h \
601                  setformat.h \
602                  sharedlocation.h \
603                  shmemory.h \
604                  sighandler.h \
605                  splashgui.h \
606                  statusbar.h \
607                  testobject.h \
608                  theme.h \
609                  threadexec.h \
610                  threadfork.h \
611                  threadindexer.h \
612                  threadloader.h \
613                  timebar.h \
614                  timebomb.h \
615                  timeentry.h \
616                  tipwindow.h \
617                  trackcanvas.h \
618                  track.h \
619                  tracking.h \
620                  tracklist.h \
621                  trackscroll.h \
622                  tracks.h \
623                  transition.h \
624                  transitionhandles.h \
625                  transitionpopup.h \
626                  transportque.h \
627                  tunerserver.h \
628                  undostackitem.h \
629                  vattachmentpoint.h \
630                  vautomation.h \
631                  vdevice1394.h \
632                  vdevicebase.h \
633                  vdevicebuz.h \
634                  vdevicedvb.h \
635                  vdevicelml.h \
636                  vdeviceprefs.h \
637                  vdevicev4l.h \
638                  vdevicev4l2.h \
639                  vdevicev4l2jpeg.h \
640                  vdevicex11.h \
641                  vedit.h \
642                  vedits.h \
643                  video1394.h \
644                  videoconfig.h \
645                  videodevfix.h \
646                  videodevice.h \
647                  videowindowgui.h \
648                  videowindow.h \
649                  viewer.h \
650                  viewmenu.h \
651                  virtualaconsole.h \
652                  virtualanode.h \
653                  virtualconsole.h \
654                  virtualnode.h \
655                  virtualvconsole.h \
656                  virtualvnode.h \
657                  vmodule.h \
658                  vpatchgui.h \
659                  vplayback.h \
660                  vpluginarray.h \
661                  vplugin.h \
662                  vpluginset.h \
663                  vrender.h \
664                  vtimebar.h \
665                  vtrack.h \
666                  vtracking.h \
667                  vwindowgui.h \
668                  vwindow.h \
669                  wavecache.h \
670                  yuvstream.h \
671                  zoombar.h \
672                  zoompanel.h \
673                 $(srcdir)/*.inc
674                  
675 cinelerra_LDADD = \
676         data/libimagedata.a \
677         $(top_builddir)/mpeg2enc/libmpeg2enc.la \
678         $(top_builddir)/toolame-02l/libtoolame.la \
679         $(top_builddir)/quicktime/libquicktimehv.la \
680         $(top_builddir)/guicast/libguicast.la \
681         $(top_builddir)/libmpeg3/libmpeg3hv.la \
682         $(XIPH_LIBS) \
683         $(A52DEC_LIBS) \
684         $(OPENEXR_LIBS) \
685         -lsndfile \
686         -lpng -ljpeg -ltiff -lz \
687         $(SOUND_LDFLAGS) \
688         $(FIREWIRE_LDFLAGS) \
689         $(LIBDV_LIBS) \
690         -luuid \
691         $(MJPEG_LIBS)
693 EXTRA_DIST = gen-feather-h