Add example with libraries
This commit is contained in:
parent
ecc48f708b
commit
5e4fb03b91
3
Makefile
3
Makefile
|
@ -25,6 +25,9 @@ BUILD=./
|
||||||
# Define the source code
|
# Define the source code
|
||||||
SOURCES=hello.cpp
|
SOURCES=hello.cpp
|
||||||
|
|
||||||
|
# Define libraries we use in that project
|
||||||
|
LIBRARIES=lib1 lib2
|
||||||
|
|
||||||
# Define the product of the build (.exe will be removed for Unix builds)
|
# Define the product of the build (.exe will be removed for Unix builds)
|
||||||
PRODUCTS=hello.exe
|
PRODUCTS=hello.exe
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#******************************************************************************
|
||||||
|
# Makefile<lib1> XL - An extensible language
|
||||||
|
#******************************************************************************
|
||||||
|
#
|
||||||
|
# File Description:
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#******************************************************************************
|
||||||
|
# (C) 2017 Christophe de Dinechin <christophe@dinechin.org>
|
||||||
|
# This software is licensed under the GNU General Public License v3
|
||||||
|
# See LICENSE file for details.
|
||||||
|
#******************************************************************************
|
||||||
|
|
||||||
|
BUILD=../
|
||||||
|
SOURCES=lib1.c
|
||||||
|
PRODUCTS=lib1.lib
|
||||||
|
|
||||||
|
include $(BUILD)rules.mk
|
|
@ -0,0 +1,4 @@
|
||||||
|
int lib1_foo()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
#******************************************************************************
|
||||||
|
# Makefile<lib2> XL - An extensible language
|
||||||
|
#******************************************************************************
|
||||||
|
#
|
||||||
|
# File Description:
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#
|
||||||
|
#******************************************************************************
|
||||||
|
# (C) 2017 Christophe de Dinechin <christophe@dinechin.org>
|
||||||
|
# This software is licensed under the GNU General Public License v3
|
||||||
|
# See LICENSE file for details.
|
||||||
|
#******************************************************************************
|
||||||
|
|
||||||
|
BUILD=../
|
||||||
|
|
||||||
|
SOURCES=lib2.c
|
||||||
|
PRODUCTS=lib2.lib
|
||||||
|
|
||||||
|
include $(BUILD)rules.mk
|
|
@ -0,0 +1,4 @@
|
||||||
|
int lib2_bar()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue