Initial checkin.
This commit is contained in:
26
unittest/Makefile
Normal file
26
unittest/Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
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/led.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)
|
||||
|
Reference in New Issue
Block a user