This commit is contained in:
Your Name 2023-10-13 15:34:16 +03:00
parent cafbdc3ea6
commit 7eed71d9b2
24 changed files with 6 additions and 5 deletions

View File

@ -1,11 +1,11 @@
C_SOURCES:=$(wildcard src/*.c)
C_TARGETS:=$(patsubst src/%.c,bin/%,$(C_SOURCES))
TARGETS:=$(C_TARGETS) $(S_TARGETS)
C_SOURCES:=$(wildcard coreutils/*.c)
C_TARGETS:=$(patsubst coreutils/%.c,bin/%,$(C_SOURCES))
TARGETS:=$(C_TARGETS)
CFLAGS:=-s -Os -pedantic -Wall -Wextra
all: bin $(TARGETS)
bin/%: src/%.c
bin/%: coreutils/%.c
$(CC) $(CFLAGS) -o $@ $<
clean:

View File

@ -34,10 +34,11 @@ int list(const char *path, int flag, int label) {
if (ep->d_name[0] == '.' && !flag)
continue;
puts(ep->d_name);
printf("%s ", ep->d_name);
}
closedir(dp);
printf("\n");
return 0;
}