24 lines
442 B
Makefile
24 lines
442 B
Makefile
|
CC = gcc
|
||
|
CFLAGS = -Wall -pedantic -std=c99
|
||
|
target = rc-file-info
|
||
|
source = main.c
|
||
|
release = -O2
|
||
|
valgrind = -ggdb3
|
||
|
|
||
|
$(target): Makefile $(source)
|
||
|
# @echo "sestavuji"
|
||
|
$(CC) -o $(target) $(source) $(release) $(CFLAGS)
|
||
|
|
||
|
clean:
|
||
|
# @echo "provadim clean"
|
||
|
rm -f $(target)
|
||
|
|
||
|
install: $(target)
|
||
|
@echo "Instaluji"
|
||
|
cp -f $(target) /usr/local/bin
|
||
|
sync
|
||
|
|
||
|
valgrind: Makefile $(source)
|
||
|
@echo "valgrind"
|
||
|
$(CC) -o $(target) $(source) $(valgrind) $(CFLAGS)
|