pl-sem/sem6/makefile
2023-08-18 01:08:53 +03:00

21 lines
377 B
Makefile

CFLAGS = -g -O2 -Wall -Werror -std=c17 -Wno-unused-function -Wdiscarded-qualifiers -Wincompatible-pointer-types -Wint-conversion -fno-plt
CC = gcc
LD = gcc
TARGET = parser
all: $(TARGET)
$(TARGET): ast.o main.o tokenizer.o
$(LD) -o $@ $^
%.o: %.c
$(CC) -c $(CFLAGS) -o $@ $<
clean:
$(RM) $(TARGET) *.o
run:
./$(TARGET)
.PHONY: clean all run