Commit Graph

16 Commits

Author SHA1 Message Date
Daniel Santos dc910012f9 Makefile: include header file in install-lib
* install numericx.h with Makefile rule install-lib

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-19 10:20:24 +00:00
Daniel Santos 9e89a65676 add to Makefile
* change make into $(MAKE)
 * in compiling libraries, echo message with path
 * create Makefile variables: INSTALL and prefix
 * add rule install-lib

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-19 08:22:20 +00:00
Daniel Santos ff971aaa63 add/update MAkefile
* removed c99 as the c compiler variable
 * add doc rule
 * add build library rules for .a and .so
 * mem2 rule now tests for 000 arg instead of 0
 * clean rule update for libraries
 * add numericx.h dependency to rules

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-18 22:03:33 +00:00
Daniel Santos 63a4b2b9bb add to Makefile libnumericx.a
* add libnumericx.a static library building and clearing

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 21:37:08 +00:00
Daniel Santos b7c06abbcf Makefile accomodate separation of concerns
* the source code was, in the last commit, separated, in order to
   create a library. Makes build the CLIs in the Makefile work.
 * make clean cleans the *.o

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 19:09:55 +00:00
Daniel Santos fd66c37285 invalid argument list of main() return E2BIG
* If invalid number of arguments supplied to main(), return errno E2BIG
 * add Makefile rule to test memory leak of wrong number of arguments to
   main()

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 14:24:13 +00:00
Daniel Santos 089a2a899c Makefile more memory rules
* add to Makefile the rules: mem1, mem2 and mem3

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 11:51:42 +00:00
Daniel Santos a23fe88c3a Makefile fix
* fix sun-to-earth rule, missing -o

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 07:49:49 +00:00
Daniel Santos b559d657c3 test rule in Makefile
* add tests/earth.sh
 * add to Makefile all the necessary rules for `make test`

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-15 14:34:39 +00:00
Daniel Santos 471cd39b04 rearrange Makefile
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-14 15:32:52 +00:00
Daniel Santos 5d7cabc420 add to Makefile sun<->earth rule
* add sun to earth and vice-versa rule, without adding it to the all
   rule
 * also add earth<->sun to 'clean' Makefile rule

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 18:14:15 +00:00
Daniel Santos f1cd830c40 add decimal<->binary Makefile rule
* add decimal to binary and vice-versa Makefile rule

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 17:38:31 +00:00
Daniel Santos 6e579c2763 add .PHONY to Makefile
* add .PHONY to some rules in Makefile

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 17:21:36 +00:00
Daniel Santos 90c869857b free memory
* add mem rule to Makefile
 * add free_numeral()
 * free all memory allocations

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 13:21:39 +00:00
Daniel Santos ab849603a0 Makefile update
* put all the rules to make programs to test my past numerical systems
   programs

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-12 12:16:25 +00:00
Daniel Santos 4f221f3649 working
Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-08 18:45:10 +00:00