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