Makefile - ploot - simple plotting tools
(HTM) git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
Makefile (715B)
---
1 NAME = ploot
2 VERSION = v0.1
3
4 D = -D_POSIX_C_SOURCE=200811L -D_DEFAULT_SOURCE
5 CFLAGS = -Wall -Wextra -std=c99 -pedantic $W $D -fPIC
6 LDFLAGS = -static
7 PREFIX = /usr/local
8 MANPREFIX = $(PREFIX)/share/man
9 LIBS = -lm
10
11 SRC = tsv.c drawille.c font.c font13.c font8.c util.c
12 INC = tsv.h drawille.h font.h util.h
13 BIN = ploot-farbfeld ploot-feed ploot-braille ploot-text
14 OBJ = ${SRC:.c=.o}
15
16 all: ${BIN}
17
18 .c.o:
19 ${CC} -c ${CFLAGS} -o $@ $<
20
21 ${OBJ} ${BIN:=.o}: ${INC} Makefile
22 ${BIN}: ${OBJ} ${BIN:=.o}
23 ${CC} ${LDFLAGS} -o $@ $@.o ${OBJ} ${LIBS}
24
25 install: ${BIN}
26 mkdir -p ${PREFIX}/bin ${MANPREFIX}/man1 ${MANPREFIX}/man5
27 cp ${BIN} ${PREFIX}/bin
28 cp *.1 ${MANPREFIX}/man1
29 cp *.5 ${MANPREFIX}/man5
30
31 clean:
32 rm -f *.o ${BIN}