source: git/src/Makefile.am @ 1ce8aba

1.2.37
Last change on this file since 1ce8aba was 1ce8aba, checked in by Olly Betts <olly@…>, 11 months ago

Remove 3dtopos on "make uninstall"

  • Property mode set to 100644
File size: 4.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3noinst_HEADERS = cavern.h commands.h cmdline.h date.h datain.h debug.h\
4 filelist.h filename.h getopt.h hash.h img.c img.h img_hosted.h kml.h\
5 labelinfo.h listpos.h matrix.h message.h namecmp.h namecompare.h netartic.h\
6 netbits.h netskel.h network.h osalloc.h\
7 osdepend.h ostypes.h out.h readval.h str.h useful.h validate.h whichos.h\
8 glbitmapfont.h gllogerror.h guicontrol.h gla.h gpx.h moviemaker.h\
9 exportfilter.h hpgl.h cavernlog.h aboutdlg.h aven.h avenpal.h gfxcore.h\
10 json.h log.h mainfrm.h pos.h vector3.h wx.h aventypes.h aventreectrl.h\
11 export.h model.h printing.h avenprcore.h img2aven.h thgeomag.h\
12 thgeomagdata.h moviemaker-legacy.cc
13
14LDADD = $(LIBOBJS)
15
16# FIXME: mingw_progs in top level Makefile.am needs keeping in step with this
17bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven
18
19install-exec-hook:
20        ln $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
21           $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) || \
22            cp -p $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
23                  $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
24
25uninstall-hook:
26        rm -f $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
27
28check_PROGRAMS = imgtest
29
30COMMONSRC = cmdline.c message.c str.c filename.c osdepend.c z_getopt.c getopt1.c
31
32cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
33 network.c readval.c matrix.c img_hosted.c netbits.c useful.c \
34 validate.c netartic.c thgeomag.c \
35 $(COMMONSRC)
36cavern_LDADD = $(PROJ_LIBS)
37
38aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \
39 namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \
40 glbitmapfont.cc gpx.cc json.cc kml.cc log.cc moviemaker.cc hpgl.cc \
41 cavernlog.cc avenprcore.cc printing.cc buttontaghandler.cc pos.cc \
42 date.c img_hosted.c useful.c hash.c \
43 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
44 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
45 rotatezoom.xbm rotatezoommask.xbm \
46 $(COMMONSRC)
47
48dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
49 $(COMMONSRC)
50
51if WIN32
52aven_LDADD = avenrc.o $(LIBOBJS) $(LIBAV_LIBS) $(WX_LIBS) $(PROJ_LIBS)
53
54avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
55        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/avenrc.o" aven.rc
56
57else
58aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS) $(LIBAV_LIBS)
59endif
60
61AM_CFLAGS += $(PROJ_CFLAGS)
62
63aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
64aven_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(LIBAV_CFLAGS) $(WX_CXXFLAGS)
65aven_LDFLAGS =
66
67survexport_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS)
68survexport_LDFLAGS =
69survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS)
70
71if MACOSX
72# FIXME: It looks like modern wx-config should give us this...
73aven_LDFLAGS += -framework OpenGL
74endif
75
76diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
77 $(COMMONSRC)
78sorterr_SOURCES = sorterr.c $(COMMONSRC)
79extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
80 $(COMMONSRC)
81
82survexport_SOURCES = survexport.cc model.cc export.cc namecompare.cc \
83                useful.c hash.c img_hosted.c \
84                gpx.cc hpgl.cc json.cc kml.cc pos.cc vector3.cc $(COMMONSRC)
85
86#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
87
88imgtest_SOURCES = imgtest.c img.c
89
90all_sources = \
91        $(noinst_HEADERS) \
92        $(COMMONSRC) \
93        $(cavern_SOURCES) \
94        $(aven_SOURCES) \
95        $(dump3d_SOURCES) \
96        $(diffpos_SOURCES) \
97        $(sorterr_SOURCES) \
98        $(extend_SOURCES) \
99        $(survexport_SOURCES)
100
101../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
102        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
103
104EXTRA_DIST = \
105 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
106 igrf12coeffs.txt igrf2c.py
107
108BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h
109
110z_getopt.c: getopt.c gettexttomsg.pl
111        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
112
113avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
114        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
115
116img2aven.h: $(srcdir)/gen_img2aven
117        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
118
119thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
120        python $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
121        mv ../thgeomagdata.h .
122
123MAINTAINERCLEANFILES =\
124 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.