diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2021-10-22 07:50:50 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2021-10-22 07:50:50 -0400 |
commit | 67f3a6c9896a5651e00eb22ee6e036c536aa0587 (patch) | |
tree | 76d66c0442ad64b51ea606647ce98380d494bfba /Makefile | |
parent | 6a62488e1599ddfb3981dcf22e01024d5619af0f (diff) |
first draft; needs tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d9c168c --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CROSS := +CC := $(CROSS)gcc +CFLAGS := -Os -ggdb -g3 \ + -Wall -Wextra -pedantic -Werror + +CSRC := $(wildcard src/*.c) +COBJ := $(patsubst %.c,%.o,$(CSRC)) + +all: lib430core.a + +clean: + @echo " CLEAN" + @rm -f lib430core.a $(COBJ) + +lib430core.a: $(COBJ) + @echo " AR " $@ + @$(CROSS)ar rc $@ $(COBJ) + @$(CROSS)size -t $@ + +.c.o: + @echo " CC " $< + @$(CC) $(CFLAGS) -c $< -o $@ + |