diff options
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..6f1c21e --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +# +# Copyright (c) 2026, Apollo Telephone Laboratories. +# Provided under the BSD-3 clause. +# + +CFILES = $(shell find core/ -name "*.c") +OFILES = $(CFILES:.c=.o) +DFILES = $(CFILES:.c=.d) + +CC = gcc +CFLAGS = \ + -Wall \ + -pedantic \ + -MMD \ + -Ihead + +.PHONY: all +all: $(OFILES) + $(CC) $(OFILES) -o atas + +-include $(DFILES) +%.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ |
