mirror of
https://github.com/AltraMayor/f3.git
synced 2025-09-19 12:05:25 -04:00
Rewrite Makefile
This rewrite of the Makefile takes advantage of the fact that the Makefile has been unified for all supported operating systems to properly express source-file dependencies.
This commit is contained in:
parent
66be2fddb9
commit
01e8140ece
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
*.d
|
||||
*.o
|
||||
*~
|
||||
|
24
Makefile
24
Makefile
@ -1,9 +1,19 @@
|
||||
all:
|
||||
gcc -Wall -c utils.c
|
||||
gcc -Wall -c f3write.c
|
||||
gcc -Wall -c f3read.c
|
||||
gcc -o f3write utils.o f3write.o -lm
|
||||
gcc -o f3read utils.o f3read.o
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -MMD
|
||||
|
||||
TARGETS = f3write f3read
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
f3write: utils.o f3write.o
|
||||
$(CC) -o $@ $^ -lm
|
||||
|
||||
f3read: utils.o f3read.o
|
||||
$(CC) -o $@ $^
|
||||
|
||||
-include *.d
|
||||
|
||||
PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f *.o f3write f3read
|
||||
rm -f *.o $(TARGETS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user