FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
my-c-array/Makefile at main · BaseMax/my-c-array · GitHub
BaseMax
/
my-c-array
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
my-c-array
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (17 loc) · 427 Bytes
Breadcrumbs
my-c-array
/
Makefile
Copy path
File metadata and controls
23 lines (17 loc) · 427 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC
= gcc
CFLAGS
= -Wall -Wextra -O2 -Iinclude -Isrc
SRC_DIR
= src
OBJ_DIR
= build
LIB_NAME
= libmyarray.a
SRCS
:=
$(
shell
find
$(
SRC_DIR
)
-name "
*
.c")
OBJS
:=
$(
patsubst
$(
SRC_DIR
)
/
%
.c,
$(
OBJ_DIR
)
/
%
.o,
$(
SRCS
)
)
all
:
$(
LIB_NAME
)
$(
LIB_NAME
)
:
$(
OBJS
)
@ar rcs
$@
$^
@echo
"
Created
$@
"
$(
OBJ_DIR
)
/
%
.o
:
$(
SRC_DIR
)
/
%
.c
@mkdir -p
$(
dir
$@
)
$(
CC
)
$(
CFLAGS
)
-c
$<
-o
$@
clean
:
rm -rf
$(
OBJ_DIR
)
$(
LIB_NAME
)
.PHONY
: all clean
Back
|
FazBrowse Home
|
New Git URL