diff options
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) |