Browse Source

Do parallel builds for Ubuntu packages

Make the builds faster as we now run them often via Travis.
tags/v1.9.90
Pierre Ossman 5 years ago
parent
commit
9f90b6d568

+ 5
- 3
contrib/packages/deb/ubuntu-trusty/debian/rules View File



export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS


NUMJOBS := -j$(shell nproc)

# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1


(cd fltk-*;DSOFLAGS="$(filter-out -fPIE -pie,$(LDFLAGS))" \ (cd fltk-*;DSOFLAGS="$(filter-out -fPIE -pie,$(LDFLAGS))" \
./configure --enable-shared=no --enable-cairo --enable-cp936 \ ./configure --enable-shared=no --enable-cairo --enable-cp936 \
--with-optim="$(CFLAGS) $(XCFLAGS)" --libdir=$(libdir)) --with-optim="$(CFLAGS) $(XCFLAGS)" --libdir=$(libdir))
make -C fltk-*
make $(NUMJOBS) -C fltk-*
touch fltk-stamp touch fltk-stamp


configure: config-stamp configure: config-stamp
# Add here command to compile/build the package. # Add here command to compile/build the package.
# Build first things. # Build first things.
# Build Xvnc # Build Xvnc
make LDFLAGS="-lpng"
(cd unix/xserver;make)
make $(NUMJOBS) LDFLAGS="-lpng"
make $(NUMJOBS) -C unix/xserver


touch build-arch-stamp touch build-arch-stamp



+ 4
- 2
contrib/packages/deb/ubuntu-xenial/debian/rules View File



export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS


NUMJOBS := -j$(shell nproc)

# Uncomment this to turn on verbose mode. # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1 #export DH_VERBOSE=1


# Add here command to compile/build the package. # Add here command to compile/build the package.
# Build first things. # Build first things.
# Build Xvnc # Build Xvnc
make LDFLAGS="-lpng"
(cd unix/xserver;make)
make $(NUMJOBS) LDFLAGS="-lpng"
make $(NUMJOBS) -C unix/xserver


touch build-arch-stamp touch build-arch-stamp



Loading…
Cancel
Save