summaryrefslogtreecommitdiffstats
path: root/op-flasher/pflash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'op-flasher/pflash/Makefile')
-rw-r--r--op-flasher/pflash/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/op-flasher/pflash/Makefile b/op-flasher/pflash/Makefile
new file mode 100644
index 0000000..f77cee9
--- /dev/null
+++ b/op-flasher/pflash/Makefile
@@ -0,0 +1,21 @@
+ ARCH_OBJS = arm_io.o
+
+CFLAGS = -O2 -Wall -I.
+LDFLAGS = -lrt
+OBJS = pflash.o progress.o ast-sf-ctrl.o
+OBJS += libflash/libflash.o libflash/libffs.o
+OBJS += $(ARCH_OBJS)
+EXE = pflash
+
+#CC = $(CROSS_COMPILE)gcc
+
+%.o : %.c
+ $(CC) $(CFLAGS) -c $< -o $@ -I.
+
+$(EXE): $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -I.
+
+clean:
+ rm -f $(OBJS) $(EXE) *.o *.d libflash/test/test_flash libflash/test/*.o
+distclean: clean
+ rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~
OpenPOWER on IntegriCloud