diff options
author | Tobias Klauser <klto@zhaw.ch> | 2009-10-23 15:47:35 +0200 |
---|---|---|
committer | Tobias Klauser <klto@zhaw.ch> | 2009-10-23 15:47:35 +0200 |
commit | 15eee175fd6c073e75db12aa24e732145bf245d4 (patch) | |
tree | d1ea1ea1ca19bb941d69bc1962a101f6a56e3099 /Makefile |
Initial import of U-Boot environment image creator
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
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) |