Norman James | 6a58a27 | 2015-10-07 14:34:16 -0500 | [diff] [blame] | 1 | ARCH_OBJS = arm_io.o |
| 2 | |
| 3 | CFLAGS = -O2 -Wall -I. |
| 4 | LDFLAGS = -lrt |
| 5 | OBJS = pflash.o progress.o ast-sf-ctrl.o |
| 6 | OBJS += libflash/libflash.o libflash/libffs.o |
| 7 | OBJS += $(ARCH_OBJS) |
| 8 | EXE = pflash |
| 9 | |
| 10 | #CC = $(CROSS_COMPILE)gcc |
| 11 | |
| 12 | %.o : %.c |
| 13 | $(CC) $(CFLAGS) -c $< -o $@ -I. |
| 14 | |
| 15 | $(EXE): $(OBJS) |
| 16 | $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ -I. |
| 17 | |
| 18 | clean: |
| 19 | rm -f $(OBJS) $(EXE) *.o *.d libflash/test/test_flash libflash/test/*.o |
| 20 | distclean: clean |
| 21 | rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~ |