This repository has been archived by the owner on Feb 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid makefile error and change ucontext.h to sys/ucontext.h.
- Loading branch information
Rolf Timmermans
committed
Jun 2, 2010
1 parent
c858662
commit 5df0f42
Showing
3 changed files
with
77 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# | ||
# Common part for all pseudo libs | ||
# | ||
|
||
#No target is removed because it is considered intermediate | ||
.SECONDARY: | ||
|
||
FOLDER = $(shell basename `pwd`) | ||
SUBDIROBJS= $(foreach dir,$(SUBDIRS),$(dir)/$(dir)$(LIST_EXT)) | ||
|
||
all: $(FOLDER)$(LIST_EXT) | ||
@echo =================================================================== | ||
@echo $(FOLDER) DONE | ||
@echo =================================================================== | ||
|
||
ifneq ($(findstring clean, $(MAKECMDGOALS)), clean) | ||
ifndef NO_DEP | ||
|
||
ifdef GENERATED | ||
include generated | ||
endif | ||
|
||
include $(OBJS:$(OBJ_EXT)=.d) | ||
|
||
ifdef GENERATED | ||
$(OBJS:$(OBJ_EXT)=.d): generated | ||
endif | ||
|
||
else | ||
|
||
ifdef GENERATED | ||
include generated | ||
endif | ||
|
||
ifdef GENERATED | ||
$(OBJS): generated | ||
endif | ||
|
||
endif | ||
endif | ||
|
||
|
||
################################################################################ | ||
# $(FOLDER) # | ||
################################################################################ | ||
$(FOLDER)$(LIST_EXT): $(OBJS) $(SUBDIROBJS) | ||
echo $(foreach obj,$(foreach dirobj,$(SUBDIROBJS),$(shell cat $(dirobj))) $(OBJS),$(FOLDER)/$(obj)) >$@ | ||
|
||
|
||
$(SUBDIROBJS): $(SUBDIRS:%=%-recursive) ; | ||
|
||
.PHONY: $(SUBDIRS:%=%-recursive) | ||
$(SUBDIRS:%=%-recursive): | ||
$(MAKE) -C $(subst -recursive,,$@) | ||
|
||
|
||
ifdef GENERATED | ||
$(GENERATED): generated | ||
endif | ||
|
||
|
||
################################################################################ | ||
# Clean # | ||
################################################################################ | ||
.PHONY: clean Makefile $(CUSTOM_CLEAN) | ||
|
||
Makefile: ; | ||
|
||
clean: generic_clean $(CUSTOM_CLEAN) | ||
-rm -f $(FOLDER)$(LIST_EXT) | ||
ifdef SUBDIRS | ||
for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@ || exit; done | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,7 +199,7 @@ | |
#include <signal.h> | ||
|
||
#ifndef __cygwin__ | ||
|
||
#include <sys/ucontext.h> | ||
#endif | ||
|
||
#include <setjmp.h> | ||
|