Add a simple unit test for widget_add_from_file()

This commit is contained in:
Pim van Pelt
2017-11-26 11:28:09 +01:00
parent b005dd8a26
commit 6985b30dc2
8 changed files with 854 additions and 8 deletions

View File

@ -1,8 +1,7 @@
TARGET = test
LIBS =
CC = gcc
CFLAGS = -g -Wall
INCLUDE = ../include
CFLAGS = -g -Wall -I../include -I./
.PHONY: default all clean
@ -10,16 +9,16 @@ default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
SRCS = frozen/frozen.c
SRCS = frozen/frozen.c ../src/widget.c
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -I$(INCLUDE) $(OBJECTS) $(LIBS) $(SRCS) -o $@
$(CC) $(CFLAGS) $(OBJECTS) $(LIBS) $(SRCS) -o $@
clean:
-rm -f $(OBJECTS)