Move frozen to its own subdir

This commit is contained in:
Pim van Pelt
2017-11-26 10:48:10 +01:00
parent a8282618a3
commit e924a64950
4 changed files with 5 additions and 5 deletions

View File

@ -9,16 +9,16 @@ INCLUDE = ../include
default: $(TARGET)
all: default
OBJ_WIDGET = $(patsubst %.c, %.o, $(wildcard *.c))
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) frozen/frozen.o
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJ_WIDGET)
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJ_WIDGET)
$(CC) $(CFLAGS) -I$(INCLUDE) $(OBJ_WIDGET) $(LIBS) -o $@
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -I$(INCLUDE) $(OBJECTS) $(LIBS) -o $@
clean:
-rm -f *.o

View File

@ -3,7 +3,7 @@
#include <stdlib.h>
#include <string.h>
#include "frozen.h"
#include "frozen/frozen.h"
#include "mgos_mock.h"
int test_widget(void);