forked from CE-Programming/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
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 CE-Programming#1 from adriweb/master
Fix warnings + Makefile + Handle "Extended Linear Address" field
- Loading branch information
Showing
2 changed files
with
114 additions
and
88 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CC = gcc | ||
CFLAGS = -Wall -Wextra -fPIE -O3 | ||
LDFLAGS = -flto | ||
SOURCES = main.c | ||
OBJECTS = $(SOURCES:.c=.o) | ||
EXECUTABLE = ConvHex | ||
|
||
.PHONY: ConvHex clean | ||
|
||
all: ConvHex | ||
|
||
ConvHex: $(SOURCES) | ||
|
||
$(EXECUTABLE): $(OBJECTS) | ||
$(CC) $(LDFLAGS) $(OBJECTS) -o $@ | ||
|
||
.cpp.o: | ||
$(CC) $(CFLAGS) $< -o $@ | ||
|
||
clean: | ||
rm -f $(EXECUTABLE) $(OBJECTS) |
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