diff options
author | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-06 14:28:27 +0200 |
---|---|---|
committer | Franciszek Malinka <franciszek.malinka@gmail.com> | 2021-04-06 14:28:27 +0200 |
commit | f64f7de412dd06affb0670831bdd117bde33a192 (patch) | |
tree | 398c4bb6f7fc88deb54104b4faab34f4982abf30 /Semestr 4/sieci/pracownia1/makefile | |
parent | 872fff966e7a069fe0e40e76f7bc996790521ee0 (diff) |
Update
Diffstat (limited to 'Semestr 4/sieci/pracownia1/makefile')
-rw-r--r-- | Semestr 4/sieci/pracownia1/makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Semestr 4/sieci/pracownia1/makefile b/Semestr 4/sieci/pracownia1/makefile index 63f9518..5da00f4 100644 --- a/Semestr 4/sieci/pracownia1/makefile +++ b/Semestr 4/sieci/pracownia1/makefile @@ -1,12 +1,19 @@ CC=gcc -CFLAGS=-g -Wall -Wextra -Wshadow -pedantic -fsanitize=address -fsanitize=undefined - +CFLAGS=-std=c17 -D_GNU_SOURCE -O2 -Wall -Wextra TARGET=traceroute all: $(TARGET) -$(TARGET): $(TARGET).c - $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).c +$(TARGET): $(TARGET).o + $(CC) -o $(TARGET) $(TARGET).o + + +$(TARGET).o: $(TARGET).c + $(CC) $(CFLAGS) -c $(TARGET).c + +distclean: + $(RM) $(TARGET) + $(RM) $(TARGET).o clean: - $(RM) $(TARGET)
\ No newline at end of file + $(RM) $(TARGET).o |