1 ##############################################################################
2 # Instructions to Make, for compilation of MH modules
5 # @(#)$Id: config,v 2.8 1992/02/05 21:52:46 jromine Exp $
6 ##############################################################################
9 LDOPTIONS= @(LDOPTIONS)
18 LDFLAGS = $(LDOPTIONS)
21 LFLAGS = -bhu $(OPTIONS)
25 ##############################################################################
26 # Generate object file for MH configuration
27 ##############################################################################
29 CFILES = config.c version.c
30 OFILES = config.o version.o
34 lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
36 version version.c: true
37 @/bin/sh version.sh @(MHHOSTVER) @(MHRELEASE)
41 ##############################################################################
43 ##############################################################################
45 unconfig: distribution
49 -rm -f config.c version.c version
54 unclean:; -rm -f _* :* core eddep makedep
57 ##############################################################################
59 ##############################################################################
63 depend:; for m in $(MODULES); do ( \
64 i=`basename $$m .c`; \
65 echo $$i.o: $$i.c >> makedep; \
66 grep '^#[ ]*include' $$i.c | \
67 sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
68 -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
69 -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
72 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
73 echo '$$r makedep' >> eddep
78 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
79 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
81 # DO NOT DELETE THIS LINE
82 # DEPENDENCIES START HERE
85 #config.o: /usr/include/pwd.h
86 #config.o: /usr/include/stdio.h
87 # DEPENDENCIES MUST END AT END OF FILE
88 # IF YOU PUT STUFF HERE IT WILL GO AWAY