rendered paste body# $Id: Makefile.mak 28 2005-08-23 05:13:02Z ahacking $
# $Author: ahacking $
#
# Copyright (c) 2000 ERACOM Pty Ltd
# All Rights Reserved - Proprietary Information of ERACOM Pty. Ltd.
# Not to be Construed as a Published Work.
#
# $Source$
# $Revision: 28 $
# $Date: 2005-08-23 01:13:02 -0400 (Tue, 23 Aug 2005) $
include ../Makefile.arch
LIBNAME=libconfig.a
UNIXSRC=\
unix/cfgpriv_unix.c
SRC=\
source/config.c \
source/cfgpriv.c \
source/fileio.c \
$(UNIXSRC)
SRCDIR=./source
OBJ= $(patsubst %.o,${OBJINST}/%.o,$(notdir $(SRC:.c=.o)))
all: $(LIBDIR) $(LIBDIR)/$(LIBNAME)
$(LIBDIR)/$(LIBNAME): $(OBJ)
$(AR) $@ $(OBJ)
${OBJINST}/%.o :${SRC}
@echo ${SRC}
@if [ ! -d $(OBJINST) ] ; then $(MKDIR) $(OBJINST) ; fi
$(CC) $(CFLAGS) -c -o $@ $<
$(LIBDIR):
@$(MKDIR) $(LIBDIR)
clean:
-$(RM) $(OBJ) $(LIBDIR)/$(LIBNAME)
-$(RMDIR) $(ARCH)