cso-thumbnailer/Makefile

24 lines
523 B
Makefile
Raw Permalink Normal View History

2024-02-29 02:34:33 +03:00
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