-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 840 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
##
## @file Makefile
## @brief Makefile pro kompilaci projektu
## @author Jan Brudný ([email protected])
## Implementation IFJ22 compiler
##
all: prekladac
.PHONY: prekladac %.o tar clean clean_o
# CFLAGS = -std=c99 -Wall -Wextra -Werror -pedantic
# CPPFLAgs jsou flagy preprocesoru
%.o : %.c %.h
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
OBJECTS = symtable.o parser.o lex.o main.o LLtable.o dynstring.o expParse.o stack.o common.o queue.o semanticActions.o gen_3adres.o gen_gen.o gen_igen.o stackIf.o gen_postproces.o
prekladac: $(OBJECTS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $^
make clean_o
clean: clean_o
rm prekladac
clean_o:
rm -f $(OBJECTS)
tar:
tar -czvf xjarol06.tgz *.c *.h Makefile dokumentace.pdf
./is_it_ok.sh xjarol06.tgz testFolder
@echo "\033[1;31m##### A vypl si exit na InternalErroru?? #####\033[0m"