Files
lightswitch/unittest/Makefile
Pim van Pelt 118eb14447 Rewrite statusled implementation.
- Read it now from app.config JSON file.
- Allow for inverted status leds (Sonoff et al)
- Clean up unit tests.
2018-01-24 13:33:13 +01:00

27 lines
494 B
Makefile

TARGET = test
LIBS =
CC = gcc
CFLAGS = -g -Wall -I../include -I./ -I ./mongoose/
.PHONY: default all clean
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
SRCS = frozen/frozen.c ../src/channel.c ../src/mqtt.c ../src/statusled.c
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) $(SRCS) -o $@
clean:
-rm -f $(OBJECTS)
-rm -f $(TARGET)