solo1/Makefile

14 wiersze
305 B
Makefile

src = $(wildcard *.c) $(wildcard crypto/*.c)
obj = $(src:.c=.o)
LDFLAGS = -Wl,--gc-sections ./tinycbor/lib/libtinycbor.a
CFLAGS = -O2 -fdata-sections -ffunction-sections -I./tinycbor/src -I./crypto
name = main
$(name): $(obj)
$(CC) $(LDFLAGS) -o $@ $(obj) $(LDFLAGS)
clean:
rm -f *.o main.exe main