From 15eee175fd6c073e75db12aa24e732145bf245d4 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 23 Oct 2009 15:47:35 +0200 Subject: Initial import of U-Boot environment image creator --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9c2bd53 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ + +MKUBOOTENV = mkubootenv +MKUBOOTENV_OBJS = mkubootenv.o crc32.o + +CFLAGS += -W -Wall -Wextra -Wstrict-prototypes -Wsign-compare -Wshadow \ + -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ + -Wpointer-arith -Wcast-align + +all: $(MKUBOOTENV) + +$(MKUBOOTENV): $(MKUBOOTENV_OBJS) + @echo " LD $@" + @$(CC) $(LDFLAGS) -o $@ $^ + +%.o: %.c %.h + @echo " CC $@" + @$(CC) $(CFLAGS) -c $< -o $@ + +%.o: %.c + @echo " CC $@" + @$(CC) $(CFLAGS) -c $< -o $@ + +clean: + @echo " CLEAN" + @rm -f *.o $(MKUBOOTENV) -- cgit v1.2.3-54-g00ecf