6 top_srcdir = @top_srcdir@
16 DLL_ADDRESS = 0x66880000
22 DLL_LIBS = -L../.. -lcom_err
24 DLL_INSTALL_DIR = $(libdir)
29 ELF_INSTALL_DIR = $(libdir)
34 BSDLIB_INSTALL_DIR = $(libdir)
37 COMPILE_ET=../et/compile_et
40 # -I.. is so that ss/ss_err.h works
41 # -I$(srcdir)/.. is so that ss/ss.h works
42 # -I$(srcdir)/../et is so com_err.h works
43 XTRA_CFLAGS=-DPOSIX_SIGNALS -I$(srcdir)/../et
47 @PROFILE_CMT@ $(CC) $(CFLAGS) -pg -o profiled/$*.o -c $<
48 @CHECKER_CMT@ $(CC) $(CFLAGS) -checker -g -o checker/$*.o -c $<
49 @DLL_CMT@ (export JUMP_DIR=`pwd`/jump; $(CC) -B$(JUMP_PREFIX) $(CFLAGS) \
50 @DLL_CMT@ -o jump/$*.o -c $<)
51 @ELF_CMT@ $(CC) $(CFLAGS) -fPIC -o elfshared/$*.o -c $<
52 @BSDLIB_CMT@ $(CC) $(CFLAGS) -fpic -o pic/$*.o -c $<
58 # with ss_err.o first, ss_err.h should get rebuilt first too. should not
59 # be relying on this, though.
63 execute_cmd.o listen.o parse.o error.o prompt.o \
64 request_tbl.o list_rqs.o pager.o requests.o \
67 SRCS= $(srcdir)/invocation.c $(srcdir)/help.c \
68 $(srcdir)/execute_cmd.c $(srcdir)/listen.c $(srcdir)/parse.c \
69 $(srcdir)/error.c $(srcdir)/prompt.c $(srcdir)/request_tbl.c \
70 $(srcdir)/list_rqs.c $(srcdir)/pager.c $(srcdir)/requests.c \
82 CODE= $(SRCS) $(MKCMDSFILES)
84 MKCMDSOBJS= mk_cmds.o utils.o options.o ct.tab.o cmd_tbl.lex.o
86 MKCMDSFILES= mk_cmds.c utils.c options.c ct.y cmd_tbl.lex.l
88 MKCMDSCSRCS= mk_cmds.c utils.c options.c ct.tab.c cmd_tbl.lex.c
91 HFILES= ss.h ss_internal.h copyright.h
93 # for 'tags' and dependencies
95 CFILES= $(SRCS) $(MKCMDSCSRCS) test_ss.c
97 # for building archives
99 FILES= $(SRCS) $(MKCMDSFILES) $(HFILES) \
100 ss_err.et std_rqs.ct Makefile \
101 test_ss.c ss mit-sipb-copyright.h copyright.h
103 all:: libss.a # libss_p.a lint
105 std_rqs.c: std_rqs.ct $(MK_CMDS)
106 $(MK_CMDS) $(srcdir)/std_rqs.ct
108 ss_err.c ss_err.h: ss_err.et
109 $(COMPILE_ET) $(srcdir)/ss_err.et
111 ct.tab.c ct.tab.h: ct.y
112 $(RM) -f ct.tab.* y.*
113 $(YACC) -d $(srcdir)/ct.y
114 $(MV) -f y.tab.c ct.tab.c
115 $(MV) -f y.tab.h ct.tab.h
118 # $(LD) -r -s -o $@ $(OBJS)
122 $(CP) mk_cmds.sh $@ && $(CHMOD) +x mk_cmds
125 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(ulibdir) \
126 $(DESTDIR)$(includedir)/ss
128 install:: libss.a $(HFILES) copyright.h installdirs
129 $(INSTALL_DATA) libss.a $(DESTDIR)$(ulibdir)/libss.a
130 $(CHMOD) 644 $(DESTDIR)$(ulibdir)/libss.a
131 -$(RANLIB) $(DESTDIR)$(ulibdir)/libss.a
132 $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/libss.a
133 $(RM) -f $(includedir)/ss/*
134 for i in $(HFILES) copyright.h; do \
135 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir)/ss/$$i; \
139 $(RM) -f $(ulibdir)/libss.a
140 $(RM) -rf $(includedir)/ss
143 $(RM) -f ../libss.a libss.a mk_cmds
144 $(RM) -f *.o *~ \#* *.bak core
148 $(RM) -f .depend ss_err.h ss_err.c mk_cmds.sh Makefile
150 # +++ Dependency line eater +++
152 # Makefile dependencies follow. This must be the last section in
153 # the Makefile.in file
155 invocation.o: $(srcdir)/invocation.c $(srcdir)/ss_internal.h \
157 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
158 $(srcdir)/copyright.h
159 help.o: $(srcdir)/help.c \
160 $(srcdir)/ss_internal.h \
161 $(srcdir)/ss.h $(srcdir)/mit-sipb-copyright.h \
162 $(top_builddir)/lib/ss/ss_err.h $(srcdir)/copyright.h
163 execute_cmd.o: $(srcdir)/execute_cmd.c $(srcdir)/ss_internal.h \
165 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
166 $(srcdir)/copyright.h
167 listen.o: $(srcdir)/listen.c $(srcdir)/copyright.h \
168 $(srcdir)/ss_internal.h \
169 $(srcdir)/ss.h $(srcdir)/mit-sipb-copyright.h \
170 $(top_builddir)/lib/ss/ss_err.h
171 parse.o: $(srcdir)/parse.c \
172 $(srcdir)/ss_internal.h \
174 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
175 $(srcdir)/copyright.h
176 error.o: $(srcdir)/error.c \
177 $(srcdir)/copyright.h \
178 $(srcdir)/../et/com_err.h \
179 $(srcdir)/ss_internal.h \
181 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h
182 prompt.o: $(srcdir)/prompt.c $(srcdir)/copyright.h \
183 $(srcdir)/ss_internal.h \
185 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h
186 request_tbl.o: $(srcdir)/request_tbl.c \
187 $(srcdir)/copyright.h $(srcdir)/ss_internal.h \
188 $(srcdir)/ss.h $(srcdir)/mit-sipb-copyright.h \
189 $(top_builddir)/lib/ss/ss_err.h
190 list_rqs.o: $(srcdir)/list_rqs.c $(srcdir)/copyright.h \
191 $(srcdir)/ss_internal.h \
192 $(srcdir)/ss.h $(srcdir)/mit-sipb-copyright.h \
193 $(top_builddir)/lib/ss/ss_err.h
194 pager.o: $(srcdir)/pager.c \
195 $(srcdir)/ss_internal.h \
197 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
198 $(srcdir)/copyright.h
199 requests.o: $(srcdir)/requests.c $(srcdir)/mit-sipb-copyright.h \
200 $(srcdir)/ss_internal.h \
202 $(top_builddir)/lib/ss/ss_err.h
203 data.o: $(srcdir)/data.c \
204 $(srcdir)/ss_internal.h \
206 $(srcdir)/mit-sipb-copyright.h $(top_builddir)/lib/ss/ss_err.h \
207 $(srcdir)/copyright.h