Pinky/Makefile
ghostie a34348be60 Initial commit
added just a few helper functions and structures that will use later.
still missing a lot of important functions that will be important, but
they will be implemented as i go.
2025-07-02 20:09:10 -05:00

30 lines
585 B
Makefile

CC=gcc
ECHO=echo -e
RM=rm
CFLAGS=-Wall -Werror -std=gnu99 -O0 -g
LIBS=
FILES=build/main.o build/utils/vector.o build/utils/buffer.o
OUT=bin/pinky.out
all: $(FILES)
@$(ECHO) "LD\t\t"$(FILES)
@$(CC) $(CFLAGS) $(FILES) -o $(OUT) $(LIBS)
build/main.o: src/main.c
@$(ECHO) "CC\t\t"$<
@$(CC) $(CFLAGS) $< -c -o $@ $(LIBS)
build/utils/vector.o: src/utils/vector.c
@$(ECHO) "CC\t\t"$<
@$(CC) $(CFLAGS) $< -c -o $@ $(LIBS)
build/utils/buffer.o: src/utils/buffer.c
@$(ECHO) "CC\t\t"$<
@$(CC) $(CFLAGS) $< -c -o $@ $(LIBS)
clean:
@$(ECHO) "Cleaning..."
@$(RM) -f $(FILES) $(OUT)