From f6e775474df2112c2553f416508c0fea1600bb92 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 12 Jul 2023 22:26:21 -0300 Subject: [PATCH] makefile tweaks --- Makefile | 6 ++---- tests.c | 0 2 files changed, 2 insertions(+), 4 deletions(-) mode change 100755 => 100644 tests.c diff --git a/Makefile b/Makefile index 4c6b7fd..caf1ba9 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CC=tcc +CC=gcc all: tests shortcodes.c: shortcodes.rl ragel -G2 -L shortcodes.rl -o shortcodes.c @@ -6,10 +6,8 @@ shortcodes.c: shortcodes.rl $(CC) -fPIC -c -o $@ $^ -g tests.so: shortcodes.o tests.o $(CC) -shared -g -o $@ $^ -lbg -lcgreen -test-binary: shortcodes.c tests.c - $(CC) -g -o tests shortcodes.c tests.c -DMAIN=1 -lbg -lcgreen clean: - rm -f shortcodes.c *.o *.so + rm -f shortcodes.c *.o *.so tests test: tests.so cgreen-runner $^ debug: diff --git a/tests.c b/tests.c old mode 100755 new mode 100644