We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8219b35 commit 18b40e7Copy full SHA for 18b40e7
Makefile
@@ -4,20 +4,19 @@
4
CFLAGS := -Wall -Werror $(shell pkg-config --cflags vtk) -D_POSIX_C_SOURCE=200809L
5
LDFLAGS := $(shell pkg-config --libs vtk) -lpthread
6
7
+SPLITTER_FLAGS := -D_POSIX_C_SOURCE=200809L
8
+
9
HDRS := $(wildcard *.h)
10
11
all: adrift splitters
12
13
clean:
- rm -f adrift *.o splitters/*.o splitters/sar_split
14
+ rm -f adrift *.o splitters/sar_split
15
16
splitters: splitters/sar_split
17
18
adrift: main.o draw.o common.o io.o calc.o timer.o config.o
19
$(CC) -o $@ $^ $(LDFLAGS)
20
-splitters/sar_split: splitters/sar_split.o
- $(CC) -o $@ $^ $(LDFLAGS)
21
-
22
-%.o: %.c $(HDRS)
23
- $(CC) -c -o $@ $< $(CFLAGS)
+splitters/%: splitters/%.c
+ $(CC) -o $@ $^ $(SPLITTER_FLAGS)
0 commit comments