git ssb

1+

cel / pngspark



Tree: 4e33163d8f5c38920230f14d87786a8f3d18a351

Files: 4e33163d8f5c38920230f14d87786a8f3d18a351 / 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