Embedded_Practices/Makefile

12 lines
186 B
Makefile
Raw Normal View History

2024-09-16 14:46:12 +03:00
CC=gcc
CFLAGS=-Wall -O3
TDIR=target/
objects = strings ll
all: $(objects) maths
maths: maths.c
$(CC) $(CFLAGS) -o $(TDIR)$@ $< -lm
$(objects): %: %.c
$(CC) $(CFLAGS) -o $(TDIR)$@ $<