# Makefile for userspace examples (no kernel headers needed)
# Tamilselvan | Cyber Security Researcher | Ethical Hacker
#
# Build: make
# Run on Linux: ./raw_syscall, ./read_proc, ./sysfs_example

CFLAGS ?= -Wall -Wextra -O2

TARGETS = raw_syscall read_proc sysfs_example

all: $(TARGETS)

raw_syscall: raw_syscall.c
	$(CC) $(CFLAGS) -o $@ $<

read_proc: read_proc.c
	$(CC) $(CFLAGS) -o $@ $<

sysfs_example: sysfs_example.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f $(TARGETS)

.PHONY: all clean
