From 2905b718351d59bc37987ab7811282b8762aa69d Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 31 Dec 2023 15:42:44 +0000 Subject: [PATCH] Update build script --- compile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compile b/compile index dfbee72..6f5229c 100644 --- a/compile +++ b/compile @@ -7,3 +7,9 @@ LIBS="-lm" $CC $CFLAGS -I01_no_metaprogramming ./01_no_metaprogramming/*.c $LIBS -o 01_vec_no_metaprogramming $CC $CFLAGS -I02_macros ./02_macros/*.c $LIBS -o 02_vec_macros $CC $CFLAGS -I03_xmacros ./03_xmacros/*.c $LIBS -o 03_vec_xmacros + +$CC $CFLAGS -I04_codegen -Imem_arena 04_codegen/codegen.c mem_arena/*.c -o 04_codegen/codegen +cd 04_codegen +./codegen +cd ../ +$CC $CFLAGS -I04_codegen ./04_codegen/main.c $LIBS -o 04_vec_codegen