From b597ee749bcf3912e6989579ecd72b96a69a21d1 Mon Sep 17 00:00:00 2001 From: Aritra Sarkar Date: Wed, 17 Nov 2021 11:46:53 +0530 Subject: [PATCH] Rename lib as ansilib --- Makefile | 12 ++++++------ {lib => ansilib}/inc/ansi/colors.h | 0 {lib => ansilib}/inc/ansi/common.h | 0 {lib => ansilib}/inc/ansi/cursor.h | 0 {lib => ansilib}/inc/graphics/common.h | 0 {lib => ansilib}/inc/graphics/shapes.h | 0 {lib => ansilib}/src/ansi/cursor.c | 0 {lib => ansilib}/src/graphics/common.c | 0 {lib => ansilib}/src/graphics/shapes.c | 0 9 files changed, 6 insertions(+), 6 deletions(-) rename {lib => ansilib}/inc/ansi/colors.h (100%) rename {lib => ansilib}/inc/ansi/common.h (100%) rename {lib => ansilib}/inc/ansi/cursor.h (100%) rename {lib => ansilib}/inc/graphics/common.h (100%) rename {lib => ansilib}/inc/graphics/shapes.h (100%) rename {lib => ansilib}/src/ansi/cursor.c (100%) rename {lib => ansilib}/src/graphics/common.c (100%) rename {lib => ansilib}/src/graphics/shapes.c (100%) diff --git a/Makefile b/Makefile index 8db019e..d6837b3 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,15 @@ CC ?= cc -INC = -Iinc -Ilib/inc +INC = -Iinc -Iansilib/inc LIB = CFLAGS = $(INC) -Wall -Wextra -pedantic -std=c99 CPPFLAGS = LDFLAGS = -SRCS = lib/src/graphics/common.c \ - lib/src/graphics/shapes.c \ - lib/src/ansi/cursor.c \ +SRCS = ansilib/src/graphics/common.c \ + ansilib/src/graphics/shapes.c \ + ansilib/src/ansi/cursor.c \ src/main.c OBJS = obj/graphics/common.o \ @@ -25,11 +25,11 @@ bin/anim: $(OBJS) @mkdir -p bin $(CC) $(LDFLAGS) -o $@ $^ -obj/graphics/%.o: lib/src/graphics/%.c +obj/graphics/%.o: ansilib/src/graphics/%.c @mkdir -p obj/graphics $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< -obj/ansi/%.o: lib/src/ansi/%.c +obj/ansi/%.o: ansilib/src/ansi/%.c @mkdir -p obj/ansi $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< diff --git a/lib/inc/ansi/colors.h b/ansilib/inc/ansi/colors.h similarity index 100% rename from lib/inc/ansi/colors.h rename to ansilib/inc/ansi/colors.h diff --git a/lib/inc/ansi/common.h b/ansilib/inc/ansi/common.h similarity index 100% rename from lib/inc/ansi/common.h rename to ansilib/inc/ansi/common.h diff --git a/lib/inc/ansi/cursor.h b/ansilib/inc/ansi/cursor.h similarity index 100% rename from lib/inc/ansi/cursor.h rename to ansilib/inc/ansi/cursor.h diff --git a/lib/inc/graphics/common.h b/ansilib/inc/graphics/common.h similarity index 100% rename from lib/inc/graphics/common.h rename to ansilib/inc/graphics/common.h diff --git a/lib/inc/graphics/shapes.h b/ansilib/inc/graphics/shapes.h similarity index 100% rename from lib/inc/graphics/shapes.h rename to ansilib/inc/graphics/shapes.h diff --git a/lib/src/ansi/cursor.c b/ansilib/src/ansi/cursor.c similarity index 100% rename from lib/src/ansi/cursor.c rename to ansilib/src/ansi/cursor.c diff --git a/lib/src/graphics/common.c b/ansilib/src/graphics/common.c similarity index 100% rename from lib/src/graphics/common.c rename to ansilib/src/graphics/common.c diff --git a/lib/src/graphics/shapes.c b/ansilib/src/graphics/shapes.c similarity index 100% rename from lib/src/graphics/shapes.c rename to ansilib/src/graphics/shapes.c -- 2.45.2