git ssb

1+

cel / pngspark



Tree: 0b29f5c16c806103ae9326149404b382ab3b7cfd

Files: 0b29f5c16c806103ae9326149404b382ab3b7cfd / Makefile

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

Built with git-ssb-web