24 lines
523 B
Makefile
24 lines
523 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -Wextra -Wshadow -Wstrict-aliasing -pedantic -std=c99 -O2 $(shell pkg-config --cflags zlib)
|
|
LDDFLAGS=$(shell pkg-config --libs zlib)
|
|
|
|
ifndef VERBOSE
|
|
.SILENT:
|
|
endif
|
|
|
|
all: clean main
|
|
|
|
main: main.c
|
|
$(CC) $(CFLAGS) main.c -o cso-thumbnailer $(LDDFLAGS)
|
|
|
|
install: main
|
|
cp cso-thumbnailer /usr/local/bin/cso-thumbnailer
|
|
cp cso.thumbnailer /usr/share/thumbnailers/cso.thumbnailer
|
|
|
|
uninstall:
|
|
rm /usr/local/bin/cso-thumbnailer
|
|
rm /usr/share/thumbnailers/cso.thumbnailer
|
|
|
|
clean:
|
|
rm -f cso-thumbnailer *.o
|