Skip to content

Commit

Permalink
Renamed _internal.* to _ll-internal.*
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-732 committed Feb 3, 2022
1 parent 447ea81 commit 75fe10f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
CC = gcc
CFLAGS = -Wall -Wextra

COBJS = linked-list.o _internal.o ll-extra.o
COBJS = linked-list.o _ll-internal.o ll-extra.o
ARCHIVES = liblinked-list-min.a liblinked-list.a
SHARED_OBJS = $(ARCHIVES:.a=.so)

default: all

$(COBJS): %.o: %.c

linked-list.o: linked-list.h _internal.h
_internal.o: linked-list.h _internal.h
ll-extra.o: ll-extra.h linked-list.h _internal.h
linked-list.o: linked-list.h _ll-internal.h
_internal.o: linked-list.h _ll-internal.h
ll-extra.o: ll-extra.h linked-list.h _ll-internal.h


all: all-objs all-archives all-shared
all-objs: $(COBJS)
all-archives: $(ARCHIVES)
all-shared: $(SHARED_OBJS)

liblinked-list-min.a: linked-list.o _internal.o
liblinked-list-min.a: linked-list.o _ll-internal.o
$(AR) r $@ $^

liblinked-list.a: linked-list.o _internal.o ll-extra.o
liblinked-list.a: linked-list.o _ll-internal.o ll-extra.o
$(AR) r $@ $^

$(SHARED_OBJS): %.so: %.a
Expand Down
2 changes: 1 addition & 1 deletion _internal.c → _ll-internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <errno.h>
#include <stdlib.h>

#include "_internal.h"
#include "_ll-internal.h"

ll_node_t * _ll_new_node(ll_value_t val, ll_node_t * prev, ll_node_t * next)
{
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion linked-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#define LL_MINIMAL
#include "linked-list.h"
#include "_internal.h"
#include "_ll-internal.h"


void ll_init(linked_list_t * ll, cmp_func_t cmp)
Expand Down
2 changes: 1 addition & 1 deletion ll-extra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <setjmp.h>

#include "ll-extra.h"
#include "_internal.h"
#include "_ll-internal.h"

bool ll_insert_sorted(linked_list_t * ll, ll_value_t val)
{
Expand Down

0 comments on commit 75fe10f

Please sign in to comment.