Makefile 1.12 KB
Newer Older
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48

CFLAGS+= -Wall -O3 -I../utils/ -I.. -I../include
LDFLAGS+= -L../lib

LOBJS= command.lo
#SRCS= trace_dump.c trace_dumpdiff.c trace_fft.c

all: libs bins libs_install


libs: libcommand.la

libs_install: libcommand.la_install

bins: command_list
#bins: trace_dump trace_dumpdiff trace_fft trace_view trace_list

${CURDIR}/../lib:
	@mkdir ${CURDIR}/../lib

libcommand.la_LDFLAGS= -lutils -lm -llog -rpath ${CURDIR}/../lib
libcommand.la: command.lo command_tcp.lo

libcommand.la_install: libcommand.la ${CURDIR}/../lib
	@echo "CP $^ to libdir"
	@${LIBTOOL} --quiet --mode=install install libcommand.la ${CURDIR}/../lib

#trace_dump_LDFLAGS= -ltrace -lutils
#trace_dump: trace_dump.o libs_install

#trace_dumpdiff_LDFLAGS= -ltrace -lutils
#trace_dumpdiff: trace_dumpdiff.o libs_install

#trace_fft_LDFLAGS= -lm -lutils -ltrace -lfftw3
#trace_fft: trace_fft.o libs_install

command_list_LDFLAGS= -lcommand
command_list: command_list.o libs_install

#trace_view_LDFLAGS= -ltrace
#trace_view: trace_view.o libs_install


clean:
	rm -rf *.o *.a *.d *.lo *.la .libs 
#	    trace_dump trace_dumpdiff trace_fft trace_list trace_view

include ../build.mk