Skip to content

Commit

Permalink
changed amal build
Browse files Browse the repository at this point in the history
  • Loading branch information
codeplea committed Jan 18, 2022
1 parent c2cb04f commit 94848e8
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 13 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ benchmark_talib: benchmark.c libindicators.a
#This will build all of Tulip Indicators into one .c file.
#This is recommended to be used with other bindings for ease of build.
tiamalgamation.c: $(AMAL) indicators.ca indicators.h candles.ca candles.h
echo -e "/*\n * TULIP INDICATORS AMALGAMATION\n * This is all of Tulip Indicators in one file.\n * To get the original sources, go to https://tulipindicators.org\n */\n\n" \
| cat - indicators.h candles.h utils/buffer.h utils/localbuffer.h utils/minmax.h $(AMAL) indicators.ca candles.ca > $@
cat templates/amal.txt indicators.h candles.h utils/buffer.h utils/localbuffer.h utils/minmax.h $(AMAL) indicators.ca candles.ca > $@


$(OBJS): indicators.h candles.h
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ and the header file `indicators.h` to use Tulip Indicators in your code.

If you don't want to build the library, you can simply add the
`tiamalgamation.c` file to your project, along with `indicators.h` and
candles.h`. The amalgamation file contains all of Tulip Indicators - you don't
`candles.h`. The amalgamation file contains all of Tulip Indicators - you don't
actually need any of the other source files.

This is the recommended method to import Tulip Indicators into code for
Expand Down
2 changes: 1 addition & 1 deletion candles.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand Down
4 changes: 2 additions & 2 deletions candles.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand All @@ -44,7 +44,7 @@


#define TC_VERSION "0.9.1"
#define TC_BUILD 1642468960
#define TC_BUILD 1642469817



Expand Down
2 changes: 1 addition & 1 deletion indicators.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand Down
4 changes: 2 additions & 2 deletions indicators.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand All @@ -44,7 +44,7 @@


#define TI_VERSION "0.9.1"
#define TI_BUILD 1642468960
#define TI_BUILD 1642469817



Expand Down
7 changes: 7 additions & 0 deletions templates/amal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* TULIP INDICATORS AMALGAMATION
* This is all of Tulip Indicators in one file.
* To get the original sources, go to https://tulipindicators.org
*/


8 changes: 4 additions & 4 deletions tiamalgamation.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand All @@ -51,7 +51,7 @@


#define TI_VERSION "0.9.1"
#define TI_BUILD 1642468960
#define TI_BUILD 1642469817



Expand Down Expand Up @@ -1146,7 +1146,7 @@ int ti_zlema(int size, TI_REAL const *const *inputs, TI_REAL const *options, TI_
/*
*
* Version 0.9.1
* Header Build 1642468960
* Header Build 1642469817
*
*/

Expand All @@ -1160,7 +1160,7 @@ int ti_zlema(int size, TI_REAL const *const *inputs, TI_REAL const *options, TI_


#define TC_VERSION "0.9.1"
#define TC_BUILD 1642468960
#define TC_BUILD 1642469817



Expand Down

0 comments on commit 94848e8

Please sign in to comment.