~ubuntu-branches/ubuntu/precise/fltk1.1/precise

« back to all changes in this revision

Viewing changes to fluid/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2010-01-06 22:05:04 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100106220504-nwj8m1sa90s760yt
Tags: 1.1.10-2
* src/Makefile: link libfltk.so.1.1 against -lpthread, as fluid now
  otherwise fails to link on the Hurd (with complaints that libfltk.so.1
  contains undefined references to pthread_mutexattr_*).
* debian/source.lintian-overrides: retire per Lintian 2.3.1.  (See #553264.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
 
# "$Id: Makefile 6051 2008-02-26 15:26:08Z matt $"
 
2
# "$Id: Makefile 6612 2008-12-29 20:21:29Z matt $"
3
3
#
4
4
# FLUID makefile for the Fast Light Tool Kit (FLTK).
5
5
#
42
42
        file.cxx \
43
43
        fluid.cxx \
44
44
        function_panel.cxx \
45
 
        i18n.cxx \
46
45
        template_panel.cxx \
47
46
        undo.cxx \
48
47
        widget_panel.cxx
49
48
 
50
 
FLUIDFILES= about_panel.cxx  alignment_panel.cxx  function_panel.cxx  widget_panel.cxx
51
 
 
52
49
################################################################
53
50
 
54
51
OBJECTS = $(CPPFILES:.cxx=.o)
55
52
 
56
 
FLUIDHEADERS = $(FLUIDFILES:.cxx=.h)
57
 
 
58
 
CLEAN   = core*
59
 
 
60
53
include ../makeinclude
61
54
 
62
 
# %.cxx: %.fl %.h
63
 
#       fluid -c -o $@ $<
64
 
65
 
# %.h : %.fl
66
 
#       fluid -c -o /dev/null -h $@ $<
67
 
 
68
 
all:    $(FLUID) fluid$(EXEEXT) po-files
69
 
 
70
 
fluid$(EXEEXT):         $(OBJECTS) ../lib/$(LIBNAME) ../lib/$(FLLIBNAME) \
71
 
                        ../lib/$(IMGLIBNAME)
 
55
all:    $(FLUID) fluid$(EXEEXT)
 
56
 
 
57
fluid$(EXEEXT):         $(OBJECTS) $(LIBNAME) $(FLLIBNAME) \
 
58
                        $(IMGLIBNAME)
72
59
        echo Linking $@...
73
60
        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LINKFLTKFORMS) $(LINKFLTKIMG) $(LDLIBS)
74
61
        $(OSX_ONLY) $(INSTALL_BIN) fluid fluid.app/Contents/MacOS
78
65
                        ../src/$(IMGDSONAME)
79
66
        echo Linking $@...
80
67
        $(CXX) $(ARCHFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) \
81
 
            -L../src -Wl,-rpath-link,../src -lfltk_images -lfltk_forms
 
68
            -L../src -Wl,-rpath-link,../src -lfltk_images -lfltk_forms -lfltk \
 
69
            -lpng -lX11
82
70
        $(POSTBUILD) $@ ../FL/mac.r
83
71
 
84
 
po-files:
85
 
        cd po && $(MAKE)
86
 
 
87
72
clean:
88
73
        -$(RM) *.o core.* *~ *.bck *.bck
89
 
        -$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT) $(CLEAN)
90
 
        cd po && $(MAKE) clean
 
74
        -$(RM) core fluid$(EXEEXT) fluid-shared$(EXEEXT)
91
75
        -$(RM) fluid.app/Contents/MacOS/fluid$(EXEEXT)
92
76
 
93
 
clean_fl:
94
 
        -rm -f $(FLUIDHEADERS) $(FLUIDFILES)
95
 
 
96
77
depend: $(CPPFILES)
97
78
        makedepend -Y -I.. -f makedepend $(CPPFILES)
98
79
 
103
84
        echo "Installing FLUID in $(DESTDIR)$(bindir)..."
104
85
        -$(INSTALL_DIR) $(DESTDIR)$(bindir)
105
86
        $(INSTALL_BIN) $(FLUID) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
106
 
        cd po && $(MAKE) install LOCALEDIR=$(DESTDIR)$(datadir)/locale/
107
87
 
108
88
install-linux:
109
89
        -$(INSTALL_DIR) $(DESTDIR)/usr/share/applications
131
111
 
132
112
uninstall:
133
113
        $(RM) $(DESTDIR)$(bindir)/fluid$(EXEEXT)
134
 
        cd po && $(MAKE) uninstall LOCALEDIR=$(DESTDIR)$(datadir)/locale/
135
114
 
136
115
uninstall-linux:
137
116
        $(RM) $(DESTDIR)/usr/share/applications/fluid.desktop
156
135
        ./fluid -c widget_panel.fl
157
136
 
158
137
#
159
 
# End of "$Id: Makefile 6051 2008-02-26 15:26:08Z matt $".
 
138
# End of "$Id: Makefile 6612 2008-12-29 20:21:29Z matt $".
160
139
#