blob: f77cee9d24b7b44259fc8b8d2ac0fc318fc5e6a2 [file] [log] [blame]
Norman James6a58a272015-10-07 14:34:16 -05001 ARCH_OBJS = arm_io.o
2
3CFLAGS = -O2 -Wall -I.
4LDFLAGS = -lrt
5OBJS = pflash.o progress.o ast-sf-ctrl.o
6OBJS += libflash/libflash.o libflash/libffs.o
7OBJS += $(ARCH_OBJS)
8EXE = 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
18clean:
19 rm -f $(OBJS) $(EXE) *.o *.d libflash/test/test_flash libflash/test/*.o
20distclean: clean
21 rm -f *.c~ *.h~ *.sh~ Makefile~ config.mk~ libflash/*.c~ libflash/*.h~