Files: 1fe01596a886b6ef6fe6d2b10c5b11a6e40a23ba / 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