Files: 4e33163d8f5c38920230f14d87786a8f3d18a351 / Makefile
449 bytesRaw
1 | SRC = $(wildcard *.c) |
2 | OBJ = $(SRC:c=o) |
3 | BIN = pngspark |
4 | PREFIX ?= /usr/local |
5 | |
6 | CFLAGS = -Wall -Wextra -Werror -O2 -std=c99 -pedantic |
7 | LDFLAGS = -lz |
8 | |
9 | all: $(BIN) |
10 | |
11 | lupng.o: lupng.c |
12 | $(CC) -c -o $@ $^ -Werror -std=c99 -DLUPNG_USE_ZLIB |
13 | |
14 | pngspark: pngspark.o main.o lupng.o |
15 | $(CC) -o $@ $^ $(LDFLAGS) |
16 | |
17 | install: $(BIN) |
18 | cp -f $(BIN) $(PREFIX)/bin/$(BIN) |
19 | |
20 | uninstall: |
21 | rm $(PREFIX)/bin/$(BIN) |
22 | |
23 | clean: |
24 | rm -f test $(BIN) $(OBJ) |
25 | |
26 | .PHONY: clean install uninstall |
27 |
Built with git-ssb-web