-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (16 loc) · 749 Bytes
/
Makefile
File metadata and controls
24 lines (16 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC = gcc
CFLAGS = -Wall -Wextra -g
TARGET = feynterm
SRCS = main.c text_processor.c pdf_processor.c ignore_words.c grader/grading.c grader/matching.c Image_Processing_And_OCR/img_processing.c Image_Processing_And_OCR/character_segmentation.c Image_Processing_And_OCR/template_matching.c
OBJS = $(SRCS:.c=.o)
HEADERS = text_processor.h pdf_processor.h ascii.h grader/grading.h grader/matching.h stb_image.h Image_Processing_And_OCR/img_processing.h Image_Processing_And_OCR/character_segmentation.h Image_Processing_And_OCR/template_matching.h
.PHONY: all clean run
all: $(TARGET)
$(TARGET): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
run: $(TARGET)
./$(TARGET)
clean:
rm -f $(OBJS) $(TARGET) *.csv