summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: eb0f9cbebaa399fb7b826f7cd839922bcc4da9af (plain)
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
#
# APR (Apache Portable Runtime) library Makefile.
#
SHELL=@SH@

#
# Macros for compilation commands
#
@SET_MAKE@
RM=@RM@
CC=@CC@
CFLAGS=@CFLAGS@ @OPTIM@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@ $(LIBS)
RANLIB=@RANLIB@
#
# Macros for supporting directories
#
INCDIR=./include
INCDIR1=../include
INCLUDES=-I$(INCDIR) -I$(INCDIR1)

#
# Macros for target determination
#
MODULES=lib file_io network_io threadproc locks misc time
SUBDIRS=lib file_io/@OSDIR@ network_io/@OSDIR@ threadproc/@OSDIR@ \
        locks/@OSDIR@ misc/@OSDIR@ time/@OSDIR@ signal/@OSDIR@ 
#shmem/@OSDIR@

#
# Rules for turning inputs into outputs
#
.c.o:
	$(CC) $(CFLAGS) -c $(INCLUDES) $<

#
# Rules for building specific targets, starting with 'all' for
# building the entire package.
#
all: Makefile $(MODULES) subdirs
	@echo APR built.

clean: subdirs_clean
	$(RM) -f *.o *.a *.so

depend: subdirs_depend

distclean: clean
	-$(RM) -f Makefile

subdirs:
	@for i in $(SUBDIRS); do \
	    echo "===> $$i"; \
	    ( cd $$i && $(MAKE) $(MFLAGS_STATIC) SDP='$(SDP)' \
		CC='$(CC)' AUX_CFLAGS='$(AUX_CFLAGS)' RANLIB='$(RANLIB)' ) \
		|| exit 1; \
	    echo "<== $$i"; \
	done;

subdirs_depend:
	@for i in $(SUBDIRS); do \
	    ( cd $$i && $(MAKE) depend ) \
	done;

subdirs_clean:
	@for i in $(SUBDIRS); do \
	    ( cd $$i && $(MAKE) clean ) \
	done;

# DO NOT REMOVE