Parcourir la source

Autoversioning commit: a non-deltaV client made a change to
/branches/1_2_9/Makefile (2).in

svn: 2673

Bryan Drewery il y a 20 ans
Parent
commit
634d8c07ea
1 fichiers modifiés avec 198 ajouts et 0 suppressions
  1. 198 0
      Makefile (2).in

+ 198 - 0
Makefile (2).in

@@ -0,0 +1,198 @@
+#
+#		DO NOT EDIT THIS FILE 
+#
+
+SHELL = @SHELL@
+top_srcdir = @top_srcdir@
+srcdir = @srcdir@
+VPATH = @srcdir@
+
+@SET_MAKE@
+VERSION = @VERSION@
+DISTRIB = wraith-@VERSION@
+CCDEPMODE = @CCDEPMODE@
+BINEXEC = wraith@EXEEXT@
+DISTROFILES = config.h.in doc/ misc/ scripts/ ChangeLog Makefile.in build configure pack/ src/
+EXCLUDES = pack/pack.cfg misc/ind doc/DEVEL src/Makefile src/compat/Makefile src/mod/Makefile \
+           src/crypto/Makefile src/crypto/.deps src/crypto/.cvsignore \
+           src/mod/dns.mod/Makefile src/mod/*.mod/.deps/ src/mod/*.mod/.cvsignore \
+           src/.deps src/compat/.deps misc/commit misc/grep autotools/ \
+           config.cache config.log config.status config.h stamp.* misc/.cvsignore src/compat/.cvsignore \
+           src/mod/.cvsignore src/.cvsignore .cvsignore misc/commit misc/fstrings \
+           misc/plainh misc/grep misc/cp.sh
+REVISION 	:= $(shell svnversion .)
+BUILDTS 	:= $(shell misc/getts.sh)
+
+# defaults
+CXX = @CCACHE@ @DISTCC@ @CXX@
+LD = @CXX@
+CCDEBUG = @CCACHE@ @DISTCC@ @CCDEBUG@
+LDDEBUG = @CCDEBUG@
+STRIP = @STRIP@
+DIFF = @DIFF@
+
+#LIBS = @LIBS@ @ZLIB@ @SSL@ 
+LIBS = @LIBS@ @ZLIB@ 
+
+DEBCXXFLAGS = -DDEBUG -fno-inline -g3 -ggdb3
+CFLGS = @GCC3@
+_CFLGS = -fno-strict-aliasing -W -Wformat \
+#-Wshadow -Wnested-externs -Wno-format-y2k \
+#-Wlarger-than-6608 -Wpointer-arith -Wcast-align \
+#-Waggrepate-return -Wbad-function-cast \
+#-Wlong-long @GCC3@
+
+#-Wmissing-noreturn
+#-Wunused-parameter
+#-Wwrite-strings
+#-Wconversion
+#-Wtraditional
+
+MAKEFLAGS = -s -j4
+
+MAKE_BIN = $(MAKE) 'MAKE=$(MAKE)' 'CXX=$(CXX)' 'LD=$(LD)' \
+'CCDEPMODE=$(CCDEPMODE)' 'REVISION=$(REVISION)' 'BUILDTS=$(BUILDTS)' \
+'STRIP=$(STRIP)' 'CFLGS=$(CFLGS)' \
+'LIBS=$(LIBS)' 'EGGEXEC=$(BINEXEC)' 'EGGBUILD=(wraith)'
+
+MAKE_DEBUG = $(MAKE) 'MAKE=$(MAKE)' 'CXX=$(CCDEBUG)' 'LD=$(LDDEBUG) -g' \
+'CCDEPMODE=$(CCDEPMODE)' 'REVISION=$(REVISION)' 'BUILDTS=$(BUILDTS)' \
+'STRIP=touch' 'CFLGS=$(DEBCXXFLAGS) $(CFLGS)' \
+'LIBS=$(LIBS)' 'EGGEXEC=$(BINEXEC)' 'EGGBUILD=(debug)' 
+
+MAKE_UTILS = $(MAKE) 'MAKE=$(MAKE)' 'CXX=$(CCDEBUG)' 'STRIP=touch' \
+'CCDEPMODE=$(CCDEPMODE)' \
+'CFLGS=$(DEBCXXFLAGS) $(CFLGS)' 'LIBS=$(LIBS)' 'LD=$(LDDEBUG) -g'
+
+MAKE_UTILS_NR = $(MAKE) 'CXX=$(CXX)' 'STRIP=touch' \
+'CCDEPMODE=$(CCDEPMODE)' \
+'CFLGS=$(DEBCXXFLAGS) $(CFLGS)' 'LIBS=$(LIBS)' 'LD=$(LD) -g'
+
+MAKE_CONFIG = $(MAKE) 'MAKE=$(MAKE)'
+
+default: wraith
+
+cleanutils:
+	@rm -f src/stringfix src/sorthelp src/makehelp
+	@rm -f src/stringfix.exe src/sorthelp.exe src/makehelp.exe
+
+clean:  cleanutils
+	+@cd src && $(MAKE) clean
+	+@cd src/compat && $(MAKE) clean
+	+@cd src/crypto && $(MAKE) clean
+	+@cd src/mod && $(MAKE) distclean
+	@rm -f $(BINEXEC) stamp.* *~ src/*~ configure.temp .mangled
+	@rm -f src/help.h src/response.h src/responses.h utctime ts
+
+distclean: clean
+	@rm -f Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/crypto/Makefile
+	@rm -f config.cache config.log config.status config.h 
+	@rm -rf *-$(VERSION)/ autom4te.cache/ autoscan.log configure.scan
+	@rm -rf src/.deps/ src/compat/.deps/ src/mod/*.mod/.deps/ src/crypto/.deps
+
+
+distrib: clean
+	@rm -rf $(DISTRIB)/
+	@mkdir $(DISTRIB) && cp -r $(DISTROFILES) $(DISTRIB)
+	@rm -f `find $(DISTRIB)/ \( -name '*~' -o -name '*#' -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \) -print`
+	@rm -rf `find $(DISTRIB)/ \( -name 'CVS' \) -print`
+	@for s in $(EXCLUDES); \
+	do \
+	 rm -rf $(DISTRIB)/$$s; \
+	done;
+	@mfiles="`find $(DISTRIB)/src/ -name '*.h' -or -name '*.c'`"; \
+	for s in $$mfiles; \
+	do \
+	 mangle -rnw $$s > /dev/null 2>&1;\
+	done
+
+tar: distrib
+	tar -czvf $(DISTRIB).tgz $(DISTRIB)/
+	ls -al $(DISTRIB).tgz
+#	rm -rf $(DISTRIB)/
+#	cd ../ && rm -rf distrib/
+
+indent:
+	@ifiles="`find src -name '*.h' -or -name '*.c'`"; \
+	for s in $$ifiles; \
+	do \
+	 indent $$s; \
+	done
+
+sort: sorthelp
+	@cp -f misc/help.txt misc/help.bak
+	@(if test "x`tail -n 1 misc/help.txt`" != "x::end"; then \
+	echo "::end" >> misc/help.txt; \
+	fi)
+#	@(sed misc/help.txt -e "s/^$$/ /" > help~ && mv -f help~ misc/help.txt) || rm -f help~
+	@(sed -r -e :a -e 's/^$$/ /' -e '$$!N;s/^ \n:/:/;ta' -e 'P;D' misc/help.txt > help~ && mv -f help~ misc/help.txt) || rm -f help~
+	@cp -f misc/help.txt help.txt~
+	@(src/sorthelp misc/help.txt misc/help.txt || (cp -f help.txt~ misc/help.txt; echo "Sort failed, restoring backup."))
+	@rm -f help.txt~
+
+help: makehelp stringfix
+	@src/makehelp misc/help.txt src/help.h.tmp~
+	@(if [ ! -f src/help.h ]; then \
+	touch src/help.h; \
+	fi)
+	@src/stringfix src/help.h.tmp~ src/help.h~ 1
+	@(if test "x`$(DIFF) -qurN src/help.h~ src/help.h`" != "x"; then \
+	cp -f src/help.h~ src/help.h; \
+	fi)
+
+res: makeres
+	@src/makeres misc/responses.txt src/ 1
+	@(if [ ! -f src/response.h ]; then \
+	touch src/response.h; \
+	fi)
+	@(if [ ! -f src/responses.h ]; then \
+	touch src/responses.h; \
+	fi)
+	@(if test "x`$(DIFF) -qurN src/response.h~ src/response.h`" != "x"; then \
+	cp -f src/response.h~ src/response.h; \
+	fi)
+	@(if test "x`$(DIFF) -qurN src/responses.h~ src/responses.h`" != "x"; then \
+	cp -f src/responses.h~ src/responses.h; \
+	fi)
+
+stringfix: src/stringfix.c config.h
+	+@cd src && ${MAKE_UTILS} stringfix
+
+makeres: src/makeres.c
+	+@cd src && ${MAKE_UTILS} makeres
+
+makehelp: src/makehelp.c
+	+@cd src && ${MAKE_UTILS} makehelp
+
+sorthelp: src/sorthelp.c
+	+@cd src && ${MAKE_UTILS} sorthelp
+
+utils: stringfix makehelp
+
+crypto:
+	+@cd src/crypto && ${MAKE_UTILS} crypto
+
+general: help res
+
+wraith:	general
+	@echo ""
+	@echo "Making binary"
+	@echo ""
+	@echo ""
+	+@cd src/mod && $(MAKE_BIN) static
+	+@cd src && $(MAKE_BIN) $(BINEXEC)
+	@echo ""
+
+dwraith: debug
+
+debug:  general
+	@echo ""
+	@echo "Making debug binary"
+	@echo ""
+	@echo ""
+	+@cd src/mod && $(MAKE_DEBUG) static
+	+@cd src && $(MAKE_DEBUG) $(BINEXEC)
+	@echo ""
+
+#safety hash
+