File: Makefile.in

package info (click to toggle)
libmcal 0.6-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 556 kB
  • ctags: 472
  • sloc: ansic: 4,397; makefile: 180; sh: 111
file content (78 lines) | stat: -rw-r--r-- 1,628 bytes parent folder | download | duplicates (4)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 	$Id: Makefile.in,v 1.2 2000/01/25 03:08:10 markie Exp $

CC	= gcc
FLEX	= flex

@BOOTSTRAP@

INCLUDE=@DRIVER_INCDIR@  ${OTHERINCDIR} -I.

CFLAGS	= -O2 -D_REENTRANT -Wall ${INCLUDE}

ICAPLOBJS = icap/icap_driver.lo

MSTORELOBJS = mstore/mstore_driver.lo

OBJS	= mcal.o  datetime.o  lex.ical_yy.o  icalroutines.o  cal_misc.o
ALLOBJS = $(OBJS) $(DRIVER_LIBS)

LOBJS	= mcal.lo datetime.lo lex.ical_yy.lo icalroutines.lo cal_misc.lo
ALLLOBJS = $(LOBJS) $(ICAPLOBJS) $(MSTORELOBJS)

SHLIBLDFLAGS = -shared -fPIC -D_REENTRANT
SONAME	= libmcal
LN	= ln -s
REV	= 0.6
RANLIB	= ranlib

LIBCAL=libmcal.a

all: libmcal.so.$(REV) $(LIBCAL)

install: all
	cd icap; make install
	cd mstore; make install
	mkdir -p $(DESTDIR)/usr/lib
	cp -af *.so* $(DESTDIR)/usr/lib
	cp -af $(LIBCAL) $(DESTDIR)/usr/lib
	mkdir -p $(DESTDIR)/usr/include
	cp -af *.h $(DESTDIR)/usr/include

libmcal.so.$(REV): $(LOBJS)
	$(RM) $@
	$(CC) -o $@ $(SHLIBLDFLAGS) -Wl,-soname,libmcal.so.0 $(ALLLOBJS) -lc
	strip --strip-unneeded $@
	$(RM) $(SONAME).so.0
	$(LN) $@ $(SONAME).so.0

	$(RM) $(SONAME).so
	$(LN) $@ $(SONAME).so

$(LIBCAL): $(OBJS)
	$(RM) $(LIBCAL)
	ar r $@ $(ALLOBJS)
#	$(RANLIB)

$(LOBJS): %.lo: %.c
	$(CC) -c -fPIC $(CFLAGS) $(CPPFLAGS) -o $@ $<

lex.ical_yy.c: icalscanner.lex
	$(FLEX) $<

tester: tester.o $(LIBCAL)
	gcc -Wall -g -o tester tester.o $(LIBCAL) -lcrypt

clean:
	cd icap; make clean
	cd mstore; make clean
	rm -f *.o *.lo *.so* $(LIBCAL) tester libmcal

distclean: clean
	rm -f  config.cache  config.status config.log Makefile drivers.c drivers.h bootstrap.in


dep: depend

depend:
	makedepend $(INCLUDE) -- $(OBJS:%.o=%.c) >& /dev/null