summaryrefslogtreecommitdiff
path: root/utils/imxtools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'utils/imxtools/Makefile')
-rw-r--r--utils/imxtools/Makefile26
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 @@
1DEFINES=-DCRYPTO_LIBUSB
2CC=gcc
3LD=gcc
4CFLAGS=-g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
5LDFLAGS=`pkg-config --libs libusb-1.0`
6BINS=elftosb sbtoelf sbloader
7
8all: $(BINS)
9
10%.o: %.c
11 $(CC) $(CFLAGS) -c -o $@ $<
12
13sbtoelf: sbtoelf.o crc.o crypto.o aes128.o sha1.o elf.o misc.o sb.o
14 $(LD) -o $@ $^ $(LDFLAGS)
15
16elftosb: elftosb.o crc.o crypto.o aes128.o sha1.o elf.o dbparser.o misc.o sb.o
17 $(LD) -o $@ $^ $(LDFLAGS)
18
19sbloader: sbloader.o
20 $(LD) -o $@ $^ $(LDFLAGS)
21
22clean:
23 rm -fr *.o
24
25veryclean:
26 rm -rf $(BINS)