Files
FERRUM/Makefile
marcusDenslow 61d478c5fe added advanced ls support
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
2025-05-01 12:37:56 +02:00

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