aboutsummaryrefslogtreecommitdiff
path: root/draw/Makefile
blob: 4b394909bb8ad2a1eb31566fd7e58c4c7510228d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# libdraw - dynamic drawing library
# See LICENSE file for copyright and license details.

include ../config.mk

SRC = cleanupdraw.c drawsquare.c drawtext.c eprint.c getcolor.c initfont.c \
setupdraw.c textnw.c textw.c
OBJ = ${SRC:.c=.o}

all: libdraw.a

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

${OBJ}: ../config.mk draw.h

libdraw.a: ${OBJ}
	@echo AR $@
	@ar cr $@ $+

clean:
	@echo cleaning libdraw
	@rm -f libdraw.a ${OBJ}

.PHONY: all options clean