From: Robert W. <ro...@us...> - 2005-08-31 20:27:23
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26404/testcases/kernel/syscalls/modify_ldt Modified Files: Makefile Log Message: Applied a load of patches submitted to the mailing list by Gentoo's Mike Frysinger Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/modify_ldt/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile 11 Jul 2005 22:28:49 -0000 1.8 --- Makefile 31 Aug 2005 20:27:15 -0000 1.9 *************** *** 22,26 **** ########################################################################### ! NEEDSPECIAL:=$(shell cat /usr/include/asm/ldt.h | grep user_desc; echo $?) ifeq ($(strip $(NEEDSPECIAL)),) CFLAGS+=-I../../../../include -g -Wall --- 22,36 ---- ########################################################################### ! SRCS=$(wildcard *.c) ! TARGETS=$(patsubst %.c,%,$(SRCS)) ! ! check_header = $(shell \ ! if echo "\#include <$(1)>" | $(CC) -E - > /dev/null 2>&1 ; \ ! then echo yes ; \ ! else echo no ; fi) ! ! ifeq ($(call check_header,asm/ldt.h),yes) ! ! NEEDSPECIAL:=$(shell echo "\#include <asm/ldt.h>" | $(CC) -E - 2>&1 | grep user_desc) ifeq ($(strip $(NEEDSPECIAL)),) CFLAGS+=-I../../../../include -g -Wall *************** *** 33,39 **** LOADLIBES+= $(if $(UCLINUX),-lc) - SRCS=$(wildcard *.c) - TARGETS=$(patsubst %.c,%,$(SRCS)) - all: $(TARGETS) --- 43,46 ---- *************** *** 41,46 **** @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done ! clean: ! rm -f $(TARGETS) --- 48,57 ---- @set -e; for i in $(TARGETS); do ln -f $$i ../../../bin/$$i ; done ! else ### does not have asm/ldt.h ### + all install: + + endif + clean: + rm -f $(TARGETS) |