aboutsummaryrefslogtreecommitdiff
path: root/fptr_ast/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-08-31 14:45:52 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2025-08-31 14:45:52 +0300
commit752675bc0c9ba6082038bc25cefe838c1f58b5de (patch)
tree358c76ccf2a6195d7f6ab1e4d72b40d32bbb75af /fptr_ast/Makefile
parenta0c6ff2c222beb72493f2e40ed27492061dfdf22 (diff)
downloadplayground-752675bc0c9ba6082038bc25cefe838c1f58b5de.tar.gz
playground-752675bc0c9ba6082038bc25cefe838c1f58b5de.zip
free resources
Diffstat (limited to 'fptr_ast/Makefile')
-rw-r--r--fptr_ast/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/fptr_ast/Makefile b/fptr_ast/Makefile
index 530e543..68cc338 100644
--- a/fptr_ast/Makefile
+++ b/fptr_ast/Makefile
@@ -1,10 +1,14 @@
all: struct fptr ref
struct: struct.c main.c common.h
- $(CC) -Wall -Wextra -g -O2 -Ideps/conts/include -DSTRUCT main.c -o struct
+ $(CC) $(CFLAGS) -Wall -Wextra -g -O2 -Ideps/conts/include -DSTRUCT main.c -o struct
fptr: fptr.c main.c common.h
- $(CC) -Wall -Wextra -g -O2 -Ideps/conts/include -DFPTR main.c -o fptr
+ $(CC) $(CFLAGS) -Wall -Wextra -g -O2 -Ideps/conts/include -DFPTR main.c -o fptr
ref: ref.c common.h
- $(CC) -Wall -Wextra -g -O2 ref.c -o ref
+ $(CC) $(CFLAGS) -Wall -Wextra -g -O2 ref.c -o ref
+
+.PHONY: clean
+clean:
+ rm struct fptr ref