This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-goldedplus/Makefile

40 lines
1.6 KiB
Makefile
Raw Normal View History

2000-02-25 10:15:17 +00:00
# -*- makefile -*-
include GNUmakef.def
2001-05-27 19:28:13 +00:00
.PHONY: all clean distclean dirs sourcelists deps
2001-10-27 16:28:55 +00:00
LIBS=gall gcfg gmb3 glibc uulib smblib
2000-02-25 10:15:17 +00:00
EXECUTABLES=golded3 goldnode rddt
2001-05-27 19:28:13 +00:00
all: sourcelists deps
@$(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'
2000-02-25 10:15:17 +00:00
2001-05-27 19:28:13 +00:00
clean: nodeps sourcelists
@$(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'
@-rm -f $(DEPPATH)/$(PLATFORM)/source.lst
@$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) clean_sl; cd ../..; done'
@$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) clean_sl; cd ..; done'
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))
@mkdir -p $(foreach dir,$(LIBS),$(DEPPATH)/$(PLATFORM)/$(dir))
@mkdir -p $(foreach dir,$(EXECUTABLES),$(DEPPATH)/$(PLATFORM)/$(dir))
2001-05-27 19:28:13 +00:00
deps:
@$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) deps; cd ../..; done'
@$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) deps; cd ..; done'
@echo -n >$(DEPPATH)/$(PLATFORM)/dep
nodeps:
@-rm -f $(DEPPATH)/$(PLATFORM)/dep
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'
@echo -n >$(DEPPATH)/$(PLATFORM)/source.lst