-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from EECS-NTNU/makefiles
makefile: Add help target for printing available make targets
- Loading branch information
Showing
3 changed files
with
29 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,21 @@ | |
# Copyright 2011 2012 2013 2014 2015 Nico Reißmann <[email protected]> | ||
# See COPYING for terms of redistribution. | ||
|
||
JIVE_ROOT ?= . | ||
define HELP_TEXT | ||
clear | ||
echo "Makefile for the Jive RVSDG API" | ||
echo "Version 1.0 - 2019-06-18" | ||
endef | ||
.PHONY: help | ||
help: | ||
@$(HELP_TEXT) | ||
@$(HELP_TEXT_JIVE) | ||
@echo "all Compiles the Jive library and runs unit tests" | ||
|
||
CFLAGS+=-Wall -Wpedantic --std=c++14 | ||
CPPFLAGS+=-I$(JIVE_ROOT)/include | ||
JIVE_ROOT ?= . | ||
|
||
.PHONY: all | ||
all: check | ||
all: jive check | ||
|
||
include Makefile.sub | ||
include tests/Makefile.sub | ||
|
@@ -18,7 +26,7 @@ doc: | |
doxygen doxygen.conf | ||
|
||
.PHONY: clean | ||
clean: jive-clean jive-test-clean | ||
clean: jive-clean | ||
|
||
%.lo: %.c | ||
$(CXX) -c -DPIC -fPIC $(CFLAGS) $(CPPFLAGS) -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
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