##
# Makefile
##
# History:
## 2009 / 11 / 16 -[Qiao Wang]
##
# Copyright (c) 2004 - 2009 , Ambarella, Inc.
##
# All Rights Reserved. No part This File may be reproduced, stored
## In A retrieval system, or transmitted,In Any form, or by any means,
# Electronic, mechanical, photocopying, recording, or otherwise,
# Without the prior consent of ambarella, Inc.
##
Default : All
PWD: = $ (shell PWD)
Module_dir: = $ (Word 2 , $ (SUBST/unit_test/ Private //, $ (PWD )))
Private_dir: = $ (shell echo./$ (module_dir) | SED ' S/\/[0-9a-za-z _] */\/../g ' )
Ambabuild_topdir: = $ (PWD)/$ (private_dir )/../..
Module_name: = " Libuuid "
Link_flag: =-L $ (ambabuild_topdir)/prebuild/lib-lpthread
Library = libuuid. So
Libdir = UUID
Export ambabuild_topdir
Include $ (ambabuild_topdir)/build/unit_test/common. mk
Unit_test_ldflag? = $ (Ambarella_ldflags)
Unit_test_cflag? = $ (Ambarella_cflags)-g-O0-wall
Cc = $ (amba_makefile_v) $ (cross_compile) GCC
Srcdir =.
Objs = clear. O \
Compare. O \
Copy. O \
Gen_uuid.o \
Isnull. O \
Pack. O \
Parse. O \
Unpack. O \
Unparse. O \
Uuid_time.o
. Phony: All clean
ALL: $ (Library)
$ (Library): $ (objs)
@ Echo " Compile libuuid... "
@ $ (CC) $ (unit_test_cflag)-shared-o $ (Library) $ (objs) $ (unit_test_ldflag)
Clean:
$ (Amba_makefile_v) echo " [Clean $ (module_name)]: "
$ (Amba_makefile_v) Rm-f *. o $ (Library)
# ++ Dependency line eater ++
#
# Makefile dependencies follow. This must be the last section In
# The makefile. In File
#
Clear. O: Clear. c uuidp. h
Compare. O: Compare. c uuidp. h
Copy. O: Copy. c uuidp. h
Gen_uuid.o: gen_uuid.c uuidp. h uuuidd. h
Isnull. O: isnull. c uuidp. h
Pack. O: Pack. c uuidp. h
Parse. O: parse. c uuidp. h
Unpack. O: unpack. c uuidp. h
Unparse. O: unparse. c uuidp. h
Uuid_time.o: uuid_time.c uuidp. h
. C. O:
$ (CC) $ (unit_test_cflag)-C $ <