diff options
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 |