diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2014-06-30 22:10:16 -0500 |
---|---|---|
committer | Patrick Williams <iawillia@us.ibm.com> | 2014-07-02 22:49:29 -0500 |
commit | bf4630076762d9c20c16c80c1c791f352b046dd1 (patch) | |
tree | efc67bad010a28fd1abf5aeeefda2a969514fd97 /clib/Rules.cunit.mk | |
download | ffs-bf4630076762d9c20c16c80c1c791f352b046dd1.tar.gz ffs-bf4630076762d9c20c16c80c1c791f352b046dd1.zip |
Port FFS tools over from Building Block repository.
Diffstat (limited to 'clib/Rules.cunit.mk')
-rw-r--r-- | clib/Rules.cunit.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clib/Rules.cunit.mk b/clib/Rules.cunit.mk new file mode 100644 index 0000000..961412a --- /dev/null +++ b/clib/Rules.cunit.mk @@ -0,0 +1,21 @@ +CFLAGS += -m32 -std=gnu99 -D__USE_GNU -I$(DEPTH)/apps +LDFLAGS = -rdynamic -L$(DEPTH)/apps/clib/$(ARCH_DEP_DIR) + +TARGETS=clib + +OBJS=slab.o splay.o map.o vector.o ecc.o tree.o clib.o + +vpath %.h ../../src +vpath %.c ../../cunit + +all: $(TARGETS) + +clib: $(OBJS) $(DEPTH)/apps/clib/$(ARCH_DEP_DIR)/libclib.a + $(CC) $(LDFLAGS) -o $@ $^ -lcunit -lrt + +clean: + $(RM) $(OBJS) $(TARGETS) + +install: + $(INSTALL) -d $(CLIB_INSTALL) + $(INSTALL) $(TARGETS) $(CLIB_INSTALL) |