Skip to content

Commit

Permalink
Fix Makefile flags for autosplitter compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
mlugg committed Apr 13, 2021
1 parent 8219b35 commit 18b40e7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@
CFLAGS := -Wall -Werror $(shell pkg-config --cflags vtk) -D_POSIX_C_SOURCE=200809L
LDFLAGS := $(shell pkg-config --libs vtk) -lpthread

SPLITTER_FLAGS := -D_POSIX_C_SOURCE=200809L

HDRS := $(wildcard *.h)

all: adrift splitters

clean:
rm -f adrift *.o splitters/*.o splitters/sar_split
rm -f adrift *.o splitters/sar_split

splitters: splitters/sar_split

adrift: main.o draw.o common.o io.o calc.o timer.o config.o
$(CC) -o $@ $^ $(LDFLAGS)

splitters/sar_split: splitters/sar_split.o
$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c $(HDRS)
$(CC) -c -o $@ $< $(CFLAGS)
splitters/%: splitters/%.c
$(CC) -o $@ $^ $(SPLITTER_FLAGS)

0 comments on commit 18b40e7

Please sign in to comment.