Makefile 412 Bytes
Newer Older
Jeroen Vreeken's avatar
Jeroen Vreeken committed
1

2
CFLAGS= -Wall -O3 -I../utils -fPIC
3
LDFLAGS= -lutils
Jeroen Vreeken's avatar
Jeroen Vreeken committed
4

Jeroen Vreeken's avatar
Jeroen Vreeken committed
5
ARCHSRCS = log.c
Jeroen Vreeken's avatar
Jeroen Vreeken committed
6
ARCHOBJS = $(ARCHSRCS:.c=.lo)
Jeroen Vreeken's avatar
Jeroen Vreeken committed
7
8
9

SRCS=$(ARCHSRCS)

Jeroen Vreeken's avatar
Jeroen Vreeken committed
10
11
12
13
all: $(ARCHOBJS) liblog.la_install

liblog.la_LDFLAGS=-rpath ${CURDIR}/../lib
liblog.la: $(ARCHOBJS)
Jeroen Vreeken's avatar
Jeroen Vreeken committed
14

Jeroen Vreeken's avatar
Jeroen Vreeken committed
15
16
17
liblog.la_install: liblog.la
	@echo "CP $^ to libdir"
	@${LIBTOOL} --quiet --mode=install install liblog.la ${CURDIR}/../lib
Jeroen Vreeken's avatar
Jeroen Vreeken committed
18
19
20


clean:
Jeroen Vreeken's avatar
Jeroen Vreeken committed
21
	rm -rf *.o *.a *.d *.lo *.la libs
Jeroen Vreeken's avatar
Jeroen Vreeken committed
22
23

include ../build.mk