shardz- Unnamed repository; edit this file 'description' to name the repository. |
git clone git://git.acid.vegas/-c.git |
Log | Files | Refs | Archive | README | LICENSE |
Makefile (808B)
1 # Compiler settings 2 CC = gcc 3 CFLAGS = -Wall -Wextra -O2 4 PREFIX = /usr/local 5 VERSION = 1.0.1 6 7 # Files 8 PROG = shardz 9 SOURCES = shardz.c 10 OBJECTS = $(SOURCES:.c=.o) 11 12 # Targets 13 all: $(PROG) 14 15 $(PROG): $(OBJECTS) 16 $(CC) $(OBJECTS) $(CFLAGS) -o $(PROG) 17 18 install: $(PROG) 19 install -d $(DESTDIR)$(PREFIX)/bin 20 install -m 755 $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG) 21 install -d $(DESTDIR)$(PREFIX)/lib/pkgconfig 22 install -m 644 shardz.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/ 23 install -d $(DESTDIR)$(PREFIX)/share/man/man1 24 install -m 644 man/shardz.1 $(DESTDIR)$(PREFIX)/share/man/man1/ 25 26 uninstall: 27 rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG) 28 rm -f $(DESTDIR)$(PREFIX)/lib/pkgconfig/shardz.pc 29 rm -f $(DESTDIR)$(PREFIX)/share/man/man1/shardz.1 30 31 clean: 32 rm -f $(PROG) $(OBJECTS) 33 34 .PHONY: all install uninstall clean