From d97992c519eb7444b7d1d5dba92cc78c43ca2399 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 21 Nov 2022 18:17:39 +0100 Subject: [PATCH] Remove Makefile --- .gitignore | 2 -- Makefile | 38 -------------------------------------- 2 files changed, 40 deletions(-) delete mode 100644 Makefile diff --git a/.gitignore b/.gitignore index d9503a3..6429900 100644 --- a/.gitignore +++ b/.gitignore @@ -52,7 +52,5 @@ Module.symvers Mkfile.old dkms.conf -obj/ -libmtar.a .vscode/ build/ \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index f223ce7..0000000 --- a/Makefile +++ /dev/null @@ -1,38 +0,0 @@ -OUTPUT ?= . -LIBNAME ?= libmtar -OBJ ?= obj -SRC := src - -CC ?= gcc -AR ?= ar -CFLAGS ?= -O2 -Wall -Wextra -CFLAGS := ${CFLAGS} -I. -DESTDIR ?= /usr/local - -OBJS := $(OBJ)/tar.o \ - $(OBJ)/util.o - -build: $(OBJS) - @echo -- Creating $(LIBNAME).a - @mkdir -p $(OUTPUT) - $(AR) rcs $(OUTPUT)/$(LIBNAME).a $(OBJS) - -$(OBJ)/%.o: $(SRC)/%.c - @echo -- Compiling $^ - @mkdir -p $(@D) - $(CC) $(CFLAGS) -o $@ -c $^ - -install: - @echo -- Installing $(LIBNAME).a - @mkdir -p $(DESTDIR)/{lib,include} - cp $(OUTPUT)/$(LIBNAME).a $(DESTDIR)/lib - cp ./minitar.h $(DESTDIR)/include - -clean: - rm -f $(OBJ)/*.o - rm -f $(OUTPUT)/$(LIBNAME).a - -uninstall: - @echo -- Removing $(LIBNAME).a - rm -f $(DESTDIR)/lib/$(LIBNAME).a - rm -f $(DESTDIR)/include/minitar.h \ No newline at end of file