26 lines
350 B
Makefile
26 lines
350 B
Makefile
|
|
#
|
||
|
|
# Copyright (c) 2026 Mirocom Laboratories and MSP engineers.
|
||
|
|
# All Rights Reserved.
|
||
|
|
#
|
||
|
|
|
||
|
|
CFILES = $(shell find core/ -name "*.c")
|
||
|
|
OFILES = $(CFILES:.c=.o)
|
||
|
|
DFILES = $(CFILES:.c=.d)
|
||
|
|
CC = gcc
|
||
|
|
|
||
|
|
CFLAGS = \
|
||
|
|
-Wall \
|
||
|
|
-pedantic \
|
||
|
|
-MMD \
|
||
|
|
-Iinclude
|
||
|
|
|
||
|
|
.PHONY: all
|
||
|
|
all: mvm
|
||
|
|
|
||
|
|
.PHONY: mvm
|
||
|
|
mvm: $(OFILES)
|
||
|
|
$(CC) $^ -o $@
|
||
|
|
|
||
|
|
%.o: %.c
|
||
|
|
$(CC) -c $(CFLAGS) $< -o $@
|