Debian Codegraph @

acelib/Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 4 — not the installed (fully patched) source.
4 Debian patches touch this file
1 true = 1
2 false = 0
3 RANLIB_NEEDED = true # default overridable in $(ACEDB_MACHINE)_DEF
4 AR_OPTIONS = rlu # default overridable in $(ACEDB_MACHINE)_DEF
5
6 RPCGEN_FLAGS = -I -K -1
7 # -I -K -1 good for alpha
8 # -b -I -K -1 good for linux, probably solaris ?
9
10 # suppress auto SCCS extraction
11 .SCCS_GET:
12
13 #################################################################
14 ########## Machine dependent compiler modification ##############
15 ############# Are included from an external file ################
16 #### This is equivalent to, but more portable than $($(CC)) #####
17 ### Edit these rules to adapt the makefile to a new machine #####
18 # Note that you can keep different DEF files for the same machine
19 # setting various compiler options
20 #################################################################
21 include wmake/$(ACEDB_MACHINE)_DEF
22
23 FREE_OBJS = freesubs.o freeout.o messubs.o memsubs.o arraysub.o \
24 liste.o filsubs.o \
25 heap.o timesubs.o bump.o randsubs.o call.o menu.o dict.o \
26 helpsubs.o texthelp.o
27
28 ###########################################################
29 ## Compiler and library options
30 ## CC, LIBS, NAME are defined in $(ACEDB_MACHINE)_DEF
31 ##
32
33 IDIR = -I. -I./wh
34 # Do not use -I/usr/include
35 # it prevents gcc from picking up its own includes
36 # (cc goes to /usr/include anyway)
37
38 ## to undefine any rubbish
39 CCFLAGS =
40 GCFLAGS =
41
42 ## Different platforms use CC or COMPILE.c
43 # (USEROPTS - see comments at top of file)
44 #
45 CC = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c
46 COMPILE.c = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c
47
48 ###########################################################
49 ## make targets.
50 ##
51 ##
52 .KEEP_STATE:
53
54 # "all" should always be the first target so that it is the default make action.
55 all : libaceperl.a
56
57 clean:
58 \rm -f *.o *.a core $(RPCGEN_PRODUCTS)
59
60 depend:
61 makedepend $(IDIR) *.c
62
63 ################## libraries #########################
64
65 libaceperl.a : $(FREE_OBJS) aceclientlib.o rpcace_clnt.o rpcace_xdr.o
66 ar $(AR_OPTIONS) $@ $?
67 if ( $(RANLIB_NEEDED) ) then ranlib $@; fi
68
69 libfree.a : $(FREE_OBJS)
70 ar $(AR_OPTIONS) libfree.a $?
71 if ( $(RANLIB_NEEDED) ) then ranlib libfree.a; fi
72
73 #########################################
74 #### public C interface: libace #########
75 #########################################
76
77 #
78 # aceversion.c is recompiled & rearchived every time one of the
79 # other libace objects is recompiled. Hence aceversion.c enables
80 # us to record the link date of the library along with the ACEDB
81 # version.
82 # (this is not quite true at the moment because of the graphic/
83 # non-graphic split in libace, but this will go away)
84 #
85 aceversion.o: $(GENERIC_ACE_OBJS) $(GENERIC_ACE_NONGRAPH_OBJS) $(GENERIC_ACE_GRAPH_OBJS)
86
87 LIBACE_OBJS = $(GENERIC_ACE_OBJS) $(GENERIC_ACE_NONGRAPH_OBJS) aceversion.o
88
89 libace.a : $(LIBACE_OBJS)
90 ar $(AR_OPTIONS) libace.a $?
91 if ( $(RANLIB_NEEDED) ) then ranlib libace.a; fi
92
93 ######################################################
94 #### RPC server/client ACEDB programs ################
95 ######################################################
96
97 RPCGEN_PRODUCTS = rpcace.h rpcace_xdr.c rpcace_clnt.c rpcace_svc.c
98
99 $(RPCGEN_PRODUCTS): rpcace.x
100 rpcgen $(RPCGEN_FLAGS) rpcace.x
101
102 rpcace_sp.o: rpcace_sp.c rpcace_svc.c
103
104 aceclientlib.o: aceclientlib.c rpcace.h
105 $(CC) -c $<
106
107 RPC_CLIENT_OBJS = aceclientlib.o rpcace_clnt.o rpcace_xdr.o
108 RPC_SERVER_OBJS = rpcace_sp.o rpcace_xdr.o
109 NET_CLIENT_OBJS = aceclientlib.o rpcace_clnt.o rpcace_xdr.o
110 RPC_X_CLIENT_OBJS = xclient.o aceclientlib.o rpcace_clnt.o rpcace_xdr.o
111
112 libacecl.a : aceclientlib.o rpcace_clnt.o rpcace_xdr.o
113 ar $(AR_OPTIONS) libacecl.a $?
114 if ( $(RANLIB_NEEDED) ) then ranlib libacecl.a; fi
115
116 ###########################################################
117 ########### end of the acedb truemake file ################
118 ###########################################################