root/common/trunk/src/Makefile.in @ 414

Revision 414, 1.1 KB (checked in by ucacoxh, 14 years ago)

- Fix make depend, needed $(DEFS).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2# Makefile for the common code library project.
3# This probably requires GNU make.
4#
5
6DEFS   = @DEFS@
7CFLAGS = @CFLAGS@ $(DEFS)
8LIBS   = @LIBS@
9CC     = @CC@
10AR     = ar
11RANLIB = @RANLIB@
12HOST   = @host@
13TARGET = libuclmmbase.a
14
15exec_prefix=@exec_prefix@
16
17OBJS = crypt_random.o debug.o md5.o memory.o net_udp.o qfDES.o util.o hmac.o \
18       base64.o ntp.o rtp.o drand48.o mbus_parser.o mbus_config.o mbus.o \
19       btree.o @LIBOBJS@
20
21TEST_OBJS = test_base64.o test_des.o test_md5.o test_net_udp.o test.o
22
23SRCS = $(OBJS:%.o=%.c)
24
25all: version.h $(TARGET) test-libcommon
26
27test-libcommon: $(TEST_OBJS) $(TARGET)
28        $(CC) $(TEST_OBJS) $(CFLAGS) $(TARGET) $(LIBS) -o test-libcommon
29       
30$(TARGET): $(OBJS)
31        $(AR) r $(TARGET) $(OBJS)
32        $(RANLIB) $(TARGET)
33
34version.h:      VERSION
35        sed -e 's/.*/#define CCL_VERSION "v&"/' VERSION > version.h
36
37.c.o:
38        $(CC) $(CFLAGS) $(INC) -c $<
39
40clean:
41        -rm -f $(OBJS) $(TEST_OBJS) version.h $(TARGET) tags test-libcommon
42
43distclean:      clean
44        -rm -f Makefile config.status config.cache uclconf.h
45
46etags:
47        etags *.[ch]
48
49ctags:
50        ctags *.[ch]
51
52release:
53        cvs tag release-`cat VERSION | sed "s/\./-/g"`
54
55depend: $(SRCS)
56        makedepend $(DEFS) $(INC) $(SRCS)
57
Note: See TracBrowser for help on using the browser.