crypto1/Makefile
2023-09-27 17:07:47 -04:00

24 lines
468 B
Makefile

SRC = src/main.c
OJB = $(SRC:.c=.o)
OUT = build
CC = /usr/bin/gcc
CFLAGS = -ansi -Wall -std=c99 -O0
CFDEBUG = -ansi -Wall -fsanitize=address -g -std=c99
RM = /bin/rm -f $(OUT)
PART = -D PART
%.o: %.c
$(CC) -c $(CFLAGS)
build:
$(CC) $(SRC) $(CFLAGS) -o $(OUT)/main.o
debug:
$(CC) $(SRC) $(PART)$(part) $(CFDEBUG) -o $(OUT)/main.o
clean:
$(RM) $(OBJ) $(OUT)/main.o
run:
$(CC) $(SRC) $(PART)$(part) $(CFLAGS) -o $(OUT)/main.o && ./build/main.o