summaryrefslogtreecommitdiffstats
path: root/ecc/Rules.mk
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2014-06-30 22:10:16 -0500
committerPatrick Williams <iawillia@us.ibm.com>2014-07-02 22:49:29 -0500
commitbf4630076762d9c20c16c80c1c791f352b046dd1 (patch)
treeefc67bad010a28fd1abf5aeeefda2a969514fd97 /ecc/Rules.mk
downloadffs-bf4630076762d9c20c16c80c1c791f352b046dd1.zip
ffs-bf4630076762d9c20c16c80c1c791f352b046dd1.tar.gz
Port FFS tools over from Building Block repository.
Diffstat (limited to 'ecc/Rules.mk')
-rw-r--r--ecc/Rules.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/ecc/Rules.mk b/ecc/Rules.mk
new file mode 100644
index 0000000..a2e6caf
--- /dev/null
+++ b/ecc/Rules.mk
@@ -0,0 +1,20 @@
+CFLAGS += -m32 -D_GNU_SOURCE -std=gnu99 -D_FILE_OFFSET_BITS=64 -I$(DEPTH)/.. -iquote..
+LDFLAGS += -L. -L$(DEPTH)/../clib/x86 -m32
+
+OBJS=main.o
+
+TARGETS=ecc
+
+vpath %.c ../src
+vpath %.h ..
+
+all: $(TARGETS)
+
+ecc: main.o $(DEPTH)/../clib/x86/libclib.a
+ $(CC) $(LDFLAGS) -o $@ $^ -lpthread
+
+install: $(TARGETS)
+ $(INSTALL) ecc $(ECC_INSTALL)/bin
+
+clean distclean:
+ $(RM) -f $(TARGETS) $(OBJS)
OpenPOWER on IntegriCloud