This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
warden: Move tool to separate dir and fix build process
Change-Id: I2fd62cd14ce6779d2416765b446daf732d02470a
- Loading branch information
Showing
7 changed files
with
25 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
OPTIMIZATION?=-O0 | ||
DEBUG?=-g -ggdb -rdynamic | ||
BINS=report_quota runner clone | ||
default: all | ||
|
||
all: $(BINS) | ||
# Proxy any target to the Makefiles in the per-tool directories | ||
%: | ||
cd clone && $(MAKE) $@ | ||
cd oom && $(MAKE) $@ | ||
|
||
clean: | ||
rm -f *.o $(BINS) | ||
|
||
.PHONY: all clean | ||
|
||
report_quota: report_quota.o | ||
$(CC) -o $@ $^ | ||
|
||
runner: runner.o | ||
$(CC) -o $@ $^ | ||
|
||
clone: clone.o | ||
$(CC) -o $@ -lutil $^ | ||
|
||
oom: oom.o | ||
$(CC) -o $@ $^ | ||
|
||
%.o: %.c | ||
$(CC) -c -Wall -D_GNU_SOURCE $(OPTIMIZATION) $(DEBUG) $(CFLAGS) $< | ||
.PHONY: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
clone | ||
*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
oom | ||
*.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
OPTIMIZATION?=-O0 | ||
DEBUG?=-g -ggdb -rdynamic | ||
|
||
all: oom | ||
|
||
clean: | ||
rm -f *.o oom | ||
|
||
.PHONY: all clean | ||
|
||
oom: oom.o | ||
$(CC) -o $@ -lutil $^ | ||
|
||
%.o: %.c | ||
$(CC) -c -Wall -D_GNU_SOURCE $(OPTIMIZATION) $(DEBUG) $(CFLAGS) $< |
File renamed without changes.