head	1.1;
branch	1.1.1;
access;
symbols
	LIBC_4_5_19:1.1.1.6
	LIBC_4_5_18:1.1.1.6
	LIBC_4_5_17:1.1.1.6
	LIBC_4_5_16:1.1.1.5
	LIBC_4_5_15:1.1.1.5
	LIBC_4_5_14:1.1.1.5
	LIBC_4_5_13:1.1.1.5
	LIBC_4_5_12:1.1.1.4
	LIBC_4_5_11:1.1.1.3
	LIBC_4_5_10:1.1.1.2
	LIBC_4_5_9:1.1.1.1
	LIBC_4_5_8:1.1.1.1
	LIBC_4_5_7:1.1.1.1
	LIBC:1.1.1;
locks; strict;
comment	@# @;


1.1
date	93.12.14.16.58.37;	author steinber;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	93.12.14.16.58.38;	author steinber;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.01.13.12.12.35;	author steinber;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	94.01.19.16.22.57;	author steinber;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	94.01.19.16.27.58;	author steinber;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	94.02.01.12.57.28;	author steinber;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	94.02.01.14.31.38;	author steinber;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#
# common targets
#

lib: $(OBJS)
	$(AR) uvc $(LIB) $(OBJS)
	$(MAKE) subdir TARGET=$@@

subdir:
	if [ xx"$(DIRS)"xx != xxxx ]; then \
	  for i in $(DIRS) ..; do \
	    if [ $$i != .. ]; then \
		echo making $$i; \
		(cd $$i; $(MAKE) $(TARGET)); \
	    else true; fi; \
	  done; \
	else true; fi

libalias: $(ALIASES)
	$(AR) uvc $(LIBALIAS) $(ALIASES);
	$(MAKE) subdir TARGET=$@@

obj: $(OBJS)

asm: $(ASMS)

realclean::
	$(RM) -f .depend core *.o *.a *.s *.i tmp_make foo
	$(MAKE) subdir TARGET=realclean

clean::
	$(RM) -f core *.o *.a *.s *.i tmp_make foo
	$(MAKE) subdir TARGET=clean

depend:
	$(CC) $(CFLAGS) -M $(SRCS) > .depend
	$(MAKE) subdir TARGET=depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
@


1.1.1.1
log
@LIBC_4_5_7
@
text
@@


1.1.1.2
log
@LIBC_4_5_10
@
text
@d5 2
a6 10
STATIC_OBJS=
SHARED_OBJS=
DEBUG_OBJS=
PROFILE_OBJS=

.PHONY:	check static_lib shared_lib debug_lib profile_lib alias_lib
.PHONY: $(STATIC_LIB) $(SHARED_LIB) $(DEBUG_LIB) $(PROFILE_LIB)
.PHONY: $(LIBALIAS)

