aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/sieci/pracownia1/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'semestr-4/sieci/pracownia1/makefile')
-rw-r--r--semestr-4/sieci/pracownia1/makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/semestr-4/sieci/pracownia1/makefile b/semestr-4/sieci/pracownia1/makefile
new file mode 100644
index 0000000..3c48d74
--- /dev/null
+++ b/semestr-4/sieci/pracownia1/makefile
@@ -0,0 +1,19 @@
+CC=gcc
+CFLAGS=-std=gnu17 -O2 -Wall -Wextra
+TARGET=traceroute
+
+all: $(TARGET)
+
+$(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).o