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