Files
obf/Makefile
Aryadev Chavali c9b6b04d19 New module for functions I no longer need to work on
lib.(h|c) basically has structures and functions I no longer want to
stare at in main.c
2023-09-02 16:14:43 +01:00

21 lines
301 B
Makefile

CC=gcc
CFLAGS=-Wall -Wextra -Wpedantic -ggdb -fsanitize=address -std=c11
LIBS=
OBJECTS=lib.o main.o
OUT=obf.out
ARGS=
%.o: %.c
$(CC) $(CFLAGS) -c $^ -o $@ $(LIBS)
$(OUT): $(OBJECTS)
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
.PHONY:
clean:
rm -rfv $(OUT) $(OBJECTS)
.PHONY: run
run: $(OUT)
./$^ $(ARGS)