Tomato 1.28
[tomato.git] / release / src / router / zebra / lib / Makefile
blob8bc290eaff9928db64d816dbdf2aa94c6e9e02a5
1 prefix = /usr/local/zebra
2 sysconfdir = ${prefix}/etc
3 DEFS = -DHAVE_CONFIG_H -DSYSCONFDIR=\"$(sysconfdir)/\"
4 top_srcdir = ..
5 INCLUDES = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
6 noinst_LIBRARIES = libzebra.a
7 noinst_LIBRARIES = libzebra.so
8 libzebra_a_SOURCES = version.c network.c pid_output.c getopt.c getopt1.c daemon.c print_version.c checksum.c vector.c linklist.c vty.c command.c sockunion.c prefix.c thread.c if.c memory.c buffer.c table.c hash.c filter.c routemap.c distribute.c stream.c str.c log.c plist.c zclient.c sockopt.c smux.c md5.c if_rmap.c keychain.c
10 libzebra_a_DEPENDENCIES =
12 libzebra_a_LIBADD =
14 noinst_HEADERS = buffer.h command.h filter.h getopt.h hash.h if.h linklist.h log.h memory.h network.h prefix.h routemap.h distribute.h sockunion.h str.h stream.h table.h thread.h vector.h version.h vty.h zebra.h plist.h zclient.h sockopt.h smux.h md5-gnu.h if_rmap.h keychain.h
16 EXTRA_DIST = regex.c regex-gnu.h
17 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
18 CONFIG_HEADER = ../config.h
19 CONFIG_CLEAN_FILES =
20 LIBRARIES = $(noinst_LIBRARIES) libzebra.a
22 CPPFLAGS =
23 LDFLAGS =
24 LIBS = -lm -lcrypt
25 libzebra_a_OBJECTS = version.o network.o pid_output.o getopt.o \
26 getopt1.o daemon.o print_version.o checksum.o vector.o linklist.o vty.o \
27 command.o sockunion.o prefix.o thread.o if.o memory.o buffer.o table.o \
28 hash.o filter.o routemap.o distribute.o stream.o str.o log.o plist.o \
29 zclient.o sockopt.o smux.o md5.o if_rmap.o keychain.o
30 CFLAGS = -g -O2 -Wall
31 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
32 CCLD = $(CC)
33 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
34 HEADERS = $(noinst_HEADERS)
38 libzebra.a: $(libzebra_a_OBJECTS) $(libzebra_a_DEPENDENCIES)
39 rm -f libzebra.a
40 $(AR) cru libzebra.a $(libzebra_a_OBJECTS) $(libzebra_a_LIBADD)
41 $(RANLIB) libzebra.a
43 libzebra.so: $(libzebra_a_OBJECTS) $(libzebra_a_DEPENDENCIES)
44 rm -f libzebra.so
45 $(LD) -shared -o libzebra.so $(libzebra_a_OBJECTS) $(libzebra_a_LIBADD)
48 all:libzebra.a libzebra.so
50 clean:
51 rm -rf *.o
52 rm -rf *.a
53 rm -rf *.so
55 .c.o:
56 $(COMPILE) -c $<
58 .s.o:
59 $(COMPILE) -c $<
61 .S.o:
62 $(COMPILE) -c $<