aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/sieci/pracownia2/router/makefile
diff options
context:
space:
mode:
authorFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
committerFranciszek Malinka <franciszek.malinka@gmail.com>2021-10-05 21:49:54 +0200
commitc5fcf7179a83ef65c86c6a4a390029149e518649 (patch)
treed29ffc5b86a0d257453cedcf87d91a13d8bf3b0d /Semestr 4/sieci/pracownia2/router/makefile
parentf8a88b6a4aba1f66d04711a9330eaba49a50c463 (diff)
Duzy commit ze smieciami
Diffstat (limited to 'Semestr 4/sieci/pracownia2/router/makefile')
-rw-r--r--Semestr 4/sieci/pracownia2/router/makefile34
1 files changed, 0 insertions, 34 deletions
diff --git a/Semestr 4/sieci/pracownia2/router/makefile b/Semestr 4/sieci/pracownia2/router/makefile
deleted file mode 100644
index bf6a327..0000000
--- a/Semestr 4/sieci/pracownia2/router/makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-CC := gcc
-CFLAGS := -O2 -std=gnu17 -Wall -Wall -Wno-unused-result
-TARGET := router
-TEST := test
-DEPS := config.h
-
-ODIR := obj
-_OBJ := router.o utils.o linked_list.o network_addr.o dist_vector.o
-OBJ := $(patsubst %,$(ODIR)/%,$(_OBJ))
-
-_TEST_OBJ := test.o linked_list.o
-TEST_OBJ := $(patsubst %,$(ODIR)/%,$(_TEST_OBJ))
-
-
-all: $(TARGET)
-test: $(TEST)
-
-$(ODIR)/%.o: %.c $(DEPS)
- $(CC) $(CFLAGS) -c -o $@ $<
-
-$(TARGET): $(OBJ)
- $(CC) -o $@ $^ $(CFLAGS)
-
-$(TEST): $(TEST_OBJ)
- $(CC) -o $@ $^ $(CFLAGS)
-
-clean:
- rm -rf $(TARGET)
- rm -rf test
-
-distclean:
- rm -rf $(TARGET)
- rm -rf test
- rm -rf $(ODIR)/*.o