Revision 1e6d760a
| b/Makefile.common | ||
|---|---|---|
| 20 | 20 |
# Boston, MA 02110-1301, USA. |
| 21 | 21 |
# |
| 22 | 22 |
|
| 23 |
# Make rebuilds less verbose with stuff we can safely ignore |
|
| 24 |
# about GNU make only extensions. |
|
| 25 |
AUTOMAKE += -Wno-portability -Wnone |
|
| 26 |
|
|
| 23 | 27 |
AM_CFLAGS = @autoconf_default_CFLAGS@ @lf_CFLAGS@ |
| 24 | 28 |
AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ @lf_CXXFLAGS@ |
| 25 | 29 |
|
| ... | ... | |
| 125 | 129 |
# Compile a .i to what guile needs. We use -o to set the output file name, |
| 126 | 130 |
# or even with -outdir guile in SWIG_GUILE_ARGS, swig keeps putting a |
| 127 | 131 |
# gnuradio_core_*_wrap.cxx in the source directory. |
| 128 |
.i.scm:
|
|
| 132 |
gnuradio/%.scm : %.i
|
|
| 129 | 133 |
@echo "Compile .i to .scm" |
| 130 | 134 |
@test -d "guile" || $(mkinstalldirs) "guile" |
| 131 | 135 |
@test -d "gnuradio" || $(mkinstalldirs) "gnuradio" |
| ... | ... | |
| 134 | 138 |
-module $* -o guile/$*.cc $< |
| 135 | 139 |
sed -e 's:guile/gnuradio_core_runtime.cc:gnuradio_core_runtime.scm:' guile/$*.Std > guile/$*.d |
| 136 | 140 |
$(RM) guile/$*.Std $*.Std |
| 137 |
touch $*.scm |
|
| 138 | 141 |
$(SED) -i -e 's/<--dummy-[0-9]\+-->/<top>/g' gnuradio/$*.scm |
| 139 | 142 |
$(SED) -i -e 's/^(export /(export-safely /' gnuradio/$*.scm |
| 140 | 143 |
endif |
| ... | ... | |
| 150 | 153 |
$(RM) python/$*.Std |
| 151 | 154 |
|
| 152 | 155 |
# Don't distribute the files defined in the variable 'no_dist_files' |
| 156 |
no_dist_dirs = python gnuradio guile |
|
| 153 | 157 |
dist-hook: |
| 158 |
@for dir in $(no_dist_dirs); do \ |
|
| 159 |
echo $(RM) -fr $(distdir)/$$dir; \ |
|
| 160 |
$(RM) -fr $(distdir)/$$dir; \ |
|
| 161 |
done; |
|
| 154 | 162 |
@for file in $(no_dist_files); do \ |
| 155 | 163 |
echo $(RM) $(distdir)/$$file; \ |
| 156 | 164 |
$(RM) $(distdir)/$$file; \ |
| 157 | 165 |
done; |
| 166 |
|
|
Also available in: Unified diff