-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 828 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.PHONY: all clean build mkdir copy_prebuilt
all: mkdir build copy_prebuilt
clean:
rm -rf ./execs/*
build:
gcc "src/first_C_program/main.c" -o "src/first_C_program/main"
gcc "src/veriablez/int/int.c" -o "src/veriablez/int/int"
gcc "src/veriablez/float/float.c" -o "src/veriablez/float/float"
gcc "src/veriablez/char/char.c" -o "src/veriablez/char/char"
gcc "src/veriablez/sTriNg/string.c" -o "src/veriablez/sTriNg/string"
mkdir:
mkdir -p execs
mkdir -p execs/veriablez/
copy_prebuilt:
cp -r src/first_C_program/main ./execs/first_C_program
cp -r src/veriablez/int/int ./execs/veriablez/int
cp -r src/veriablez/float/float ./execs/veriablez/float
cp -r src/veriablez/char/char ./execs/veriablez/char
cp -r src/veriablez/bool/bool ./execs/veriablez/bool
cp -r src/veriablez/sTriNg/string ./execs/veriablez/string