mirror of
https://github.com/marcusDenslow/FERRUM.git
synced 2026-10-25 12:22:24 +01:00
using ls now creates a table and populates it with entries. added piping to ls so filter the search (credits to nuShell for the idea) ls | contains name xxx to ls for only entries containing the string ls | where size < or > 10mb, kb, gb etc ls | select name, size modified type. select which collums you want to see in the result
23 lines
347 B
Makefile
23 lines
347 B
Makefile
CC = gcc
|
|
CFLAGS = -Wextra -g
|
|
LIBS = -lm
|
|
|
|
# Get all .c files
|
|
SOURCES = $(wildcard *.c)
|
|
# Generate object file names from source file names
|
|
OBJECTS = $(SOURCES:.c=.o)
|
|
TARGET = shell
|
|
|
|
all: $(TARGET)
|
|
|
|
$(TARGET): $(OBJECTS)
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(TARGET)
|
|
|
|
.PHONY: all clean
|