lib:: check static_lib shared_lib debug_lib profile_lib alias_lib
d9 9
a17 79
check:
	@@if [ -d $(STATIC_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(STATIC_DIR)/$(SUBDIR); \
	  $(MKDIR) $(STATIC_DIR)/$(SUBDIR); \
	fi
	@@if [ -d $(SHARED_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(SHARED_DIR)/$(SUBDIR); \
	  $(MKDIR) $(SHARED_DIR)/$(SUBDIR); \
	fi
	@@if [ -d $(DEBUG_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(DEBUG_DIR)/$(SUBDIR); \
	  $(MKDIR) $(DEBUG_DIR)/$(SUBDIR); \
	fi
	@@if [ -d $(PROFILE_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(PROFILE_DIR)/$(SUBDIR); \
	  $(MKDIR) $(PROFILE_DIR)/$(SUBDIR); \
	fi

ifeq ($(STATIC),true)
STATIC_OBJS:= $(addprefix $(STATIC_DIR)/$(SUBDIR)/, $(OBJS))

static_lib: $(STATIC_OBJS) $(STATIC_LIB)

$(STATIC_LIB): $(STATIC_OBJS)
	$(AR) uvc $@@ $(STATIC_OBJS)
else
static_lib:
	@@true
endif

ifeq ($(SHARED),true)
SHARED_OBJS:= $(addprefix $(SHARED_DIR)/$(SUBDIR)/, $(OBJS))

shared_lib: $(SHARED_OBJS) $(SHARED_LIB)

$(SHARED_LIB): $(SHARED_OBJS)
	$(AR) uvc $@@ $(SHARED_OBJS)
else
shared_lib:
	@@true
endif

ifeq ($(DEBUG),true)
DEBUG_OBJS:= $(addprefix $(DEBUG_DIR)/$(SUBDIR)/, $(OBJS))

debug_lib: $(DEBUG_OBJS) $(DEBUG_LIB)

$(DEBUG_LIB): $(DEBUG_OBJS)
	$(AR) uvc $@@ $(DEBUG_OBJS)
else
debug_lib:
	@@true
endif

ifeq ($(PROFILE),true)
PROFILE_OBJS:= $(addprefix $(PROFILE_DIR)/$(SUBDIR)/, $(OBJS))

profile_lib: $(PROFILE_OBJS) $(PROFILE_LIB)

$(PROFILE_LIB): $(PROFILE_OBJS)
	$(AR) uvc $@@ $(PROFILE_OBJS)
else
profile_lib:
	@@true
endif

ifneq ($(ALIASES),)
alias_lib: $(ALIASES) $(LIBALIAS)

$(LIBALIAS): $(ALIASES)
	$(AR) uvc $@@ $(ALIASES)
else
alias_lib:
	@@true
endif
d19 3
a21 11
subdir:
ifneq ($(DIRS),)
	for i in $(DIRS) ..; do \
	  if [ $$i != .. ]; then \
	    echo making $(TARGET) in $$i; \
	    (cd $$i; $(MAKE) $(TARGET)); \
	  else true; fi; \
	done;
else
	@@true
endif
d35 2
a36 3
depend::
	$(CC) $(CFLAGS) -M $(SRCS) | \
		sed -e 's,^[ 	]*\(.*.o\)[ 	]*:,$(STATIC_DIR)/\1 $(SHARED_DIR)/\1 $(DEBUG_DIR)/\1 $(PROFILE_DIR)/\1 $(CHECKER_DIR)/\1:,' > .depend
@


1.1.1.3
log
@LIBC_4_5_11
@
text
@d10 3
a12 4
ifeq ($(SPEED),fast)
.PHONY: $(STATIC_LIB) $(SHARED_LIB) $(DEBUG_LIB) $(PROFILE_LIB) \
	$(LIBALIAS)
endif
d14 2
a15 2
ifeq ($(STATIC),true)
STATIC_OBJS:= $(addprefix $(STATIC_DIR)/$(SUBDIR)/, $(OBJS))
d17 1
a17 1
lib::
d23 18
d42 1
a42 2
ifeq ($(SPEED),fast)
lib:: $(STATIC_OBJS) $(STATIC_LIB)
d45 1
a45 1
	$(AR) $(ARFLAGS) $@@ $^
d47 2
a48 2
lib:: $(STATIC_LIB)($(STATIC_OBJS))
endif
d54 1
a54 9
lib::
	@@if [ -d $(SHARED_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(SHARED_DIR)/$(SUBDIR); \
	  $(MKDIR) $(SHARED_DIR)/$(SUBDIR); \
	fi

ifeq ($(SPEED),fast)
lib:: $(SHARED_OBJS) $(SHARED_LIB)
d57 1
a57 1
	$(AR) $(ARFLAGS) $@@ $^
d59 2
a60 1
lib:: $(SHARED_LIB)($(SHARED_OBJS))
a61 1
endif
d66 1
a66 9
lib::
	@@if [ -d $(DEBUG_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(DEBUG_DIR)/$(SUBDIR); \
	  $(MKDIR) $(DEBUG_DIR)/$(SUBDIR); \
	fi

ifeq ($(SPEED),fast)
lib:: $(DEBUG_OBJS) $(DEBUG_LIB)
d69 1
a69 1
	$(AR) $(ARFLAGS) $@@ $^
d71 2
a72 2
lib:: $(DEBUG_LIB)($(DEBUG_OBJS))
endif
d78 1
a78 9
lib::
	@@if [ -d $(PROFILE_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(PROFILE_DIR)/$(SUBDIR); \
	  $(MKDIR) $(PROFILE_DIR)/$(SUBDIR); \
	fi

ifeq ($(SPEED),fast)
lib:: $(PROFILE_OBJS) $(PROFILE_LIB)
d81 1
a81 1
	$(AR) $(ARFLAGS) $@@ $^
d83 2
a84 1
lib:: $(PROFILE_LIB)($(PROFILE_OBJS))
a85 1
endif
d88 1
a88 2
ifeq ($(SPEED),fast)
lib:: $(ALIASES) $(LIBALIAS)
d91 1
a91 1
	$(AR) $(ARFLAGS) $@@ $^
d93 2
a94 1
lib:: $(LIBALIAS)($(ALIASES))
d96 11
d115 1
a115 1
#	$(MAKE) subdir TARGET=realclean
d119 1
a119 1
#	$(MAKE) subdir TARGET=clean
d123 2
a124 10
		sed -e 's,^[ 	]*\(.*.o\)[ 	]*:,$(STATIC_DIR)/$(SUBDIR)/\1 $(SHARED_DIR)/$(SUBDIR)/\1 $(DEBUG_DIR)/$(SUBDIR)/\1 $(PROFILE_DIR)/$(SUBDIR)/\1 $(CHECKER_DIR)/$(SUBDIR)/\1:,' > .depend
#	$(MAKE) subdir TARGET=depend

ifneq ($(DIRS),)
lib realclean clean depend::
	@@for i in $(DIRS); do \
	  echo making $@@ in $$i; \
	  (cd $$i; $(MAKE) $@@); \
	done;
endif
@


1.1.1.4
log
@LIBC_4_5_12
@
text
@d15 3
a23 18
	@@if [ -d $(SHARED_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(SHARED_DIR)/$(SUBDIR); \
	  $(MKDIR) $(SHARED_DIR)/$(SUBDIR); \
	fi
	@@if [ -d $(DEBUG_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(DEBUG_DIR)/$(SUBDIR); \
	  $(MKDIR) $(DEBUG_DIR)/$(SUBDIR); \
	fi
	@@if [ -d $(PROFILE_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(PROFILE_DIR)/$(SUBDIR); \
	  $(MKDIR) $(PROFILE_DIR)/$(SUBDIR); \
	fi

ifeq ($(STATIC),true)
STATIC_OBJS:= $(addprefix $(STATIC_DIR)/$(SUBDIR)/, $(OBJS))
d38 7
d58 7
d78 7
@


1.1.1.5
log
@LIBC_4_5_13
@
text
@a14 34
ifeq (true,false)

lib::
ifeq ($(STATIC),true)
	@@if [ -d $(STATIC_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(STATIC_DIR)/$(SUBDIR); \
	  $(MKDIR) $(STATIC_DIR)/$(SUBDIR); \
	fi
endif
ifeq ($(SHARED),true)
	@@if [ -d $(SHARED_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(SHARED_DIR)/$(SUBDIR); \
	  $(MKDIR) $(SHARED_DIR)/$(SUBDIR); \
	fi
endif
ifeq ($(DEBUG),true)
	@@if [ -d $(DEBUG_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(DEBUG_DIR)/$(SUBDIR); \
	  $(MKDIR) $(DEBUG_DIR)/$(SUBDIR); \
	fi
endif
ifeq ($(PROFILE),true)
	@@if [ -d $(PROFILE_DIR)/$(SUBDIR) ]; then \
	  true; else \
	  $(RM) -f $(PROFILE_DIR)/$(SUBDIR); \
	  $(MKDIR) $(PROFILE_DIR)/$(SUBDIR); \
	fi
endif

else

a35 1
endif
@


1.1.1.6
log
@LIBC_4_5_17
@
text
@d10 4
a13 4
#ifeq ($(SPEED),fast)
#.PHONY: $(STATIC_LIB) $(SHARED_LIB) $(DEBUG_LIB) $(PROFILE_LIB) \
#	$(LIBALIAS)
#endif
a72 1

a75 2
.PHONY: $(STATIC_LIB)

a88 2
.PHONY: $(SHARED_LIB)

a101 2
.PHONY: $(DEBUG_LIB)

a111 2
.PHONY: $(PROFILE_LIB)

a125 2
.PHONY: $(LIBALIAS)

@
