Commit graph

24 commits

Author SHA1 Message Date
dundargoc
8759352542 build: add useful development targets to makefile 2024-02-09 13:19:28 +01:00
dundargoc
ff367ebf4c build: enable -pedantic
Co-authored-by: Patrick Thomson <patrickt@github.com>
2024-02-08 16:12:54 +01:00
Max Brunsfeld
f4e2f68f14 Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
Andrew Hlynskyi
b412d86f19 fix: makefile should install only api.h header 2023-08-26 20:51:52 +03:00
Andrew Hlynskyi
bba9809390 fix: make install BSDs don't have -t option 2023-08-22 16:33:03 +03:00
Andrew Hlynskyi
897c187786 fix: make install should install files with default perms 2023-08-21 06:19:49 +03:00
James McCoy
545ef842de
Remove -Werror from default CFLAGS
Production builds shouldn't include -Werror by default since that could
cause spurious build failures when there are toolchain updates.

CI uses -Werror to prevent warnings, so that should be sufficient.
2023-08-18 14:23:19 -04:00
Andrew Hlynskyi
113d100250 Add an optional strip step to the Makefile
It can be used like:
  > make clean && make -j CC=clang AR=llvm-ar STRIP=llvm-strip
2023-08-17 15:39:14 +03:00
Andrew Hlynskyi
5e3df64a46 fix(lib): expose only symbols defined in api.h 2023-08-17 15:01:47 +03:00
Andrew Hlynskyi
cbe805d82a Allow override Makefile CFLAGS by appending and not by overwriting 2023-08-17 15:00:58 +03:00
Amaan Qureshi
13f6ec2b0c
fix: rename shadowed variables from -Wshadow warnings and apply some useful clang-tidy warnings 2023-07-19 18:12:26 -04:00
Andrew Hlynskyi
0e4ff0bb27 chore: fix lib version in Makefile and set it to 0.20.10 2023-04-16 23:39:01 +03:00
Andrew Hlynskyi
9ac55f79d1 Update Makefile VERSION to 0.20.9 from lib/Cargo.toml
Closes #1158
Closes #1608
2023-01-08 04:39:46 +02:00
Max Brunsfeld
042e6f9d57 Restucture wasm module, return a normal TSLanguage from load_language 2022-11-15 17:14:33 -08:00
Thomas Vigouroux
81d533d2d1
Fix compilation warnings (#635)
* lib: fix compilation warnings

* ci: add CFLAGS
2020-06-03 12:19:57 -07:00
Eli Schwartz
af498bc0c3
Add a simple Makefile-based build system.
This produces static/shared libraries as well as a pkg-config file, and
installs them to the standard Unix hierarchy. GNU Make is assumed as
features like $(wildcard ...) or $(shell uname) may not work elsewhere,
but it should otherwise build on most/all Unix platforms.

Note that we assume the following POSIX default rules/macros exist, so
we don't bother redefining them:
- pattern rules for compiling .c -> .o
- $(CC)
- $(AR)

Special note on the .pc file generation: we do most variable
replacements in one go, but delay @PREFIX@ so that we can first find
existing substring instances of the prefix value (if libdir/includedir
reside within the prefix), and update them to use a literal pkg-config
variable '${prefix}'. This is fairly compact (one single sed) while
still letting us produce pkg-config files that support runtime
redefinition à la cross-compilation.
2020-04-21 23:49:19 -04:00
Max Brunsfeld
67e008d15d Generate makefile with gyp
- Add gyp submodule
- Add script to generate makefile with gyp
- Switch travis build to do this
2014-03-03 13:20:44 -08:00
Max Brunsfeld
3c646d707a Add static library as make target 2014-03-02 00:07:00 -08:00
Max Brunsfeld
ded54a3a1a Fix some memory management bugs with trees 2014-03-01 00:25:05 -08:00
Max Brunsfeld
cdf63b6083 Add missing includes 2014-02-20 23:11:27 -08:00
Max Brunsfeld
9f0a395c0d Remove clang -stdlib flag in makefile 2014-02-19 09:24:55 -08:00
Max Brunsfeld
6b23a5ac0d Respect CXX env var in Makefile 2014-02-18 12:38:29 -08:00
Max Brunsfeld
2c56612650 Get makefile working 2014-02-18 09:07:00 -08:00
Max Brunsfeld
84c5bceb81 Initial commit 2013-11-05 22:15:19 -08:00