################################
### Initialize a new project ###
################################
#
# create initial project titled 'my-app', the corresponding directory structure and generate files
#
./configure --init 'my-app'
#
# On ALL linux OS:
# [OPTIONAL: change settings in shell script 'config_default.sh']
# configure, build and run the binary with the following commands:
#
./configure
make
./build/linux/bin/my-app
#
# On DEB based OS:
# [OPTIONAL: change settings in shell script 'config_default.sh']
# configure, build, install, run and uninstall the binary with the following commands:
#
./configure --prefix=/usr
make
sudo make deb
sudo dpkg --install my-app*.deb
my-app
sudo dpkg --remove my-app
#
# On RPM based OS:
# [OPTIONAL: change settings in shell script 'config_default.sh']
# configure, build, install, run and uninstall the binary with the following commands:
#
./configure --prefix=/usr
make
sudo make rpm
sudo rpm --install my-app*.rpm
my-app
sudo rpm --erase my-app
#
# On mingw/msys:
# [OPTIONAL: change settings in shell script 'config_default.sh' or 'config_mingw.sh']
# configure, build and run the binary with the following commands:
#
./configure --config-mingw
make
./build/msw/bin/my-app.exe
################################################################################
### Shared library 'config_lib-shared.sh' (with default compiler and linker) ###
################################################################################
#!/bin/sh
# import setings from config-default
. ./config_default.sh
BINFILE="$DISTROOT/bin/libmy-app.so.1"
CFLAGS="
-c
-Wall
-O2
-fPIC
-fvisibility=hidden
-Iinclude
"
LDFLAGS="
-s
-shared
-Wl,-soname,libmy-app.so.1
"
###################################################################
### Static library 'config_lib-static.sh' (with 'ar' as linker) ###
###################################################################
#!/bin/sh
# import setings from config-default
. ./config_default.sh
BINFILE="$DISTROOT/bin/libmy-app.a"
LD="ar"
LDFLAGS="
-r
-c
"
LDLIBS=""