File: Makefile.in.foo

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 (48 lines) | stat: -rw-r--r-- 975 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
# 	$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=-O0 -Wall -g ${INCLUDE}

LIBOBJS=mcal.o datetime.o lex.ical_yy.o icalroutines.o cal_misc.o $(DRIVER_LIBS)
ALLOBJS=${LIBOBJS} tester.o
OTHERLIBS=${OTHERLIBS}
OTHERLIBDIR=${OTHERLIBDIR}

LIBCAL=libmcal.a

all: libmcal.a

install: libmcal.a
	mkdir /usr/local/mcal
	mkdir /usr/local/mcal/lib
	mkdir /usr/local/mcal/include
	cp libmcal.a /usr/local/mcal/lib
	cp mcal.h bool.h datetime.h drivers.h /usr/local/mcal/include
libmcal.a: $(LIBOBJS)
	rm -f $(LIBCAL)
	ar r $(LIBCAL) $(LIBOBJS)

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

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

clean:
	rm -f *.o $(LIBCAL) tester  

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


dep: depend

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