-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README: started 'Functions' section.
- Loading branch information
1 parent
f07a64b
commit 924dde9
Showing
3 changed files
with
64 additions
and
7 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 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,4 +1,5 @@ | ||
DEBUG = -g | ||
|
||
all: | ||
@echo Compiling with DEBUG=$(DEBUG) | ||
@echo Compiling with DEBUG=$(DEBUG) | ||
@echo $(origin WHAT) |
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,10 @@ | ||
FILES = main hello function | ||
SRCS = $(foreach file, $(FILES), $(file).c) | ||
OBJS = $(foreach file, $(FILES), $(file).o) | ||
|
||
all: | ||
echo Prefixes = $(FILES) | ||
echo Files = $(SRCS) | ||
echo Object files = $(OBJS) | ||
|
||
.SILENT: |