There was an error while loading. Please reload this page.
1 parent 2cdf852 commit 701ebbeCopy full SHA for 701ebbe
7 files changed
Makefile
@@ -1,6 +1,6 @@
1
CC_LINUX = gcc
2
CC_WIN = x86_64-w64-mingw32-gcc
3
-CFLAGS = -Wall -Wextra -std=c99 -O2 -Isrc
+CFLAGS = -Wall -Wextra -std=c99 -O2 -Isrc -Ilib
4
5
# Files
6
SRC = src/main.c src/astro.c src/config.c
@@ -34,15 +34,15 @@ bin/TLEscope.exe: $(SRC) | bin
34
bin/fetch_tle.exe: $(FETCH_SRC) | bin
35
$(CC_WIN) $(CFLAGS) $(WIN_PATHS) -o $@ $^ $(CURL_WIN)
36
37
-# Compiling (Linux only for object reuse)
+# Compilation
38
build/%.o: src/%.c | build
39
$(CC_LINUX) $(CFLAGS) -c $< -o $@
40
41
-# Directory management
42
-bin build:
43
- @mkdir -p $@
+build:
+ mkdir -p build
44
45
-clean:
46
- rm -rf bin build
+bin:
+ mkdir -p bin
47
48
-.PHONY: all linux windows clean
+clean:
+ rm -rf build bin
0 commit comments