polygon

Polygon triangulation
git clone git://git.meso-star.fr/polygon.git
Log | Files | Refs | README | LICENSE

commit d1c4ef80f1a65f491f6b53f84135df24175c82c6
parent ba933c61a8ca899e942d81134d69216e2592f5d8
Author: vaplv <vaplv@free.fr>
Date:   Sun, 19 Jun 2022 16:14:03 +0200

Upd the LDFLAGS and CLFAGS variables of the POSIX Make

Diffstat:
MMakefile | 6+++---
Mconfig.mk | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -33,7 +33,7 @@ $(OBJ): config.mk libpolygon.so: $(OBJ) @echo "LD $@" - @$(CC) $(CFLAGS) -o $@ $(OBJ) $(LDFLAGS) + @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) .config: Makefile config.mk @echo "Find packages" @@ -44,11 +44,11 @@ libpolygon.so: $(OBJ) .SUFFIXES: .c .d .o .c.d: @echo "DEP $@" - @$(CC) $(CFLAGS) -MM -MT "$(@:.d=.o) $@" $< -MF $@ + @$(CC) $(CFLAGS) $(INCS) -MM -MT "$(@:.d=.o) $@" $< -MF $@ .c.o: @echo "CC $@" - @$(CC) $(CFLAGS) -DPOLYGON_SHARED_BUILD -c $< -o $@ + @$(CC) $(CFLAGS) $(INCS) -DPOLYGON_SHARED_BUILD -c $< -o $@ ################################################################################ # Miscellaneous targets diff --git a/config.mk b/config.mk @@ -28,7 +28,7 @@ WFLAGS =\ -Wshadow CFLAGS = -O2 -std=c89 -pedantic -fPIC -fvisibility=hidden -fstrict-aliasing\ - -Wl,--no-undefined $(WFLAGS) $(CPPFLAGS) $(INCS) # Compiler options -LDFLAGS = -shared $(LIBS) # Linker options + -Wl,--no-undefined $(WFLAGS) $(CPPFLAGS) # Compiler options +LDFLAGS = -shared # Linker options