libdrawtext
annotate tools/font2glyphmap/Makefile @ 51:670d0affc08f
fixed bad commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Oct 2015 06:30:17 +0200 |
parents | 03699346d59f |
children |
rev | line source |
---|---|
nuclear@50 | 1 PREFIX = /usr/local |
nuclear@50 | 2 |
nuclear@21 | 3 src = $(wildcard src/*.c) |
nuclear@21 | 4 obj = $(src:.c=.o) |
nuclear@21 | 5 bin = font2glyphmap |
nuclear@21 | 6 |
nuclear@21 | 7 CC = gcc |
nuclear@21 | 8 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include |
nuclear@21 | 9 LDFLAGS = -L. -L/usr/local/lib -ldrawtext |
nuclear@21 | 10 |
nuclear@21 | 11 ifeq ($(shell uname -s), Darwin) |
nuclear@21 | 12 lib_so = libdrawtext.dylib |
nuclear@21 | 13 else |
nuclear@29 | 14 lib_so = libdrawtext.so.0.2 |
nuclear@21 | 15 endif |
nuclear@21 | 16 |
nuclear@21 | 17 $(bin): $(obj) $(lib_so) $(font) |
nuclear@21 | 18 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@21 | 19 |
nuclear@21 | 20 $(lib_so): ../../$(lib_so) |
nuclear@21 | 21 rm -f $@ |
nuclear@21 | 22 ln -s $< $@ |
nuclear@21 | 23 |
nuclear@21 | 24 .PHONY: clean |
nuclear@21 | 25 clean: |
nuclear@21 | 26 rm -f $(obj) $(bin) $(lib_so) |
nuclear@50 | 27 |
nuclear@50 | 28 .PHONY: install |
nuclear@50 | 29 install: |
nuclear@50 | 30 mkdir -p $(DESTDIR)$(PREFIX)/bin |
nuclear@50 | 31 cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) |
nuclear@50 | 32 |
nuclear@50 | 33 .PHONY: uninstall |
nuclear@50 | 34 uninstall: |
nuclear@50 | 35 rm -f $(DESTDIR)$(PREFIX)/bin/$(bin) |