Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I. |
8 |
INCLUDE=@DRIVER_INCDIR@ ${OTHERINCDIR} -I. |
9 |
|
9 |
|
10 |
CFLAGS=-O0 -Wall -g ${INCLUDE} ${OTHER_CFLAGS} |
10 |
CFLAGS=-O0 -Wall -g ${OTHER_CFLAGS} |
11 |
|
11 |
|
12 |
LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS) |
12 |
LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS) |
13 |
ALLOBJS=${LIBOBJS} tester.o |
13 |
ALLOBJS=${LIBOBJS} tester.o |
Lines 17-22
Link Here
|
17 |
LIBCAL=libmcal.a |
17 |
LIBCAL=libmcal.a |
18 |
LIBCAL_SO=libmcal.so |
18 |
LIBCAL_SO=libmcal.so |
19 |
|
19 |
|
|
|
20 |
%.o: %.c |
21 |
$(CC) $(CFLAGS) -fPIC $(INCLUDE) -c -o $@ $< |
22 |
|
20 |
all: libmcal.a libmcal.so |
23 |
all: libmcal.a libmcal.so |
21 |
|
24 |
|
22 |
install: libmcal.a libmcal.so |
25 |
install: libmcal.a libmcal.so |
Lines 38-44
Link Here
|
38 |
|
41 |
|
39 |
libmcal.so: $(LIBOBJS) |
42 |
libmcal.so: $(LIBOBJS) |
40 |
rm -f $(LIBCAL_SO) |
43 |
rm -f $(LIBCAL_SO) |
41 |
gcc $(CFLAGS) -shared -o $(LIBCAL_SO) $(LIBOBJS) |
44 |
$(CC) -Wl,-soname=$@ $(CFLAGS) $(LDFLAGS) $(INCLUDE) -shared -o $(LIBCAL_SO) $(LIBOBJS) |
42 |
|
45 |
|
43 |
lex.ical_yy.c: icalscanner.lex |
46 |
lex.ical_yy.c: icalscanner.lex |
44 |
$(FLEX) $< |
47 |
$(FLEX) $< |