summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 9 insertions, 30 deletions
diff --git a/Makefile b/Makefile
index a0cbf46..6abaaee 100644
--- a/Makefile
+++ b/Makefile
@@ -1,35 +1,14 @@
-prefix = $(HOME)
+# Adapted from blackfin u-boot-tools Makefile
-P = mkubootenv
-OBJS = mkubootenv.o crc32.o
-WHERE = $(prefix)/bin/$(P)
+all clean romfs:
+ $(MAKE) -C env $@
-CFLAGS += -W -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wshadow \
- -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
- -Wpointer-arith -Wcast-align
+UBOOT_SRC = ../../../../u-boot
-all: $(P)
+update:
+ cp $(UBOOT_SRC)/tools/env/* env/
-$(P): $(OBJS)
- @echo " LD $@"
- @$(CC) $(LDFLAGS) -o $@ $^
+diff:
+ diff -urp -x Makefile -x '*.o' $(UBOOT_SRC)/tools/env env
-%.o: %.c %.h
- @echo " CC $@"
- @$(CC) $(CFLAGS) -c $< -o $@
-
-%.o: %.c
- @echo " CC $@"
- @$(CC) $(CFLAGS) -c $< -o $@
-
-install:
- @echo " INSTALL $(WHERE)"
- @install -m755 -D $(P) $(WHERE)
-
-uninstall:
- @echo " UNINSTALL $(WHERE)"
- @rm -f $(WHERE)
-
-clean:
- @echo " CLEAN"
- @rm -f $(OBJS) $(P)
+.PHONY: all clean romfs update diff