2000-02-25 10:15:17 +00:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
include GNUmakef.def
|
2006-03-12 07:57:03 +00:00
|
|
|
include Config.def
|
2000-02-25 10:15:17 +00:00
|
|
|
|
2005-04-28 06:31:13 +00:00
|
|
|
.PHONY: all clean distclean dirs sourcelists deps docs
|
2001-05-27 19:28:13 +00:00
|
|
|
|
2006-03-12 07:57:03 +00:00
|
|
|
LIBS=gall gcfg gmb3 glibc uulib smblib msgidlib
|
|
|
|
ifneq ($(findstring GCFG_NO_MYSPELL, $(CPPFLAGS)), GCFG_NO_MYSPELL)
|
|
|
|
LIBS+=myspell
|
|
|
|
endif
|
|
|
|
|
2000-02-25 10:15:17 +00:00
|
|
|
EXECUTABLES=golded3 goldnode rddt
|
|
|
|
|
2002-06-10 06:24:11 +00:00
|
|
|
all: sourcelists
|
2001-05-27 19:28:13 +00:00
|
|
|
@$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) all; cd ../..; done'
|
|
|
|
@$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) all; cd ..; done'
|
2005-09-27 18:16:55 +00:00
|
|
|
@echo 'To build HTML man pages run "make docs".'
|
|
|
|
@echo 'To reduce binaries size (remove debug information) run "make strip".'
|
2000-02-25 10:15:17 +00:00
|
|
|
|
2002-06-10 06:24:11 +00:00
|
|
|
clean:
|
2001-05-27 19:28:13 +00:00
|
|
|
@$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) clean; cd ../..; done'
|
|
|
|
@$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) clean; cd ..; done'
|
2002-06-10 06:24:11 +00:00
|
|
|
@-rm -f $(OBJPATH)/$(PLATFORM)/source.lst
|
2000-02-25 10:15:17 +00:00
|
|
|
|
|
|
|
dirs:
|
|
|
|
@mkdir -p $(BIN) $(LIBPATH)/$(PLATFORM)
|
|
|
|
@mkdir -p $(foreach dir,$(LIBS),$(OBJPATH)/$(PLATFORM)/$(dir))
|
|
|
|
@mkdir -p $(foreach dir,$(EXECUTABLES),$(OBJPATH)/$(PLATFORM)/$(dir))
|
2001-05-27 19:28:13 +00:00
|
|
|
|
|
|
|
sourcelists: dirs
|
|
|
|
@$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) sourcelist; cd ../..; done'
|
|
|
|
@$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) sourcelist; cd ..; done'
|
2002-06-10 06:24:11 +00:00
|
|
|
@echo -n >$(OBJPATH)/$(PLATFORM)/source.lst
|
2005-04-28 06:31:13 +00:00
|
|
|
|
|
|
|
docs:
|
|
|
|
@cd $@ ; $(MAKE) all ; cd ..
|
2005-08-19 21:42:23 +00:00
|
|
|
|
|
|
|
strip:
|
2005-10-29 09:17:53 +00:00
|
|
|
cd $(BIN)/ ; strip *$(PLATFORM)$(EXEEXT)
|