Files
Adafruit_nRF52_Arduino/tools/bootutil/Makefile
T
2016-12-15 18:14:40 +01:00

25 lines
379 B
Makefile

TARGET = bootutil
LIBS = -lncurses
CC = gcc
CFLAGS = -g -Wall
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) -Wall -o $@ $(LIBS)
clean:
-rm -f *.o
-rm -f $(TARGET)