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) default: $(TARGET)
all: default all: default
OBJ_WIDGET = $(patsubst %.c, %.o, $(wildcard *.c)) OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) frozen/frozen.o
HEADERS = $(wildcard *.h) HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS) %.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@ $(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJ_WIDGET) .PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJ_WIDGET) $(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -I$(INCLUDE) $(OBJ_WIDGET) $(LIBS) -o $@ $(CC) $(CFLAGS) -I$(INCLUDE) $(OBJECTS) $(LIBS) -o $@
clean: clean:
-rm -f *.o -rm -f *.o

View File

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