File tree Expand file tree Collapse file tree 5 files changed +10
-48
lines changed Expand file tree Collapse file tree 5 files changed +10
-48
lines changed Original file line number Diff line number Diff line change 1
1
* .exe
2
2
ceafetch
3
+
4
+ src /stringEx
Original file line number Diff line number Diff line change 3
3
BUILD_DIR := build
4
4
SRC_DIR := src
5
5
6
- BUILD_CMD := gcc -o $(BUILD_DIR ) /ceafetch $(SRC_DIR ) /ceafetch.c $(SRC_DIR ) /libs/stringEx.c
6
+ i_stringEx := -L./$(SRC_DIR ) /stringEx -I./$(SRC_DIR ) /stringEx -lstringEx
7
+ BUILD_CMD := gcc -o $(BUILD_DIR ) /ceafetch $(SRC_DIR ) /ceafetch.c $(i_stringEx )
7
8
8
9
9
10
ifeq ($(OS ) ,Windows_NT)
10
- $(BUILD_DIR ) /ceafetch.exe : $(SRC_DIR ) /ceafetch.c $(BUILD_DIR )
11
+ $(BUILD_DIR ) /ceafetch.exe : $(SRC_DIR ) /ceafetch.c $(BUILD_DIR ) $( SRC_DIR ) /stringEx
11
12
$(BUILD_CMD )
12
13
else
13
- $(BUILD_DIR ) /ceafetch : $(SRC_DIR ) /ceafetch.c $(BUILD_DIR )
14
+ $(BUILD_DIR ) /ceafetch : $(SRC_DIR ) /ceafetch.c $(BUILD_DIR ) $( SRC_DIR ) /stringEx
14
15
$(BUILD_CMD )
15
16
16
17
endif
17
18
18
19
$(BUILD_DIR ) :
19
20
mkdir $(BUILD_DIR )
20
21
22
+ $(SRC_DIR ) /stringEx :
23
+ cd $(SRC_DIR ) && git clone https://github.com/bendikMichal/stringEx && cd stringEx && make
24
+
21
25
run :
22
26
@./$(BUILD_DIR ) /./ceafetch
Original file line number Diff line number Diff line change 6
6
# include <math.h>
7
7
# include <string.h>
8
8
9
- # include "libs /stringEx.h"
9
+ # include "stringEx /stringEx.h"
10
10
11
11
# define MAX_LN 64
12
12
@@ -132,7 +132,6 @@ int main () {
132
132
RAM .all = get_phys_pages () * sysconf (_SC_PAGESIZE );
133
133
134
134
RAM .used = RAM .all - RAM .available ;
135
-
136
135
137
136
// Detect OS
138
137
char OS [256 ];
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments