# @(#) $Revision: 72.2 $
#
# Common makefile for libc/netipc subdirectory
#

COMOBJS =		\
	addopt.o	\
	initopt.o	\
	ipcerrmsg.o	\
	ipcerrstr.o	\
	legal_opt.o	\
	optovrhd.o	\
	readopt.o

COMOBJS_P = $(COMOBJS:.o=_p.o)
COMOBJS_SL = $(COMOBJS:.o=_sl.o)

default:	archive

archive:	$(COMOBJS)

shared:		$(COMOBJS_SL)

profile:	$(COMOBJS_P)

clean:
	@echo "\tCleaning netipc..."
	@rm -f *.o

clobber:
	@echo "Clobbering is done by the top-level libc makefile"

#
# Define rule so make knows how to create different flavors of .o's
#
.c_p.o:
	$(CC) $(CFLAGS) -c $< -o $@

.c_sl.o:
	$(CC) $(CFLAGS) -c $< -o $@

# 
# Clear SUFFIXES, then reset ordering so if a .c and .s source exist
# for a file, the .s will be compiled first
#
.SUFFIXES:
.SUFFIXES: .o .s .c _p.o _sl.o
