Files
mongoose-touch/unittest/Makefile
2017-11-26 10:57:49 +01:00

28 lines
458 B
Makefile

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