diff options
Diffstat (limited to 'utils/imxtools/Makefile')
-rw-r--r-- | utils/imxtools/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/utils/imxtools/Makefile b/utils/imxtools/Makefile new file mode 100644 index 0000000000..7a09d86d24 --- /dev/null +++ b/utils/imxtools/Makefile | |||
@@ -0,0 +1,26 @@ | |||
1 | DEFINES=-DCRYPTO_LIBUSB | ||
2 | CC=gcc | ||
3 | LD=gcc | ||
4 | CFLAGS=-g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES) | ||
5 | LDFLAGS=`pkg-config --libs libusb-1.0` | ||
6 | BINS=elftosb sbtoelf sbloader | ||
7 | |||
8 | all: $(BINS) | ||
9 | |||
10 | %.o: %.c | ||
11 | $(CC) $(CFLAGS) -c -o $@ $< | ||
12 | |||
13 | sbtoelf: sbtoelf.o crc.o crypto.o aes128.o sha1.o elf.o misc.o sb.o | ||
14 | $(LD) -o $@ $^ $(LDFLAGS) | ||
15 | |||
16 | elftosb: elftosb.o crc.o crypto.o aes128.o sha1.o elf.o dbparser.o misc.o sb.o | ||
17 | $(LD) -o $@ $^ $(LDFLAGS) | ||
18 | |||
19 | sbloader: sbloader.o | ||
20 | $(LD) -o $@ $^ $(LDFLAGS) | ||
21 | |||
22 | clean: | ||
23 | rm -fr *.o | ||
24 | |||
25 | veryclean: | ||
26 | rm -rf $(BINS) | ||