19 lines
579 B
Makefile
19 lines
579 B
Makefile
|
CC=gcc
|
||
|
src := $(wildcard *.c) test/test.c main/cmdr.c
|
||
|
obj = $(src:.c=.o)
|
||
|
|
||
|
CFLAGS=-I. -Iinclude -std=gnu99 -Og -ggdb -Wall -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration
|
||
|
LDFLAGS = -Wno-error=unused-but-set-variable -lcheck -lsubunit -pthread -pthread -lrt -lm -lsubunit -ggdb -Og
|
||
|
|
||
|
all: tst
|
||
|
|
||
|
test.o:
|
||
|
$(CC) -o $@ *.o $(CFLAGS) $(LDFLAGS)
|
||
|
|
||
|
tst: $(obj)
|
||
|
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f $(obj) tst
|