blob: e3c96a412319d508b2bc9b1af3ca25109ac8f8df [file] [log] [blame]
# Copyright 2010 by Nest Labs, Inc. All rights reserved.
#
# This program is confidential and proprietary to Nest Labs, Inc.,
# and may not be reproduced, published or disclosed to others without
# company authorization.
#
DEPTH = ../../
include $(DEPTH)Makefile.config
CFLAGS += -Os
OUTDIR = $(OBJ_DIR)
SRCDIR = ./
INCDIR = ./
OBJECT_FILES = \
ctr_drbg
HEADER_FILES =
OBJECTS = $(OBJECT_FILES:%=$(OUTDIR)/%.o)
HEADERS = $(HEADER_FILES:%=$(INCDIR)/%.h)
all: $(OUTDIR) $(LIB_DIR)/libctrdrbg.a
$(OUTDIR):
$(MKDIR) $(OUTDIR)
clean:
$(RM) $(OUTDIR)
$(OUTDIR)/%.o: $(SRCDIR)/%.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
$(OUTDIR)/%.o: $(SRCDIR)/%.cpp $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
$(OUTDIR)/libctrdrbg.a: $(OBJECTS)
$(ARCHIVE) $@ $(OBJECTS)
$(RANLIB) $@
$(LIB_DIR)/libctrdrbg.a: $(OUTDIR)/libctrdrbg.a
$(MKDIR) $(dir $@)
$(CP) $< $@